From f98b321771e51ea3d9691cee940db0c87aec1e27 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Thu, 24 Oct 2024 09:33:04 +1300 Subject: [PATCH] feat: immutable zkevm api package --- .github/workflows/linter.yml | 2 +- src/Packages/Orderbook/README.md | 5 +- src/Packages/Orderbook/package.json | 2 +- src/Packages/ZkEvmApi/CHANGELOG.md | 3 + src/Packages/ZkEvmApi/CHANGELOG.md.meta | 7 + .../ZkEvmApi/Documentation~/APIError400.md | 14 + .../ZkEvmApi/Documentation~/APIError401.md | 14 + .../ZkEvmApi/Documentation~/APIError403.md | 14 + .../ZkEvmApi/Documentation~/APIError404.md | 14 + .../ZkEvmApi/Documentation~/APIError409.md | 14 + .../ZkEvmApi/Documentation~/APIError429.md | 14 + .../ZkEvmApi/Documentation~/APIError500.md | 14 + .../ZkEvmApi/Documentation~/APIError501.md | 14 + .../Documentation~/ActiveOrderStatus.md | 10 + .../ZkEvmApi/Documentation~/ActivitiesApi.md | 320 + .../ZkEvmApi/Documentation~/Activity.md | 16 + .../ZkEvmApi/Documentation~/ActivityAsset.md | 14 + .../Documentation~/ActivityDetails.md | 16 + .../ZkEvmApi/Documentation~/ActivityNFT.md | 13 + .../Documentation~/ActivityNativeToken.md | 10 + .../ZkEvmApi/Documentation~/ActivityToken.md | 11 + .../ZkEvmApi/Documentation~/ActivityType.md | 10 + .../Documentation~/AssetCollectionItem.md | 12 + .../Documentation~/AssetVerificationStatus.md | 10 + .../ZkEvmApi/Documentation~/BasicAPIError.md | 12 + .../ZkEvmApi/Documentation~/BidResult.md | 10 + .../Documentation~/BlockchainMetadata.md | 14 + src/Packages/ZkEvmApi/Documentation~/Burn.md | 13 + src/Packages/ZkEvmApi/Documentation~/Call.md | 12 + .../Documentation~/CancelOrdersRequestBody.md | 12 + .../Documentation~/CancelOrdersResult.md | 10 + .../Documentation~/CancelOrdersResultData.md | 12 + .../Documentation~/CancelledOrderStatus.md | 12 + src/Packages/ZkEvmApi/Documentation~/Chain.md | 12 + .../Documentation~/ChainWithDetails.md | 12 + .../ZkEvmApi/Documentation~/ChainsApi.md | 104 + .../ZkEvmApi/Documentation~/Collection.md | 23 + .../Documentation~/CollectionBidResult.md | 10 + .../Documentation~/CollectionContractType.md | 10 + .../Documentation~/CollectionMetadata.md | 16 + .../ZkEvmApi/Documentation~/CollectionsApi.md | 418 + .../ZkEvmApi/Documentation~/CraftingApi.md | 111 + .../Documentation~/CreateBidRequestBody.md | 19 + .../CreateCollectionBidRequestBody.md | 19 + .../CreateListingRequestBody.md | 19 + .../CreateMintRequestRequest.md | 10 + .../Documentation~/CreateMintRequestResult.md | 13 + .../ZkEvmApi/Documentation~/Deposit.md | 13 + .../Documentation~/ERC1155CollectionItem.md | 12 + .../ZkEvmApi/Documentation~/ERC1155Item.md | 13 + .../ZkEvmApi/Documentation~/ERC20Item.md | 12 + .../Documentation~/ERC721CollectionItem.md | 12 + .../ZkEvmApi/Documentation~/ERC721Item.md | 12 + .../Documentation~/ExpiredOrderStatus.md | 10 + .../Documentation~/FailedOrderCancellation.md | 11 + src/Packages/ZkEvmApi/Documentation~/Fee.md | 12 + .../ZkEvmApi/Documentation~/FillStatus.md | 12 + .../Documentation~/FilledOrderStatus.md | 10 + .../Documentation~/FulfillableOrder.md | 12 + .../FulfillmentData200Response.md | 10 + .../FulfillmentData200ResponseResult.md | 11 + .../Documentation~/FulfillmentDataRequest.md | 13 + .../Documentation~/GetActivityResult.md | 11 + .../Documentation~/GetCollectionResult.md | 11 + .../Documentation~/GetLinkedAddressesRes.md | 10 + .../Documentation~/GetMetadataResult.md | 11 + .../Documentation~/GetMintRequestResult.md | 21 + .../ZkEvmApi/Documentation~/GetNFTResult.md | 11 + .../ZkEvmApi/Documentation~/GetTokenResult.md | 11 + .../Documentation~/InactiveOrderStatus.md | 12 + src/Packages/ZkEvmApi/Documentation~/Item.md | 13 + .../ZkEvmApi/Documentation~/LastTrade.md | 16 + .../Documentation~/LinkWalletV2Request.md | 14 + .../Documentation~/ListActivitiesResult.md | 12 + .../ZkEvmApi/Documentation~/ListBidsResult.md | 11 + .../Documentation~/ListChainsResult.md | 11 + .../ListCollectionBidsResult.md | 11 + .../ListCollectionOwnersResult.md | 11 + .../Documentation~/ListCollectionsResult.md | 11 + .../Documentation~/ListListingsResult.md | 11 + .../Documentation~/ListMetadataResult.md | 11 + .../Documentation~/ListMintRequestsResult.md | 12 + .../Documentation~/ListNFTOwnersResult.md | 11 + .../Documentation~/ListNFTsByOwnerResult.md | 11 + .../ZkEvmApi/Documentation~/ListNFTsResult.md | 11 + .../Documentation~/ListTokensResult.md | 11 + .../Documentation~/ListTradeResult.md | 11 + .../ZkEvmApi/Documentation~/Listing.md | 16 + .../ZkEvmApi/Documentation~/ListingResult.md | 10 + .../ZkEvmApi/Documentation~/Market.md | 12 + .../ZkEvmApi/Documentation~/MarketNft.md | 11 + .../Documentation~/MarketPriceDetails.md | 14 + .../Documentation~/MarketPriceDetailsToken.md | 14 + .../Documentation~/MarketPriceERC20Token.md | 13 + .../Documentation~/MarketPriceFees.md | 12 + .../Documentation~/MarketPriceNativeToken.md | 11 + .../Documentation~/MarketplaceContractType.md | 10 + .../ZkEvmApi/Documentation~/Metadata.md | 21 + .../ZkEvmApi/Documentation~/MetadataApi.md | 524 + .../MetadataRefreshRateLimitResult.md | 13 + src/Packages/ZkEvmApi/Documentation~/Mint.md | 13 + .../ZkEvmApi/Documentation~/MintAsset.md | 14 + .../Documentation~/MintRequestErrorMessage.md | 11 + .../Documentation~/MintRequestStatus.md | 10 + src/Packages/ZkEvmApi/Documentation~/NFT.md | 26 + .../ZkEvmApi/Documentation~/NFTBundle.md | 13 + .../Documentation~/NFTContractType.md | 10 + .../Documentation~/NFTMetadataAttribute.md | 12 + .../NFTMetadataAttributeValue.md | 10 + .../Documentation~/NFTMetadataRequest.md | 17 + .../ZkEvmApi/Documentation~/NFTOwner.md | 15 + .../ZkEvmApi/Documentation~/NFTQuoteResult.md | 15 + .../ZkEvmApi/Documentation~/NFTSale.md | 15 + .../ZkEvmApi/Documentation~/NFTWithBalance.md | 25 + .../ZkEvmApi/Documentation~/NFTWithOwner.md | 15 + .../ZkEvmApi/Documentation~/NFTWithStack.md | 25 + .../ZkEvmApi/Documentation~/NativeItem.md | 11 + .../ZkEvmApi/Documentation~/NftOwnersApi.md | 316 + .../ZkEvmApi/Documentation~/NftsApi.md | 743 ++ .../OperatorAllowlistContractStatus.md | 15 + ...OperatorAllowlistContractStatusInternal.md | 17 + .../Documentation~/OperatorAllowlistStatus.md | 10 + .../OperatorAllowlistStatusDetails.md | 13 + .../OperatorAllowlistStatusRequested.md | 12 + .../OperatorAllowlistStatusUpdated.md | 11 + src/Packages/ZkEvmApi/Documentation~/Order.md | 26 + .../ZkEvmApi/Documentation~/OrderStatus.md | 17 + .../Documentation~/OrderStatusName.md | 10 + .../ZkEvmApi/Documentation~/OrdersApi.md | 1343 ++ .../Documentation~/OrganisationTier.md | 10 + src/Packages/ZkEvmApi/Documentation~/Page.md | 12 + .../ZkEvmApi/Documentation~/PassportApi.md | 110 + .../Documentation~/PassportProfileApi.md | 199 + .../Documentation~/PendingOrderStatus.md | 12 + .../ZkEvmApi/Documentation~/PricingApi.md | 215 + .../ZkEvmApi/Documentation~/ProtocolData.md | 14 + .../Documentation~/QuotesForNFTsResult.md | 12 + .../Documentation~/QuotesForStacksResult.md | 12 + .../RefreshCollectionMetadataRequest.md | 10 + .../RefreshCollectionMetadataResult.md | 12 + .../Documentation~/RefreshMetadataByID.md | 17 + .../RefreshMetadataByIDRequest.md | 11 + .../RefreshMetadataByTokenID.md | 17 + .../RefreshNFTMetadataByTokenIDRequest.md | 10 + .../RefreshableNFTAttributes.md | 16 + .../ZkEvmApi/Documentation~/SaleFee.md | 12 + .../ZkEvmApi/Documentation~/SalePayment.md | 13 + .../Documentation~/SalePaymentToken.md | 13 + .../Documentation~/SearchNFTsResult.md | 12 + .../Documentation~/SearchStacksResult.md | 12 + .../Documentation~/SignCraftingRequest.md | 13 + .../SignCraftingRequestMultiCaller.md | 12 + .../Documentation~/SignCraftingResult.md | 11 + src/Packages/ZkEvmApi/Documentation~/Stack.md | 23 + .../ZkEvmApi/Documentation~/StackBundle.md | 14 + .../Documentation~/StackQuoteResult.md | 14 + .../ZkEvmApi/Documentation~/StacksApi.md | 233 + src/Packages/ZkEvmApi/Documentation~/Token.md | 21 + .../Documentation~/TokenContractType.md | 10 + .../ZkEvmApi/Documentation~/TokensApi.md | 209 + src/Packages/ZkEvmApi/Documentation~/Trade.md | 22 + .../Documentation~/TradeBlockchainMetadata.md | 14 + .../ZkEvmApi/Documentation~/TradeResult.md | 10 + .../ZkEvmApi/Documentation~/Transfer.md | 14 + .../Documentation~/UnfulfillableOrder.md | 12 + .../ZkEvmApi/Documentation~/UserInfo.md | 13 + .../Documentation~/VerificationRequest.md | 21 + .../VerificationRequestContractType.md | 10 + .../VerificationRequestInternal.md | 22 + .../VerificationRequestStatus.md | 10 + .../ZkEvmApi/Documentation~/Wallet.md | 16 + .../ZkEvmApi/Documentation~/Withdrawal.md | 13 + src/Packages/ZkEvmApi/LICENSE.md | 176 + src/Packages/ZkEvmApi/LICENSE.md.meta | 7 + src/Packages/ZkEvmApi/README.md | 316 + src/Packages/ZkEvmApi/README.md.meta | 7 + src/Packages/ZkEvmApi/Runtime.meta | 8 + src/Packages/ZkEvmApi/Runtime/Api.meta | 8 + .../ZkEvmApi/Runtime/Api/ActivitiesApi.cs | 906 ++ .../Runtime/Api/ActivitiesApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/ChainsApi.cs | 368 + .../ZkEvmApi/Runtime/Api/ChainsApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/CollectionsApi.cs | 1072 ++ .../Runtime/Api/CollectionsApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/CraftingApi.cs | 384 + .../ZkEvmApi/Runtime/Api/CraftingApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/MetadataApi.cs | 1272 ++ .../ZkEvmApi/Runtime/Api/MetadataApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/NftOwnersApi.cs | 892 ++ .../ZkEvmApi/Runtime/Api/NftOwnersApi.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs | 1808 +++ .../ZkEvmApi/Runtime/Api/NftsApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/OrdersApi.cs | 3158 +++++ .../ZkEvmApi/Runtime/Api/OrdersApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/PassportApi.cs | 392 + .../ZkEvmApi/Runtime/Api/PassportApi.cs.meta | 11 + .../Runtime/Api/PassportProfileApi.cs | 524 + .../Runtime/Api/PassportProfileApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/PricingApi.cs | 628 + .../ZkEvmApi/Runtime/Api/PricingApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/StacksApi.cs | 768 ++ .../ZkEvmApi/Runtime/Api/StacksApi.cs.meta | 11 + .../ZkEvmApi/Runtime/Api/TokensApi.cs | 622 + .../ZkEvmApi/Runtime/Api/TokensApi.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Client.meta | 8 + .../ZkEvmApi/Runtime/Client/ApiClient.cs | 646 + .../ZkEvmApi/Runtime/Client/ApiClient.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/ApiException.cs | 69 + .../Runtime/Client/ApiException.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/ApiResponse.cs | 167 + .../Runtime/Client/ApiResponse.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/ClientUtils.cs | 248 + .../Runtime/Client/ClientUtils.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/Configuration.cs | 613 + .../Runtime/Client/Configuration.cs.meta | 11 + .../Runtime/Client/ConnectionException.cs | 30 + .../Client/ConnectionException.cs.meta | 11 + .../Runtime/Client/ExceptionFactory.cs | 23 + .../Runtime/Client/ExceptionFactory.cs.meta | 11 + .../Runtime/Client/GlobalConfiguration.cs | 68 + .../Client/GlobalConfiguration.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/IApiAccessor.cs | 38 + .../Runtime/Client/IApiAccessor.cs.meta | 11 + .../Runtime/Client/IAsynchronousClient.cs | 101 + .../Client/IAsynchronousClient.cs.meta | 11 + .../Runtime/Client/IReadableConfiguration.cs | 142 + .../Client/IReadableConfiguration.cs.meta | 11 + .../Runtime/Client/ISynchronousClient.cs | 94 + .../Runtime/Client/ISynchronousClient.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/Multimap.cs | 296 + .../ZkEvmApi/Runtime/Client/Multimap.cs.meta | 11 + .../Runtime/Client/OpenAPIDateConverter.cs | 30 + .../Client/OpenAPIDateConverter.cs.meta | 11 + .../ZkEvmApi/Runtime/Client/RequestOptions.cs | 69 + .../Runtime/Client/RequestOptions.cs.meta | 11 + .../Client/UnexpectedResponseException.cs | 35 + .../UnexpectedResponseException.cs.meta | 11 + .../Runtime/Client/WebRequestPathBuilder.cs | 54 + .../Client/WebRequestPathBuilder.cs.meta | 11 + .../Runtime/Immutable.Api.ZkEvm.asmdef | 7 + .../Runtime/Immutable.Api.ZkEvm.asmdef.meta | 7 + src/Packages/ZkEvmApi/Runtime/Model.meta | 8 + .../ZkEvmApi/Runtime/Model/APIError400.cs | 157 + .../Runtime/Model/APIError400.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError401.cs | 157 + .../Runtime/Model/APIError401.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError403.cs | 157 + .../Runtime/Model/APIError403.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError404.cs | 157 + .../Runtime/Model/APIError404.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError409.cs | 157 + .../Runtime/Model/APIError409.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError429.cs | 157 + .../Runtime/Model/APIError429.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError500.cs | 157 + .../Runtime/Model/APIError500.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/APIError501.cs | 157 + .../Runtime/Model/APIError501.cs.meta | 11 + .../Runtime/Model/AbstractOpenAPISchema.cs | 77 + .../Model/AbstractOpenAPISchema.cs.meta | 11 + .../Runtime/Model/ActiveOrderStatus.cs | 93 + .../Runtime/Model/ActiveOrderStatus.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Activity.cs | 153 + .../ZkEvmApi/Runtime/Model/Activity.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ActivityAsset.cs | 250 + .../Runtime/Model/ActivityAsset.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ActivityDetails.cs | 434 + .../Runtime/Model/ActivityDetails.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ActivityNFT.cs | 127 + .../Runtime/Model/ActivityNFT.cs.meta | 11 + .../Runtime/Model/ActivityNativeToken.cs | 85 + .../Runtime/Model/ActivityNativeToken.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ActivityToken.cs | 94 + .../Runtime/Model/ActivityToken.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ActivityType.cs | 72 + .../Runtime/Model/ActivityType.cs.meta | 11 + .../Runtime/Model/AssetCollectionItem.cs | 250 + .../Runtime/Model/AssetCollectionItem.cs.meta | 11 + .../Runtime/Model/AssetVerificationStatus.cs | 60 + .../Model/AssetVerificationStatus.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/BasicAPIError.cs | 117 + .../Runtime/Model/BasicAPIError.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/BidResult.cs | 83 + .../ZkEvmApi/Runtime/Model/BidResult.cs.meta | 11 + .../Runtime/Model/BlockchainMetadata.cs | 133 + .../Runtime/Model/BlockchainMetadata.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Burn.cs | 115 + .../ZkEvmApi/Runtime/Model/Burn.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Call.cs | 117 + .../ZkEvmApi/Runtime/Model/Call.cs.meta | 11 + .../Runtime/Model/CancelOrdersRequestBody.cs | 116 + .../Model/CancelOrdersRequestBody.cs.meta | 11 + .../Runtime/Model/CancelOrdersResult.cs | 83 + .../Runtime/Model/CancelOrdersResult.cs.meta | 11 + .../Runtime/Model/CancelOrdersResultData.cs | 114 + .../Model/CancelOrdersResultData.cs.meta | 11 + .../Runtime/Model/CancelledOrderStatus.cs | 141 + .../Model/CancelledOrderStatus.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Chain.cs | 101 + .../ZkEvmApi/Runtime/Model/Chain.cs.meta | 11 + .../Runtime/Model/ChainWithDetails.cs | 116 + .../Runtime/Model/ChainWithDetails.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Collection.cs | 262 + .../ZkEvmApi/Runtime/Model/Collection.cs.meta | 11 + .../Runtime/Model/CollectionBidResult.cs | 83 + .../Runtime/Model/CollectionBidResult.cs.meta | 11 + .../Runtime/Model/CollectionContractType.cs | 48 + .../Model/CollectionContractType.cs.meta | 11 + .../Runtime/Model/CollectionMetadata.cs | 181 + .../Runtime/Model/CollectionMetadata.cs.meta | 11 + .../Runtime/Model/CreateBidRequestBody.cs | 215 + .../Model/CreateBidRequestBody.cs.meta | 11 + .../Model/CreateCollectionBidRequestBody.cs | 215 + .../CreateCollectionBidRequestBody.cs.meta | 11 + .../Runtime/Model/CreateListingRequestBody.cs | 215 + .../Model/CreateListingRequestBody.cs.meta | 11 + .../Runtime/Model/CreateMintRequestRequest.cs | 84 + .../Model/CreateMintRequestRequest.cs.meta | 11 + .../Runtime/Model/CreateMintRequestResult.cs | 125 + .../Model/CreateMintRequestResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Deposit.cs | 115 + .../ZkEvmApi/Runtime/Model/Deposit.cs.meta | 11 + .../Runtime/Model/ERC1155CollectionItem.cs | 126 + .../Model/ERC1155CollectionItem.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ERC1155Item.cs | 142 + .../Runtime/Model/ERC1155Item.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ERC20Item.cs | 126 + .../ZkEvmApi/Runtime/Model/ERC20Item.cs.meta | 11 + .../Runtime/Model/ERC721CollectionItem.cs | 126 + .../Model/ERC721CollectionItem.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ERC721Item.cs | 126 + .../ZkEvmApi/Runtime/Model/ERC721Item.cs.meta | 11 + .../Runtime/Model/ExpiredOrderStatus.cs | 93 + .../Runtime/Model/ExpiredOrderStatus.cs.meta | 11 + .../Runtime/Model/FailedOrderCancellation.cs | 110 + .../Model/FailedOrderCancellation.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Fee.cs | 144 + .../ZkEvmApi/Runtime/Model/Fee.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/FillStatus.cs | 101 + .../ZkEvmApi/Runtime/Model/FillStatus.cs.meta | 11 + .../Runtime/Model/FilledOrderStatus.cs | 93 + .../Runtime/Model/FilledOrderStatus.cs.meta | 11 + .../Runtime/Model/FulfillableOrder.cs | 108 + .../Runtime/Model/FulfillableOrder.cs.meta | 11 + .../Model/FulfillmentData200Response.cs | 83 + .../Model/FulfillmentData200Response.cs.meta | 11 + .../Model/FulfillmentData200ResponseResult.cs | 97 + .../FulfillmentData200ResponseResult.cs.meta | 11 + .../Runtime/Model/FulfillmentDataRequest.cs | 120 + .../Model/FulfillmentDataRequest.cs.meta | 11 + .../Runtime/Model/GetActivityResult.cs | 83 + .../Runtime/Model/GetActivityResult.cs.meta | 11 + .../Runtime/Model/GetCollectionResult.cs | 83 + .../Runtime/Model/GetCollectionResult.cs.meta | 11 + .../Runtime/Model/GetLinkedAddressesRes.cs | 84 + .../Model/GetLinkedAddressesRes.cs.meta | 11 + .../Runtime/Model/GetMetadataResult.cs | 83 + .../Runtime/Model/GetMetadataResult.cs.meta | 11 + .../Runtime/Model/GetMintRequestResult.cs | 228 + .../Model/GetMintRequestResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/GetNFTResult.cs | 83 + .../Runtime/Model/GetNFTResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/GetTokenResult.cs | 83 + .../Runtime/Model/GetTokenResult.cs.meta | 11 + .../Runtime/Model/InactiveOrderStatus.cs | 115 + .../Runtime/Model/InactiveOrderStatus.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Item.cs | 434 + .../ZkEvmApi/Runtime/Model/Item.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/LastTrade.cs | 154 + .../ZkEvmApi/Runtime/Model/LastTrade.cs.meta | 11 + .../Runtime/Model/LinkWalletV2Request.cs | 131 + .../Runtime/Model/LinkWalletV2Request.cs.meta | 11 + .../Runtime/Model/ListActivitiesResult.cs | 98 + .../Model/ListActivitiesResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ListBidsResult.cs | 97 + .../Runtime/Model/ListBidsResult.cs.meta | 11 + .../Runtime/Model/ListChainsResult.cs | 98 + .../Runtime/Model/ListChainsResult.cs.meta | 11 + .../Runtime/Model/ListCollectionBidsResult.cs | 97 + .../Model/ListCollectionBidsResult.cs.meta | 11 + .../Model/ListCollectionOwnersResult.cs | 98 + .../Model/ListCollectionOwnersResult.cs.meta | 11 + .../Runtime/Model/ListCollectionsResult.cs | 98 + .../Model/ListCollectionsResult.cs.meta | 11 + .../Runtime/Model/ListListingsResult.cs | 97 + .../Runtime/Model/ListListingsResult.cs.meta | 11 + .../Runtime/Model/ListMetadataResult.cs | 98 + .../Runtime/Model/ListMetadataResult.cs.meta | 11 + .../Runtime/Model/ListMintRequestsResult.cs | 98 + .../Model/ListMintRequestsResult.cs.meta | 11 + .../Runtime/Model/ListNFTOwnersResult.cs | 98 + .../Runtime/Model/ListNFTOwnersResult.cs.meta | 11 + .../Runtime/Model/ListNFTsByOwnerResult.cs | 98 + .../Model/ListNFTsByOwnerResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ListNFTsResult.cs | 98 + .../Runtime/Model/ListNFTsResult.cs.meta | 11 + .../Runtime/Model/ListTokensResult.cs | 98 + .../Runtime/Model/ListTokensResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ListTradeResult.cs | 97 + .../Runtime/Model/ListTradeResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Listing.cs | 179 + .../ZkEvmApi/Runtime/Model/Listing.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ListingResult.cs | 83 + .../Runtime/Model/ListingResult.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Market.cs | 98 + .../ZkEvmApi/Runtime/Model/Market.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/MarketNft.cs | 83 + .../ZkEvmApi/Runtime/Model/MarketNft.cs.meta | 11 + .../Runtime/Model/MarketPriceDetails.cs | 130 + .../Runtime/Model/MarketPriceDetails.cs.meta | 11 + .../Runtime/Model/MarketPriceDetailsToken.cs | 250 + .../Model/MarketPriceDetailsToken.cs.meta | 11 + .../Runtime/Model/MarketPriceERC20Token.cs | 142 + .../Model/MarketPriceERC20Token.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/MarketPriceFees.cs | 144 + .../Runtime/Model/MarketPriceFees.cs.meta | 11 + .../Runtime/Model/MarketPriceNativeToken.cs | 110 + .../Model/MarketPriceNativeToken.cs.meta | 11 + .../Runtime/Model/MarketplaceContractType.cs | 48 + .../Model/MarketplaceContractType.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Metadata.cs | 243 + .../ZkEvmApi/Runtime/Model/Metadata.cs.meta | 11 + .../Model/MetadataRefreshRateLimitResult.cs | 125 + .../MetadataRefreshRateLimitResult.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Mint.cs | 115 + .../ZkEvmApi/Runtime/Model/Mint.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/MintAsset.cs | 132 + .../ZkEvmApi/Runtime/Model/MintAsset.cs.meta | 11 + .../Runtime/Model/MintRequestErrorMessage.cs | 74 + .../Model/MintRequestErrorMessage.cs.meta | 11 + .../Runtime/Model/MintRequestStatus.cs | 54 + .../Runtime/Model/MintRequestStatus.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/NFT.cs | 312 + .../ZkEvmApi/Runtime/Model/NFT.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTBundle.cs | 112 + .../ZkEvmApi/Runtime/Model/NFTBundle.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTContractType.cs | 48 + .../Runtime/Model/NFTContractType.cs.meta | 11 + .../Runtime/Model/NFTMetadataAttribute.cs | 142 + .../Model/NFTMetadataAttribute.cs.meta | 11 + .../Model/NFTMetadataAttributeValue.cs | 302 + .../Model/NFTMetadataAttributeValue.cs.meta | 11 + .../Runtime/Model/NFTMetadataRequest.cs | 140 + .../Runtime/Model/NFTMetadataRequest.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTOwner.cs | 158 + .../ZkEvmApi/Runtime/Model/NFTOwner.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTQuoteResult.cs | 140 + .../Runtime/Model/NFTQuoteResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTSale.cs | 145 + .../ZkEvmApi/Runtime/Model/NFTSale.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTWithBalance.cs | 300 + .../Runtime/Model/NFTWithBalance.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTWithOwner.cs | 158 + .../Runtime/Model/NFTWithOwner.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NFTWithStack.cs | 280 + .../Runtime/Model/NFTWithStack.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/NativeItem.cs | 110 + .../ZkEvmApi/Runtime/Model/NativeItem.cs.meta | 11 + .../Model/OperatorAllowlistContractStatus.cs | 149 + .../OperatorAllowlistContractStatus.cs.meta | 11 + ...OperatorAllowlistContractStatusInternal.cs | 174 + ...torAllowlistContractStatusInternal.cs.meta | 11 + .../Runtime/Model/OperatorAllowlistStatus.cs | 66 + .../Model/OperatorAllowlistStatus.cs.meta | 11 + .../Model/OperatorAllowlistStatusDetails.cs | 250 + .../OperatorAllowlistStatusDetails.cs.meta | 11 + .../Model/OperatorAllowlistStatusRequested.cs | 96 + .../OperatorAllowlistStatusRequested.cs.meta | 11 + .../Model/OperatorAllowlistStatusUpdated.cs | 85 + .../OperatorAllowlistStatusUpdated.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Order.cs | 329 + .../ZkEvmApi/Runtime/Model/Order.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/OrderStatus.cs | 434 + .../Runtime/Model/OrderStatus.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/OrderStatusName.cs | 72 + .../Runtime/Model/OrderStatusName.cs.meta | 11 + .../Runtime/Model/OrganisationTier.cs | 66 + .../Runtime/Model/OrganisationTier.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Page.cs | 101 + .../ZkEvmApi/Runtime/Model/Page.cs.meta | 11 + .../Runtime/Model/PendingOrderStatus.cs | 115 + .../Runtime/Model/PendingOrderStatus.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/ProtocolData.cs | 164 + .../Runtime/Model/ProtocolData.cs.meta | 11 + .../Runtime/Model/QuotesForNFTsResult.cs | 98 + .../Runtime/Model/QuotesForNFTsResult.cs.meta | 11 + .../Runtime/Model/QuotesForStacksResult.cs | 98 + .../Model/QuotesForStacksResult.cs.meta | 11 + .../Model/RefreshCollectionMetadataRequest.cs | 83 + .../RefreshCollectionMetadataRequest.cs.meta | 11 + .../Model/RefreshCollectionMetadataResult.cs | 111 + .../RefreshCollectionMetadataResult.cs.meta | 11 + .../Runtime/Model/RefreshMetadataByID.cs | 191 + .../Runtime/Model/RefreshMetadataByID.cs.meta | 11 + .../Model/RefreshMetadataByIDRequest.cs | 83 + .../Model/RefreshMetadataByIDRequest.cs.meta | 11 + .../Runtime/Model/RefreshMetadataByTokenID.cs | 196 + .../Model/RefreshMetadataByTokenID.cs.meta | 11 + .../RefreshNFTMetadataByTokenIDRequest.cs | 84 + ...RefreshNFTMetadataByTokenIDRequest.cs.meta | 11 + .../Runtime/Model/RefreshableNFTAttributes.cs | 180 + .../Model/RefreshableNFTAttributes.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/SaleFee.cs | 111 + .../ZkEvmApi/Runtime/Model/SaleFee.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/SalePayment.cs | 131 + .../Runtime/Model/SalePayment.cs.meta | 11 + .../Runtime/Model/SalePaymentToken.cs | 250 + .../Runtime/Model/SalePaymentToken.cs.meta | 11 + .../Runtime/Model/SearchNFTsResult.cs | 98 + .../Runtime/Model/SearchNFTsResult.cs.meta | 11 + .../Runtime/Model/SearchStacksResult.cs | 98 + .../Runtime/Model/SearchStacksResult.cs.meta | 11 + .../Runtime/Model/SignCraftingRequest.cs | 125 + .../Runtime/Model/SignCraftingRequest.cs.meta | 11 + .../Model/SignCraftingRequestMultiCaller.cs | 117 + .../SignCraftingRequestMultiCaller.cs.meta | 11 + .../Runtime/Model/SignCraftingResult.cs | 101 + .../Runtime/Model/SignCraftingResult.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Stack.cs | 250 + .../ZkEvmApi/Runtime/Model/Stack.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/StackBundle.cs | 123 + .../Runtime/Model/StackBundle.cs.meta | 11 + .../Runtime/Model/StackQuoteResult.cs | 120 + .../Runtime/Model/StackQuoteResult.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Token.cs | 232 + .../ZkEvmApi/Runtime/Model/Token.cs.meta | 11 + .../Runtime/Model/TokenContractType.cs | 42 + .../Runtime/Model/TokenContractType.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Trade.cs | 264 + .../ZkEvmApi/Runtime/Model/Trade.cs.meta | 11 + .../Runtime/Model/TradeBlockchainMetadata.cs | 133 + .../Model/TradeBlockchainMetadata.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/TradeResult.cs | 83 + .../Runtime/Model/TradeResult.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Transfer.cs | 131 + .../ZkEvmApi/Runtime/Model/Transfer.cs.meta | 11 + .../Runtime/Model/UnfulfillableOrder.cs | 112 + .../Runtime/Model/UnfulfillableOrder.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/UserInfo.cs | 119 + .../ZkEvmApi/Runtime/Model/UserInfo.cs.meta | 11 + .../Runtime/Model/VerificationRequest.cs | 224 + .../Runtime/Model/VerificationRequest.cs.meta | 11 + .../Model/VerificationRequestContractType.cs | 54 + .../VerificationRequestContractType.cs.meta | 11 + .../Model/VerificationRequestInternal.cs | 233 + .../Model/VerificationRequestInternal.cs.meta | 11 + .../Model/VerificationRequestStatus.cs | 48 + .../Model/VerificationRequestStatus.cs.meta | 11 + src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs | 150 + .../ZkEvmApi/Runtime/Model/Wallet.cs.meta | 11 + .../ZkEvmApi/Runtime/Model/Withdrawal.cs | 115 + .../ZkEvmApi/Runtime/Model/Withdrawal.cs.meta | 11 + src/Packages/ZkEvmApi/api~/openapi.yaml | 10701 ++++++++++++++++ src/Packages/ZkEvmApi/package.json | 20 + src/Packages/ZkEvmApi/package.json.meta | 7 + 555 files changed, 57033 insertions(+), 6 deletions(-) create mode 100644 src/Packages/ZkEvmApi/CHANGELOG.md create mode 100644 src/Packages/ZkEvmApi/CHANGELOG.md.meta create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError400.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError401.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError403.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError404.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError409.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError429.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError500.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/APIError501.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActiveOrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivitiesApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Activity.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivityAsset.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivityDetails.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivityNFT.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivityNativeToken.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivityToken.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ActivityType.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/AssetCollectionItem.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/AssetVerificationStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/BasicAPIError.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/BidResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/BlockchainMetadata.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Burn.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Call.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CancelOrdersRequestBody.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CancelOrdersResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CancelOrdersResultData.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CancelledOrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Chain.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ChainWithDetails.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ChainsApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Collection.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CollectionBidResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CollectionContractType.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CollectionMetadata.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CollectionsApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CraftingApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CreateBidRequestBody.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CreateCollectionBidRequestBody.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CreateListingRequestBody.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CreateMintRequestRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/CreateMintRequestResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Deposit.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ERC1155CollectionItem.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ERC1155Item.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ERC20Item.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ERC721CollectionItem.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ERC721Item.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ExpiredOrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FailedOrderCancellation.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Fee.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FillStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FilledOrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FulfillableOrder.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FulfillmentData200Response.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FulfillmentData200ResponseResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/FulfillmentDataRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetActivityResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetCollectionResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetLinkedAddressesRes.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetMetadataResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetMintRequestResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetNFTResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/GetTokenResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/InactiveOrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Item.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/LastTrade.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/LinkWalletV2Request.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListActivitiesResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListBidsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListChainsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListCollectionBidsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListCollectionOwnersResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListCollectionsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListListingsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListMetadataResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListMintRequestsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListNFTOwnersResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListNFTsByOwnerResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListNFTsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListTokensResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListTradeResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Listing.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ListingResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Market.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketNft.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketPriceDetails.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketPriceDetailsToken.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketPriceERC20Token.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketPriceFees.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketPriceNativeToken.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MarketplaceContractType.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Metadata.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MetadataApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MetadataRefreshRateLimitResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Mint.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MintAsset.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MintRequestErrorMessage.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/MintRequestStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFT.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTBundle.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTContractType.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttribute.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttributeValue.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTMetadataRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTOwner.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTQuoteResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTSale.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTWithBalance.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTWithOwner.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NFTWithStack.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NativeItem.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NftOwnersApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/NftsApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatusInternal.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusDetails.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusRequested.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusUpdated.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Order.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OrderStatusName.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OrdersApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/OrganisationTier.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Page.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/PassportApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/PassportProfileApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/PendingOrderStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/PricingApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/ProtocolData.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/QuotesForNFTsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/QuotesForStacksResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByID.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByIDRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByTokenID.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshNFTMetadataByTokenIDRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/RefreshableNFTAttributes.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SaleFee.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SalePayment.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SalePaymentToken.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SearchNFTsResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SearchStacksResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SignCraftingRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SignCraftingRequestMultiCaller.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/SignCraftingResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Stack.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/StackBundle.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/StackQuoteResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/StacksApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Token.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/TokenContractType.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/TokensApi.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Trade.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/TradeBlockchainMetadata.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/TradeResult.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Transfer.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/UnfulfillableOrder.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/UserInfo.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/VerificationRequest.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/VerificationRequestContractType.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/VerificationRequestInternal.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/VerificationRequestStatus.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Wallet.md create mode 100644 src/Packages/ZkEvmApi/Documentation~/Withdrawal.md create mode 100644 src/Packages/ZkEvmApi/LICENSE.md create mode 100644 src/Packages/ZkEvmApi/LICENSE.md.meta create mode 100644 src/Packages/ZkEvmApi/README.md create mode 100644 src/Packages/ZkEvmApi/README.md.meta create mode 100644 src/Packages/ZkEvmApi/Runtime.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef create mode 100644 src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Activity.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Activity.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Burn.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Burn.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Call.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Call.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Chain.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Chain.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Collection.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Collection.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Fee.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Fee.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Item.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Item.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Listing.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Listing.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Market.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Market.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Mint.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Mint.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFT.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFT.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Order.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Order.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Page.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Page.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Stack.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Stack.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Token.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Token.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Trade.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Trade.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs.meta create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs create mode 100644 src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs.meta create mode 100644 src/Packages/ZkEvmApi/api~/openapi.yaml create mode 100644 src/Packages/ZkEvmApi/package.json create mode 100644 src/Packages/ZkEvmApi/package.json.meta diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6b13ef6e..4051bdfd 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -57,7 +57,7 @@ jobs: VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - FILTER_REGEX_EXCLUDE: (.*src/Packages/Passport/Runtime/ThirdParty/.*|.*src/Packages/Passport/Runtime/Resources/.*|.*Plugins/.*|.*src/Packages/Passport/Runtime/Assets/ImmutableAndroid.androidlib/.*|.*src/Packages/Orderbook|.*sample|.*src/Packages/Passport/WebGLTemplates~|.*.github/workflows) + FILTER_REGEX_EXCLUDE: (.*src/Packages/Passport/Runtime/ThirdParty/.*|.*src/Packages/Passport/Runtime/Resources/.*|.*Plugins/.*|.*src/Packages/Passport/Runtime/Assets/ImmutableAndroid.androidlib/.*|.*src/Packages/Orderbook|.*src/Packages/ZkEvmApi|.*sample|.*src/Packages/Passport/WebGLTemplates~|.*.github/workflows) VALIDATE_MARKDOWN: false VALIDATE_GITLEAKS: false VALIDATE_JSCPD: false diff --git a/src/Packages/Orderbook/README.md b/src/Packages/Orderbook/README.md index 3441f4b8..55d8c669 100644 --- a/src/Packages/Orderbook/README.md +++ b/src/Packages/Orderbook/README.md @@ -25,8 +25,6 @@ This generator should support all current LTS versions of Unity - [Newtonsoft.Json](https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html) - 3.0.2 or later -- [Unity Test Framework](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/index.html) - 1.1.33 or - later @@ -38,8 +36,7 @@ Add the dependencies to `Packages/manifest.json` { "dependencies": { ... - "com.unity.nuget.newtonsoft-json": "3.0.2", - "com.unity.test-framework": "1.1.33", + "com.unity.nuget.newtonsoft-json": "3.0.2" } } ``` diff --git a/src/Packages/Orderbook/package.json b/src/Packages/Orderbook/package.json index b4b11a2b..457f711c 100644 --- a/src/Packages/Orderbook/package.json +++ b/src/Packages/Orderbook/package.json @@ -8,7 +8,7 @@ "url": "https://immutable.com" }, "dependencies": { - "com.cysharp.unitask": "2.3.3" + "com.unity.nuget.newtonsoft-json": "3.0.2" }, "keywords": [ "unity", diff --git a/src/Packages/ZkEvmApi/CHANGELOG.md b/src/Packages/ZkEvmApi/CHANGELOG.md new file mode 100644 index 00000000..e602bd7a --- /dev/null +++ b/src/Packages/ZkEvmApi/CHANGELOG.md @@ -0,0 +1,3 @@ +# Changelog + +Please see https://github.com/immutable/unity-immutable-sdk/releases \ No newline at end of file diff --git a/src/Packages/ZkEvmApi/CHANGELOG.md.meta b/src/Packages/ZkEvmApi/CHANGELOG.md.meta new file mode 100644 index 00000000..29f12f41 --- /dev/null +++ b/src/Packages/ZkEvmApi/CHANGELOG.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c295f6334a9d24f609c11912ef988bfd +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError400.md b/src/Packages/ZkEvmApi/Documentation~/APIError400.md new file mode 100644 index 00000000..23ac8576 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError400.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError400 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError401.md b/src/Packages/ZkEvmApi/Documentation~/APIError401.md new file mode 100644 index 00000000..4d9cdb59 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError401.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError401 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError403.md b/src/Packages/ZkEvmApi/Documentation~/APIError403.md new file mode 100644 index 00000000..4d6f915b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError403.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError403 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError404.md b/src/Packages/ZkEvmApi/Documentation~/APIError404.md new file mode 100644 index 00000000..9e52a646 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError404.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError404 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError409.md b/src/Packages/ZkEvmApi/Documentation~/APIError409.md new file mode 100644 index 00000000..5e34a8dd --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError409.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError409 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Dictionary<string, Object>** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError429.md b/src/Packages/ZkEvmApi/Documentation~/APIError429.md new file mode 100644 index 00000000..71653975 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError429.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError429 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError500.md b/src/Packages/ZkEvmApi/Documentation~/APIError500.md new file mode 100644 index 00000000..ea8e0d06 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError500.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError500 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/APIError501.md b/src/Packages/ZkEvmApi/Documentation~/APIError501.md new file mode 100644 index 00000000..30e17064 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/APIError501.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.APIError501 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | +**Code** | **string** | Error Code | +**Details** | **Object** | Additional details to help resolve the error | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActiveOrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/ActiveOrderStatus.md new file mode 100644 index 00000000..dd925c0b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActiveOrderStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.ActiveOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status that indicates an order can be fulfilled. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivitiesApi.md b/src/Packages/ZkEvmApi/Documentation~/ActivitiesApi.md new file mode 100644 index 00000000..d0e664b6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivitiesApi.md @@ -0,0 +1,320 @@ +# Immutable.Api.ZkEvm.Api.ActivitiesApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetActivity**](ActivitiesApi.md#getactivity) | **GET** /v1/chains/{chain_name}/activities/{activity_id} | Get a single activity by ID | +| [**ListActivities**](ActivitiesApi.md#listactivities) | **GET** /v1/chains/{chain_name}/activities | List all activities | +| [**ListActivityHistory**](ActivitiesApi.md#listactivityhistory) | **GET** /v1/chains/{chain_name}/activity-history | List history of activities | + + +# **GetActivity** +> GetActivityResult GetActivity (string chainName, Guid activityId) + +Get a single activity by ID + +Get a single activity by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetActivityExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var activityId = "activityId_example"; // Guid | The id of activity + + try + { + // Get a single activity by ID + GetActivityResult result = apiInstance.GetActivity(chainName, activityId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ActivitiesApi.GetActivity: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetActivityWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single activity by ID + ApiResponse response = apiInstance.GetActivityWithHttpInfo(chainName, activityId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ActivitiesApi.GetActivityWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **activityId** | **Guid** | The id of activity | | + +### Return type + +[**GetActivityResult**](GetActivityResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListActivities** +> ListActivitiesResult ListActivities (string chainName, string? contractAddress = null, string? tokenId = null, string? accountAddress = null, ActivityType? activityType = null, string? transactionHash = null, string? pageCursor = null, int? pageSize = null) + +List all activities + +List all activities + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListActivitiesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string? | The contract address of NFT or ERC20 Token (optional) + var tokenId = 1; // string? | An `uint256` token id as string (optional) + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | The account address activity contains (optional) + var activityType = new ActivityType?(); // ActivityType? | The activity type (optional) + var transactionHash = 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e; // string? | The transaction hash of activity (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all activities + ListActivitiesResult result = apiInstance.ListActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ActivitiesApi.ListActivities: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListActivitiesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all activities + ApiResponse response = apiInstance.ListActivitiesWithHttpInfo(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ActivitiesApi.ListActivitiesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string?** | The contract address of NFT or ERC20 Token | [optional] | +| **tokenId** | **string?** | An `uint256` token id as string | [optional] | +| **accountAddress** | **string?** | The account address activity contains | [optional] | +| **activityType** | [**ActivityType?**](ActivityType?.md) | The activity type | [optional] | +| **transactionHash** | **string?** | The transaction hash of activity | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListActivitiesResult**](ListActivitiesResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListActivityHistory** +> ListActivitiesResult ListActivityHistory (string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = null, string? contractAddress = null, ActivityType? activityType = null, string? pageCursor = null, int? pageSize = null) + +List history of activities + +List activities sorted by updated_at timestamp ascending, useful for time based data replication + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListActivityHistoryExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime | From indexed at including given date + var toUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | To indexed at including given date (optional) + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string? | The contract address of the collection (optional) + var activityType = new ActivityType?(); // ActivityType? | The activity type (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List history of activities + ListActivitiesResult result = apiInstance.ListActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ActivitiesApi.ListActivityHistory: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListActivityHistoryWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List history of activities + ApiResponse response = apiInstance.ListActivityHistoryWithHttpInfo(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ActivitiesApi.ListActivityHistoryWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime** | From indexed at including given date | | +| **toUpdatedAt** | **DateTime?** | To indexed at including given date | [optional] | +| **contractAddress** | **string?** | The contract address of the collection | [optional] | +| **activityType** | [**ActivityType?**](ActivityType?.md) | The activity type | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListActivitiesResult**](ListActivitiesResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Activity.md b/src/Packages/ZkEvmApi/Documentation~/Activity.md new file mode 100644 index 00000000..e8e29814 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Activity.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.Activity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | Activity id in UUIDv4 format | +**Chain** | [**Chain**](Chain.md) | | +**Type** | **ActivityType** | | +**Details** | [**ActivityDetails**](ActivityDetails.md) | | +**UpdatedAt** | **DateTime** | The time activity was updated at | +**IndexedAt** | **DateTime** | The time activity was indexed | +**BlockchainMetadata** | [**BlockchainMetadata**](BlockchainMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivityAsset.md b/src/Packages/ZkEvmApi/Documentation~/ActivityAsset.md new file mode 100644 index 00000000..768f231b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivityAsset.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.ActivityAsset +The contract and asset details for this activity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **TokenContractType** | | +**ContractAddress** | **string** | The contract address | +**TokenId** | **string** | An `uint256` token id as string | +**Amount** | **string** | (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivityDetails.md b/src/Packages/ZkEvmApi/Documentation~/ActivityDetails.md new file mode 100644 index 00000000..3d1d92bc --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivityDetails.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.ActivityDetails +The activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The account address the asset was deposited to | +**Amount** | **string** | The amount of assets withdrawn | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | +**From** | **string** | The account address the asset was withdrawn from | +**OrderId** | **string** | The id of order | +**Payment** | [**SalePayment**](SalePayment.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivityNFT.md b/src/Packages/ZkEvmApi/Documentation~/ActivityNFT.md new file mode 100644 index 00000000..59311d10 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivityNFT.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.ActivityNFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **NFTContractType** | | +**ContractAddress** | **string** | The token contract address | +**TokenId** | **string** | An `uint256` token id as string | +**Amount** | **string** | (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivityNativeToken.md b/src/Packages/ZkEvmApi/Documentation~/ActivityNativeToken.md new file mode 100644 index 00000000..7d1c4f27 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivityNativeToken.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.ActivityNativeToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Symbol** | **string** | The token symbol | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivityToken.md b/src/Packages/ZkEvmApi/Documentation~/ActivityToken.md new file mode 100644 index 00000000..110ffc15 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivityToken.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ActivityToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **TokenContractType** | | +**ContractAddress** | **string** | The contract address | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ActivityType.md b/src/Packages/ZkEvmApi/Documentation~/ActivityType.md new file mode 100644 index 00000000..7af61a58 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ActivityType.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.ActivityType +The activity type + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/AssetCollectionItem.md b/src/Packages/ZkEvmApi/Documentation~/AssetCollectionItem.md new file mode 100644 index 00000000..5547e623 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/AssetCollectionItem.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.AssetCollectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC721 | +**ContractAddress** | **string** | Address of ERC1155 collection | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/AssetVerificationStatus.md b/src/Packages/ZkEvmApi/Documentation~/AssetVerificationStatus.md new file mode 100644 index 00000000..b97f9b2b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/AssetVerificationStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.AssetVerificationStatus +The verification status for a given contract + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/BasicAPIError.md b/src/Packages/ZkEvmApi/Documentation~/BasicAPIError.md new file mode 100644 index 00000000..7424a195 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/BasicAPIError.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.BasicAPIError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | Error Message | +**Link** | **string** | Link to IMX documentation that can help resolve this error | +**TraceId** | **string** | Trace ID of the initial request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/BidResult.md b/src/Packages/ZkEvmApi/Documentation~/BidResult.md new file mode 100644 index 00000000..39698749 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/BidResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.BidResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Order**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/BlockchainMetadata.md b/src/Packages/ZkEvmApi/Documentation~/BlockchainMetadata.md new file mode 100644 index 00000000..07e41ea7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/BlockchainMetadata.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.BlockchainMetadata +The metadata related to blockchain transaction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionHash** | **string** | The transaction hash of the activity | +**BlockNumber** | **string** | EVM block number (uint64 as string) | +**TransactionIndex** | **string** | Transaction index in a block (uint32 as string) | +**LogIndex** | **string** | The log index of activity in a block (uint32 as string) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Burn.md b/src/Packages/ZkEvmApi/Documentation~/Burn.md new file mode 100644 index 00000000..e9e131d1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Burn.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.Burn +The burn activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The account address the asset was transferred from | +**Amount** | **string** | The amount of assets burnt | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Call.md b/src/Packages/ZkEvmApi/Documentation~/Call.md new file mode 100644 index 00000000..01b7f156 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Call.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.Call + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TargetAddress** | **string** | An Ethereum address | +**FunctionSignature** | **string** | The function signature | +**FunctionArgs** | **List<string>** | The function arguments | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CancelOrdersRequestBody.md b/src/Packages/ZkEvmApi/Documentation~/CancelOrdersRequestBody.md new file mode 100644 index 00000000..93cbf50f --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CancelOrdersRequestBody.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.CancelOrdersRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | Address of the user initiating the cancel request | +**Orders** | **List<Guid>** | List of order ids proposed for cancellation | +**Signature** | **string** | Signature generated by the user for the specific cancellation request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CancelOrdersResult.md b/src/Packages/ZkEvmApi/Documentation~/CancelOrdersResult.md new file mode 100644 index 00000000..07b39d50 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CancelOrdersResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.CancelOrdersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**CancelOrdersResultData**](CancelOrdersResultData.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CancelOrdersResultData.md b/src/Packages/ZkEvmApi/Documentation~/CancelOrdersResultData.md new file mode 100644 index 00000000..bad08be8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CancelOrdersResultData.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.CancelOrdersResultData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SuccessfulCancellations** | **List<string>** | Orders which were successfully cancelled | +**PendingCancellations** | **List<string>** | Orders which are marked for cancellation but the cancellation cannot be guaranteed | +**FailedCancellations** | [**List<FailedOrderCancellation>**](FailedOrderCancellation.md) | Orders which failed to be cancelled | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CancelledOrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/CancelledOrderStatus.md new file mode 100644 index 00000000..867170de --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CancelledOrderStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.CancelledOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status indicating a order is has been cancelled or about to be cancelled. | +**Pending** | **bool** | Whether the cancellation of the order is pending | +**CancellationType** | **string** | Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Chain.md b/src/Packages/ZkEvmApi/Documentation~/Chain.md new file mode 100644 index 00000000..a805321a --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Chain.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.Chain +The chain details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of chain | +**Name** | **string** | The name of chain | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ChainWithDetails.md b/src/Packages/ZkEvmApi/Documentation~/ChainWithDetails.md new file mode 100644 index 00000000..20cef1c4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ChainWithDetails.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ChainWithDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The id of chain | +**Name** | **string** | The name of chain | +**RpcUrl** | **string** | URL for RPC node | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ChainsApi.md b/src/Packages/ZkEvmApi/Documentation~/ChainsApi.md new file mode 100644 index 00000000..7195be4e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ChainsApi.md @@ -0,0 +1,104 @@ +# Immutable.Api.ZkEvm.Api.ChainsApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ListChains**](ChainsApi.md#listchains) | **GET** /v1/chains | List supported chains | + + +# **ListChains** +> ListChainsResult ListChains (string? pageCursor = null, int? pageSize = null) + +List supported chains + +List supported chains + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListChainsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ChainsApi(config); + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List supported chains + ListChainsResult result = apiInstance.ListChains(pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ChainsApi.ListChains: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListChainsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List supported chains + ApiResponse response = apiInstance.ListChainsWithHttpInfo(pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ChainsApi.ListChainsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListChainsResult**](ListChainsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Collection.md b/src/Packages/ZkEvmApi/Documentation~/Collection.md new file mode 100644 index 00000000..ccc60d23 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Collection.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.Collection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**ContractType** | **CollectionContractType** | | +**ContractAddress** | **string** | The address of the contract | +**Description** | **string** | The description of collection | +**Image** | **string** | The url of the collection image | +**ExternalLink** | **string** | The url of external link | +**ContractUri** | **string** | The uri for the metadata of the collection | [optional] +**BaseUri** | **string** | The metadata uri for nft | +**VerificationStatus** | **AssetVerificationStatus** | | +**IndexedAt** | **DateTime** | When the collection was first indexed | +**UpdatedAt** | **DateTime** | When the collection was last updated | +**MetadataSyncedAt** | **DateTime?** | When the collection metadata was last synced | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CollectionBidResult.md b/src/Packages/ZkEvmApi/Documentation~/CollectionBidResult.md new file mode 100644 index 00000000..dcc64064 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CollectionBidResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.CollectionBidResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Order**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CollectionContractType.md b/src/Packages/ZkEvmApi/Documentation~/CollectionContractType.md new file mode 100644 index 00000000..cd6c3b21 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CollectionContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.CollectionContractType +The collection contract type + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CollectionMetadata.md b/src/Packages/ZkEvmApi/Documentation~/CollectionMetadata.md new file mode 100644 index 00000000..fc825fe5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CollectionMetadata.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.CollectionMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**Description** | **string** | The description of collection | +**Image** | **string** | The url of the collection image | +**ExternalLink** | **string** | The url of external link | +**ContractUri** | **string** | The uri for the metadata of the collection | +**BaseUri** | **string** | The metadata uri for nft | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CollectionsApi.md b/src/Packages/ZkEvmApi/Documentation~/CollectionsApi.md new file mode 100644 index 00000000..e238974b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CollectionsApi.md @@ -0,0 +1,418 @@ +# Immutable.Api.ZkEvm.Api.CollectionsApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetCollection**](CollectionsApi.md#getcollection) | **GET** /v1/chains/{chain_name}/collections/{contract_address} | Get collection by contract address | +| [**ListCollections**](CollectionsApi.md#listcollections) | **GET** /v1/chains/{chain_name}/collections | List all collections | +| [**ListCollectionsByNFTOwner**](CollectionsApi.md#listcollectionsbynftowner) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/collections | List collections by NFT owner | +| [**RefreshCollectionMetadata**](CollectionsApi.md#refreshcollectionmetadata) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata | Refresh collection metadata | + + +# **GetCollection** +> GetCollectionResult GetCollection (string contractAddress, string chainName) + +Get collection by contract address + +Get collection by contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetCollectionExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new CollectionsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address contract + var chainName = imtbl-zkevm-testnet; // string | The name of chain + + try + { + // Get collection by contract address + GetCollectionResult result = apiInstance.GetCollection(contractAddress, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.GetCollection: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetCollectionWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get collection by contract address + ApiResponse response = apiInstance.GetCollectionWithHttpInfo(contractAddress, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.GetCollectionWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address contract | | +| **chainName** | **string** | The name of chain | | + +### Return type + +[**GetCollectionResult**](GetCollectionResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListCollections** +> ListCollectionsResult ListCollections (string chainName, List? contractAddress = null, List? verificationStatus = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List all collections + +List all collections + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListCollectionsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new CollectionsApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = new List?(); // List? | List of contract addresses to filter by (optional) + var verificationStatus = new List?(); // List? | List of verification status to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all collections + ListCollectionsResult result = apiInstance.ListCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.ListCollections: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListCollectionsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all collections + ApiResponse response = apiInstance.ListCollectionsWithHttpInfo(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.ListCollectionsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | [**List<string>?**](string.md) | List of contract addresses to filter by | [optional] | +| **verificationStatus** | [**List<AssetVerificationStatus>?**](AssetVerificationStatus.md) | List of verification status to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListCollectionsResult**](ListCollectionsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListCollectionsByNFTOwner** +> ListCollectionsResult ListCollectionsByNFTOwner (string accountAddress, string chainName, string? pageCursor = null, int? pageSize = null) + +List collections by NFT owner + +List collections by NFT owner account address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListCollectionsByNFTOwnerExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new CollectionsApi(config); + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | Account address + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List collections by NFT owner + ListCollectionsResult result = apiInstance.ListCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.ListCollectionsByNFTOwner: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListCollectionsByNFTOwnerWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List collections by NFT owner + ApiResponse response = apiInstance.ListCollectionsByNFTOwnerWithHttpInfo(accountAddress, chainName, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.ListCollectionsByNFTOwnerWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **accountAddress** | **string** | Account address | | +| **chainName** | **string** | The name of chain | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListCollectionsResult**](ListCollectionsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefreshCollectionMetadata** +> RefreshCollectionMetadataResult RefreshCollectionMetadata (string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest) + +Refresh collection metadata + +Refresh collection metadata + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class RefreshCollectionMetadataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new CollectionsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address contract + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var refreshCollectionMetadataRequest = new RefreshCollectionMetadataRequest(); // RefreshCollectionMetadataRequest | The request body + + try + { + // Refresh collection metadata + RefreshCollectionMetadataResult result = apiInstance.RefreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CollectionsApi.RefreshCollectionMetadata: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RefreshCollectionMetadataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh collection metadata + ApiResponse response = apiInstance.RefreshCollectionMetadataWithHttpInfo(contractAddress, chainName, refreshCollectionMetadataRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CollectionsApi.RefreshCollectionMetadataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address contract | | +| **chainName** | **string** | The name of chain | | +| **refreshCollectionMetadataRequest** | [**RefreshCollectionMetadataRequest**](RefreshCollectionMetadataRequest.md) | The request body | | + +### Return type + +[**RefreshCollectionMetadataResult**](RefreshCollectionMetadataResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey), [BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CraftingApi.md b/src/Packages/ZkEvmApi/Documentation~/CraftingApi.md new file mode 100644 index 00000000..2ce960d6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CraftingApi.md @@ -0,0 +1,111 @@ +# Immutable.Api.ZkEvm.Api.CraftingApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**SignCraftingPayload**](CraftingApi.md#signcraftingpayload) | **POST** /v1/chains/{chain_name}/crafting/sign | Sign a crafting payload | + + +# **SignCraftingPayload** +> SignCraftingResult SignCraftingPayload (string chainName, SignCraftingRequest signCraftingRequest) + +Sign a crafting payload + +Sign a crafting payload + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class SignCraftingPayloadExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new CraftingApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var signCraftingRequest = new SignCraftingRequest(); // SignCraftingRequest | The request body + + try + { + // Sign a crafting payload + SignCraftingResult result = apiInstance.SignCraftingPayload(chainName, signCraftingRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling CraftingApi.SignCraftingPayload: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SignCraftingPayloadWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Sign a crafting payload + ApiResponse response = apiInstance.SignCraftingPayloadWithHttpInfo(chainName, signCraftingRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling CraftingApi.SignCraftingPayloadWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **signCraftingRequest** | [**SignCraftingRequest**](SignCraftingRequest.md) | The request body | | + +### Return type + +[**SignCraftingResult**](SignCraftingResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CreateBidRequestBody.md b/src/Packages/ZkEvmApi/Documentation~/CreateBidRequestBody.md new file mode 100644 index 00000000..085abb52 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CreateBidRequestBody.md @@ -0,0 +1,19 @@ +# Immutable.Api.ZkEvm.Model.CreateBidRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**OrderHash** | **string** | | +**Buy** | [**List<Item>**](Item.md) | Buy item for bid should either be ERC721 or ERC1155 item | +**Fees** | [**List<Fee>**](Fee.md) | Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<ERC20Item>**](ERC20Item.md) | Sell item for bid should be an ERC20 item | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CreateCollectionBidRequestBody.md b/src/Packages/ZkEvmApi/Documentation~/CreateCollectionBidRequestBody.md new file mode 100644 index 00000000..cd121e29 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CreateCollectionBidRequestBody.md @@ -0,0 +1,19 @@ +# Immutable.Api.ZkEvm.Model.CreateCollectionBidRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**OrderHash** | **string** | | +**Buy** | [**List<AssetCollectionItem>**](AssetCollectionItem.md) | Buy item for collection bid should either be ERC721 or ERC1155 collection item | +**Fees** | [**List<Fee>**](Fee.md) | Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<ERC20Item>**](ERC20Item.md) | Sell item for collection bid should be an ERC20 item | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CreateListingRequestBody.md b/src/Packages/ZkEvmApi/Documentation~/CreateListingRequestBody.md new file mode 100644 index 00000000..cb2dce05 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CreateListingRequestBody.md @@ -0,0 +1,19 @@ +# Immutable.Api.ZkEvm.Model.CreateListingRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**OrderHash** | **string** | | +**Buy** | [**List<Item>**](Item.md) | Buy item for listing should either be NATIVE or ERC20 item | +**Fees** | [**List<Fee>**](Fee.md) | Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<Item>**](Item.md) | Sell item for listing should be an ERC721 item | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CreateMintRequestRequest.md b/src/Packages/ZkEvmApi/Documentation~/CreateMintRequestRequest.md new file mode 100644 index 00000000..9088cb2e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CreateMintRequestRequest.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.CreateMintRequestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assets** | [**List<MintAsset>**](MintAsset.md) | List of nft to be minted | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/CreateMintRequestResult.md b/src/Packages/ZkEvmApi/Documentation~/CreateMintRequestResult.md new file mode 100644 index 00000000..81bc26a3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/CreateMintRequestResult.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.CreateMintRequestResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImxMintRequestsLimit** | **string** | | +**ImxMintRequestsLimitReset** | **string** | | +**ImxRemainingMintRequests** | **string** | | +**ImxMintRequestsRetryAfter** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Deposit.md b/src/Packages/ZkEvmApi/Documentation~/Deposit.md new file mode 100644 index 00000000..21d8de91 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Deposit.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.Deposit +The deposit activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The account address the asset was deposited to | +**Amount** | **string** | The deposited amount | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ERC1155CollectionItem.md b/src/Packages/ZkEvmApi/Documentation~/ERC1155CollectionItem.md new file mode 100644 index 00000000..7768e1e1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ERC1155CollectionItem.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ERC1155CollectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC1155 | +**ContractAddress** | **string** | Address of ERC1155 collection | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ERC1155Item.md b/src/Packages/ZkEvmApi/Documentation~/ERC1155Item.md new file mode 100644 index 00000000..b5a8fc10 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ERC1155Item.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.ERC1155Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC1155 | +**ContractAddress** | **string** | Address of ERC1155 token | +**TokenId** | **string** | ID of ERC1155 token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ERC20Item.md b/src/Packages/ZkEvmApi/Documentation~/ERC20Item.md new file mode 100644 index 00000000..d3381026 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ERC20Item.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ERC20Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC20 | +**ContractAddress** | **string** | Address of ERC20 token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ERC721CollectionItem.md b/src/Packages/ZkEvmApi/Documentation~/ERC721CollectionItem.md new file mode 100644 index 00000000..4524a458 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ERC721CollectionItem.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ERC721CollectionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC721 | +**ContractAddress** | **string** | Address of ERC721 collection | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ERC721Item.md b/src/Packages/ZkEvmApi/Documentation~/ERC721Item.md new file mode 100644 index 00000000..019f8e11 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ERC721Item.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ERC721Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC721 | +**ContractAddress** | **string** | Address of ERC721 token | +**TokenId** | **string** | ID of ERC721 token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ExpiredOrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/ExpiredOrderStatus.md new file mode 100644 index 00000000..d433e253 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ExpiredOrderStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.ExpiredOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | A terminal order status indicating that an order cannot be fulfilled due to expiry. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FailedOrderCancellation.md b/src/Packages/ZkEvmApi/Documentation~/FailedOrderCancellation.md new file mode 100644 index 00000000..e2a28a6e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FailedOrderCancellation.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.FailedOrderCancellation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | **string** | ID of the order which failed to be cancelled | +**ReasonCode** | **string** | Reason code indicating why the order failed to be cancelled | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Fee.md b/src/Packages/ZkEvmApi/Documentation~/Fee.md new file mode 100644 index 00000000..fdf5e0f6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Fee.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.Fee + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | Fee payable to recipient upon settlement | +**Type** | **string** | Fee type | +**RecipientAddress** | **string** | Wallet address of fee recipient | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FillStatus.md b/src/Packages/ZkEvmApi/Documentation~/FillStatus.md new file mode 100644 index 00000000..91e66618 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FillStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.FillStatus +The ratio of the order that has been filled, an order that has been fully filled will have the same numerator and denominator values. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Numerator** | **string** | The numerator of the fill status | +**Denominator** | **string** | The denominator of the fill status | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FilledOrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/FilledOrderStatus.md new file mode 100644 index 00000000..4fe96f05 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FilledOrderStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.FilledOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | A terminal order status indicating that an order has been fulfilled. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FulfillableOrder.md b/src/Packages/ZkEvmApi/Documentation~/FulfillableOrder.md new file mode 100644 index 00000000..750cc2ef --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FulfillableOrder.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.FulfillableOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | [**Order**](Order.md) | | +**TokenId** | **string** | Token ID for the ERC721 or ERC1155 token when fulfilling a collection order | [optional] +**ExtraData** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FulfillmentData200Response.md b/src/Packages/ZkEvmApi/Documentation~/FulfillmentData200Response.md new file mode 100644 index 00000000..a14257c9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FulfillmentData200Response.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.FulfillmentData200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**FulfillmentData200ResponseResult**](FulfillmentData200ResponseResult.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FulfillmentData200ResponseResult.md b/src/Packages/ZkEvmApi/Documentation~/FulfillmentData200ResponseResult.md new file mode 100644 index 00000000..b33eba5f --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FulfillmentData200ResponseResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.FulfillmentData200ResponseResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FulfillableOrders** | [**List<FulfillableOrder>**](FulfillableOrder.md) | | +**UnfulfillableOrders** | [**List<UnfulfillableOrder>**](UnfulfillableOrder.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FulfillmentDataRequest.md b/src/Packages/ZkEvmApi/Documentation~/FulfillmentDataRequest.md new file mode 100644 index 00000000..a32f979f --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FulfillmentDataRequest.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.FulfillmentDataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **Guid** | | +**TakerAddress** | **string** | Address of the intended account fulfilling the order | +**Fees** | [**List<Fee>**](Fee.md) | | +**TokenId** | **string** | Token ID for the ERC721 or ERC1155 token when fulfilling a collection order | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetActivityResult.md b/src/Packages/ZkEvmApi/Documentation~/GetActivityResult.md new file mode 100644 index 00000000..2ad0bde4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetActivityResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.GetActivityResult +Single activity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Activity**](Activity.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetCollectionResult.md b/src/Packages/ZkEvmApi/Documentation~/GetCollectionResult.md new file mode 100644 index 00000000..8ca58b50 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetCollectionResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.GetCollectionResult +Single Collection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **Collection** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetLinkedAddressesRes.md b/src/Packages/ZkEvmApi/Documentation~/GetLinkedAddressesRes.md new file mode 100644 index 00000000..d66485f9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetLinkedAddressesRes.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.GetLinkedAddressesRes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LinkedAddresses** | **List<string>** | The user's list of linked addresses | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetMetadataResult.md b/src/Packages/ZkEvmApi/Documentation~/GetMetadataResult.md new file mode 100644 index 00000000..62a14a98 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetMetadataResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.GetMetadataResult +Single metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Metadata**](Metadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetMintRequestResult.md b/src/Packages/ZkEvmApi/Documentation~/GetMintRequestResult.md new file mode 100644 index 00000000..65725b49 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetMintRequestResult.md @@ -0,0 +1,21 @@ +# Immutable.Api.ZkEvm.Model.GetMintRequestResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**CollectionAddress** | **string** | The address of the contract | +**ReferenceId** | **string** | The reference id of this mint request | +**OwnerAddress** | **string** | The address of the owner of the NFT | +**TokenId** | **string** | An `uint256` token id as string. Only available when the mint request succeeds | +**Amount** | **string** | An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts | [optional] +**ActivityId** | **Guid?** | The id of the mint activity associated with this mint request | [optional] +**TransactionHash** | **string** | The transaction hash of the activity | +**CreatedAt** | **DateTime** | When the mint request was created | +**UpdatedAt** | **DateTime** | When the mint request was last updated | +**Error** | [**MintRequestErrorMessage**](MintRequestErrorMessage.md) | | +**Status** | **MintRequestStatus** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetNFTResult.md b/src/Packages/ZkEvmApi/Documentation~/GetNFTResult.md new file mode 100644 index 00000000..27bd16c9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetNFTResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.GetNFTResult +Single NFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**NFT**](NFT.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/GetTokenResult.md b/src/Packages/ZkEvmApi/Documentation~/GetTokenResult.md new file mode 100644 index 00000000..a4813b5e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/GetTokenResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.GetTokenResult +Single Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Token**](Token.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/InactiveOrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/InactiveOrderStatus.md new file mode 100644 index 00000000..c8a5a6c2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/InactiveOrderStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.InactiveOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status that indicates an order cannot be fulfilled. | +**SufficientApprovals** | **bool** | Whether the order offerer has sufficient approvals | +**SufficientBalances** | **bool** | Whether the order offerer still has sufficient balance to complete the order | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Item.md b/src/Packages/ZkEvmApi/Documentation~/Item.md new file mode 100644 index 00000000..89b582c4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Item.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.Item + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is the native IMX token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | +**ContractAddress** | **string** | Address of ERC1155 collection | +**TokenId** | **string** | ID of ERC1155 token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/LastTrade.md b/src/Packages/ZkEvmApi/Documentation~/LastTrade.md new file mode 100644 index 00000000..8d6bb042 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/LastTrade.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.LastTrade +Most recent trade + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TradeId** | **Guid** | Trade ID | +**ContractAddress** | **string** | ETH Address of collection that the asset belongs to | +**TokenId** | **string** | Token id of the traded asset (uint256 as string) | +**PriceDetails** | [**List<MarketPriceDetails>**](MarketPriceDetails.md) | Price details, list of payments involved in this trade | +**Amount** | **string** | Amount of the trade (uint256 as string) | +**CreatedAt** | **DateTime** | When the trade was created | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/LinkWalletV2Request.md b/src/Packages/ZkEvmApi/Documentation~/LinkWalletV2Request.md new file mode 100644 index 00000000..594e246b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/LinkWalletV2Request.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.LinkWalletV2Request +Link wallet V2 request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". | +**WalletAddress** | **string** | The address of the external wallet being linked to Passport | +**Signature** | **string** | The EIP-712 signature | +**Nonce** | **string** | A unique identifier for the signature | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListActivitiesResult.md b/src/Packages/ZkEvmApi/Documentation~/ListActivitiesResult.md new file mode 100644 index 00000000..1f1628d1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListActivitiesResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ListActivitiesResult +List activities response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<Activity>**](Activity.md) | List of activities | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListBidsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListBidsResult.md new file mode 100644 index 00000000..9accd991 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListBidsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListBidsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Order>**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListChainsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListChainsResult.md new file mode 100644 index 00000000..17633f1d --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListChainsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListChainsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<ChainWithDetails>**](ChainWithDetails.md) | List of chains | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListCollectionBidsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListCollectionBidsResult.md new file mode 100644 index 00000000..8c018131 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListCollectionBidsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListCollectionBidsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Order>**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListCollectionOwnersResult.md b/src/Packages/ZkEvmApi/Documentation~/ListCollectionOwnersResult.md new file mode 100644 index 00000000..0360c348 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListCollectionOwnersResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListCollectionOwnersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTWithOwner>**](NFTWithOwner.md) | List of NFT owners | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListCollectionsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListCollectionsResult.md new file mode 100644 index 00000000..a30cc2d8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListCollectionsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListCollectionsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **List<Collection>** | List of collections | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListListingsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListListingsResult.md new file mode 100644 index 00000000..9d9c46bc --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListListingsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListListingsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Order>**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListMetadataResult.md b/src/Packages/ZkEvmApi/Documentation~/ListMetadataResult.md new file mode 100644 index 00000000..2632c8ed --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListMetadataResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListMetadataResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<Metadata>**](Metadata.md) | List of metadata | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListMintRequestsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListMintRequestsResult.md new file mode 100644 index 00000000..5a365c5a --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListMintRequestsResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.ListMintRequestsResult +List mint requests + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<GetMintRequestResult>**](GetMintRequestResult.md) | List of mint requests | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListNFTOwnersResult.md b/src/Packages/ZkEvmApi/Documentation~/ListNFTOwnersResult.md new file mode 100644 index 00000000..f611a3cb --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListNFTOwnersResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListNFTOwnersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTOwner>**](NFTOwner.md) | List of nft owners | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListNFTsByOwnerResult.md b/src/Packages/ZkEvmApi/Documentation~/ListNFTsByOwnerResult.md new file mode 100644 index 00000000..15afad4b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListNFTsByOwnerResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListNFTsByOwnerResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTWithBalance>**](NFTWithBalance.md) | List of NFTs by owner | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListNFTsResult.md b/src/Packages/ZkEvmApi/Documentation~/ListNFTsResult.md new file mode 100644 index 00000000..82a50109 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListNFTsResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListNFTsResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFT>**](NFT.md) | List of NFTs | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListTokensResult.md b/src/Packages/ZkEvmApi/Documentation~/ListTokensResult.md new file mode 100644 index 00000000..25082506 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListTokensResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListTokensResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<Token>**](Token.md) | List of tokens | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListTradeResult.md b/src/Packages/ZkEvmApi/Documentation~/ListTradeResult.md new file mode 100644 index 00000000..8b151235 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListTradeResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.ListTradeResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | [**Page**](Page.md) | | +**Result** | [**List<Trade>**](Trade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Listing.md b/src/Packages/ZkEvmApi/Documentation~/Listing.md new file mode 100644 index 00000000..ea4bc1fd --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Listing.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.Listing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ListingId** | **string** | Global Order identifier | +**PriceDetails** | [**MarketPriceDetails**](MarketPriceDetails.md) | | +**ConvertedPrices** | **Dictionary<string, string>** | A mapping of converted prices for major currencies such as ETH, USD. All converted prices are fee-inclusive. | +**TokenId** | **string** | Token ID | +**ContractAddress** | **string** | ETH Address of collection that the asset belongs to | +**Creator** | **string** | ETH Address of listing creator | +**Amount** | **string** | Amount of token included in the listing | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ListingResult.md b/src/Packages/ZkEvmApi/Documentation~/ListingResult.md new file mode 100644 index 00000000..8b26af28 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ListingResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.ListingResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Order**](Order.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Market.md b/src/Packages/ZkEvmApi/Documentation~/Market.md new file mode 100644 index 00000000..1c5f4cf3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Market.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.Market +Market data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FloorListing** | [**Listing**](Listing.md) | Cheapest active listing | +**LastTrade** | [**LastTrade**](LastTrade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketNft.md b/src/Packages/ZkEvmApi/Documentation~/MarketNft.md new file mode 100644 index 00000000..d2a7a17a --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketNft.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.MarketNft +NFT market data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTrade** | [**LastTrade**](LastTrade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketPriceDetails.md b/src/Packages/ZkEvmApi/Documentation~/MarketPriceDetails.md new file mode 100644 index 00000000..64f99ab1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketPriceDetails.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.MarketPriceDetails +Market Price details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | [**MarketPriceDetailsToken**](MarketPriceDetailsToken.md) | | +**Amount** | **string** | The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) | +**FeeInclusiveAmount** | **string** | The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) | +**Fees** | [**List<MarketPriceFees>**](MarketPriceFees.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketPriceDetailsToken.md b/src/Packages/ZkEvmApi/Documentation~/MarketPriceDetailsToken.md new file mode 100644 index 00000000..9ae62db3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketPriceDetailsToken.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.MarketPriceDetailsToken +Token details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is the native IMX token | +**Symbol** | **string** | The symbol of token | +**ContractAddress** | **string** | Address of ERC20 token | +**Decimals** | **int?** | The decimals of token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketPriceERC20Token.md b/src/Packages/ZkEvmApi/Documentation~/MarketPriceERC20Token.md new file mode 100644 index 00000000..99bdc32c --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketPriceERC20Token.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.MarketPriceERC20Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is ERC20 | +**ContractAddress** | **string** | Address of ERC20 token | +**Symbol** | **string** | The symbol of token | +**Decimals** | **int?** | The decimals of token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketPriceFees.md b/src/Packages/ZkEvmApi/Documentation~/MarketPriceFees.md new file mode 100644 index 00000000..f412f351 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketPriceFees.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.MarketPriceFees + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | Fee in the payment currency | +**Type** | **string** | Fee type | +**RecipientAddress** | **string** | Wallet address of fee recipient | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketPriceNativeToken.md b/src/Packages/ZkEvmApi/Documentation~/MarketPriceNativeToken.md new file mode 100644 index 00000000..5d9b601a --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketPriceNativeToken.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.MarketPriceNativeToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is the native IMX token | +**Symbol** | **string** | The symbol of token | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MarketplaceContractType.md b/src/Packages/ZkEvmApi/Documentation~/MarketplaceContractType.md new file mode 100644 index 00000000..17646ae8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MarketplaceContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.MarketplaceContractType +The contract type for a collection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Metadata.md b/src/Packages/ZkEvmApi/Documentation~/Metadata.md new file mode 100644 index 00000000..4ca01e98 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Metadata.md @@ -0,0 +1,21 @@ +# Immutable.Api.ZkEvm.Model.Metadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | Metadata id in UUIDv4 format | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The contract address of the metadata | +**CreatedAt** | **DateTime** | When the metadata was created | +**UpdatedAt** | **DateTime?** | When the metadata was last updated | +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external website link of NFT | [optional] +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md b/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md new file mode 100644 index 00000000..8139f4f4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MetadataApi.md @@ -0,0 +1,524 @@ +# Immutable.Api.ZkEvm.Api.MetadataApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetMetadata**](MetadataApi.md#getmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id} | Get metadata by ID | +| [**ListMetadata**](MetadataApi.md#listmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata | Get a list of metadata from the given contract | +| [**ListMetadataForChain**](MetadataApi.md#listmetadataforchain) | **GET** /v1/chains/{chain_name}/metadata | Get a list of metadata from the given chain | +| [**RefreshMetadataByID**](MetadataApi.md#refreshmetadatabyid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata | Refresh stacked metadata | +| [**RefreshNFTMetadataByTokenID**](MetadataApi.md#refreshnftmetadatabytokenid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata | Refresh NFT metadata | + + +# **GetMetadata** +> GetMetadataResult GetMetadata (string chainName, string contractAddress, Guid metadataId) + +Get metadata by ID + +Get metadata by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetMetadataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | The address of metadata contract + var metadataId = "metadataId_example"; // Guid | The id of the metadata + + try + { + // Get metadata by ID + GetMetadataResult result = apiInstance.GetMetadata(chainName, contractAddress, metadataId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.GetMetadata: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetMetadataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get metadata by ID + ApiResponse response = apiInstance.GetMetadataWithHttpInfo(chainName, contractAddress, metadataId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.GetMetadataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | The address of metadata contract | | +| **metadataId** | **Guid** | The id of the metadata | | + +### Return type + +[**GetMetadataResult**](GetMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListMetadata** +> ListMetadataResult ListMetadata (string chainName, string contractAddress, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +Get a list of metadata from the given contract + +Get a list of metadata from the given contract + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListMetadataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | The address of metadata contract + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // Get a list of metadata from the given contract + ListMetadataResult result = apiInstance.ListMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.ListMetadata: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListMetadataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a list of metadata from the given contract + ApiResponse response = apiInstance.ListMetadataWithHttpInfo(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.ListMetadataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | The address of metadata contract | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListMetadataResult**](ListMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListMetadataForChain** +> ListMetadataResult ListMetadataForChain (string chainName, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +Get a list of metadata from the given chain + +Get a list of metadata from the given chain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListMetadataForChainExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // Get a list of metadata from the given chain + ListMetadataResult result = apiInstance.ListMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.ListMetadataForChain: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListMetadataForChainWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a list of metadata from the given chain + ApiResponse response = apiInstance.ListMetadataForChainWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.ListMetadataForChainWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListMetadataResult**](ListMetadataResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefreshMetadataByID** +> MetadataRefreshRateLimitResult RefreshMetadataByID (string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) + +Refresh stacked metadata + +Refresh stacked metadata + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class RefreshMetadataByIDExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new MetadataApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = "contractAddress_example"; // string | Contract address + var refreshMetadataByIDRequest = new RefreshMetadataByIDRequest(); // RefreshMetadataByIDRequest | NFT Metadata Refresh Request + + try + { + // Refresh stacked metadata + MetadataRefreshRateLimitResult result = apiInstance.RefreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.RefreshMetadataByID: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RefreshMetadataByIDWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh stacked metadata + ApiResponse response = apiInstance.RefreshMetadataByIDWithHttpInfo(chainName, contractAddress, refreshMetadataByIDRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.RefreshMetadataByIDWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | Contract address | | +| **refreshMetadataByIDRequest** | [**RefreshMetadataByIDRequest**](RefreshMetadataByIDRequest.md) | NFT Metadata Refresh Request | | + +### Return type + +[**MetadataRefreshRateLimitResult**](MetadataRefreshRateLimitResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* retry-after -
| +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Metadata refreshes (429) | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RefreshNFTMetadataByTokenID** +> MetadataRefreshRateLimitResult RefreshNFTMetadataByTokenID (string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest) + +Refresh NFT metadata + +Refresh NFT metadata + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class RefreshNFTMetadataByTokenIDExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new MetadataApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var refreshNFTMetadataByTokenIDRequest = new RefreshNFTMetadataByTokenIDRequest(); // RefreshNFTMetadataByTokenIDRequest | the request body + + try + { + // Refresh NFT metadata + MetadataRefreshRateLimitResult result = apiInstance.RefreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling MetadataApi.RefreshNFTMetadataByTokenID: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RefreshNFTMetadataByTokenIDWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh NFT metadata + ApiResponse response = apiInstance.RefreshNFTMetadataByTokenIDWithHttpInfo(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling MetadataApi.RefreshNFTMetadataByTokenIDWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **refreshNFTMetadataByTokenIDRequest** | [**RefreshNFTMetadataByTokenIDRequest**](RefreshNFTMetadataByTokenIDRequest.md) | the request body | | + +### Return type + +[**MetadataRefreshRateLimitResult**](MetadataRefreshRateLimitResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* retry-after -
| +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Metadata refreshes (429) | * imx-refreshes-limit -
* imx-refresh-limit-reset -
* imx-remaining-refreshes -
* Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MetadataRefreshRateLimitResult.md b/src/Packages/ZkEvmApi/Documentation~/MetadataRefreshRateLimitResult.md new file mode 100644 index 00000000..98e8cd00 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MetadataRefreshRateLimitResult.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.MetadataRefreshRateLimitResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImxRefreshesLimit** | **string** | | +**ImxRefreshLimitReset** | **string** | | +**ImxRemainingRefreshes** | **string** | | +**RetryAfter** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Mint.md b/src/Packages/ZkEvmApi/Documentation~/Mint.md new file mode 100644 index 00000000..2efc188d --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Mint.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.Mint +The mint activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**To** | **string** | The account address the asset was minted to | +**Amount** | **string** | The minted amount | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MintAsset.md b/src/Packages/ZkEvmApi/Documentation~/MintAsset.md new file mode 100644 index 00000000..05d9e5ad --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MintAsset.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.MintAsset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReferenceId** | **string** | The id of this asset in the system that originates the mint request | +**OwnerAddress** | **string** | The address of the receiver | +**TokenId** | **string** | An optional `uint256` token id as string. Required for ERC1155 collections. | [optional] +**Amount** | **string** | Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1 | [optional] +**Metadata** | [**NFTMetadataRequest**](NFTMetadataRequest.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MintRequestErrorMessage.md b/src/Packages/ZkEvmApi/Documentation~/MintRequestErrorMessage.md new file mode 100644 index 00000000..a28a6c20 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MintRequestErrorMessage.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.MintRequestErrorMessage +The error details in case the mint request fails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | An error message in case the mint request fails | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/MintRequestStatus.md b/src/Packages/ZkEvmApi/Documentation~/MintRequestStatus.md new file mode 100644 index 00000000..8f3ff175 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/MintRequestStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.MintRequestStatus +The status of the mint request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFT.md b/src/Packages/ZkEvmApi/Documentation~/NFT.md new file mode 100644 index 00000000..1d5ac3ce --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFT.md @@ -0,0 +1,26 @@ +# Immutable.Api.ZkEvm.Model.NFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**TokenId** | **string** | An `uint256` token id as string | +**ContractAddress** | **string** | The contract address of the NFT | +**ContractType** | **NFTContractType** | | +**IndexedAt** | **DateTime** | When the NFT was first indexed | +**UpdatedAt** | **DateTime** | When the NFT owner was last updated | +**MetadataSyncedAt** | **DateTime?** | When NFT metadata was last synced | +**MetadataId** | **Guid?** | The id of the metadata of this NFT | [optional] +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalLink** | **string** | (deprecated - use external_url instead) The external website link of NFT | +**ExternalUrl** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of NFT Metadata attributes | +**TotalSupply** | **string** | The total supply of NFT | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTBundle.md b/src/Packages/ZkEvmApi/Documentation~/NFTBundle.md new file mode 100644 index 00000000..451cb0b0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTBundle.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.NFTBundle +NFT bundle includes NFT with stack, markets and listings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NftWithStack** | [**NFTWithStack**](NFTWithStack.md) | | +**Market** | [**Market**](Market.md) | | +**Listings** | [**List<Listing>**](Listing.md) | List of open listings for the stack. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTContractType.md b/src/Packages/ZkEvmApi/Documentation~/NFTContractType.md new file mode 100644 index 00000000..3bd36dda --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.NFTContractType +The contract type for an NFT + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttribute.md b/src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttribute.md new file mode 100644 index 00000000..f1124e92 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttribute.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.NFTMetadataAttribute + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayType** | **string** | Display type for this attribute | [optional] +**TraitType** | **string** | The metadata trait type | +**Value** | [**NFTMetadataAttributeValue**](NFTMetadataAttributeValue.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttributeValue.md b/src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttributeValue.md new file mode 100644 index 00000000..b52282a5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTMetadataAttributeValue.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.NFTMetadataAttributeValue +The metadata trait value + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTMetadataRequest.md b/src/Packages/ZkEvmApi/Documentation~/NFTMetadataRequest.md new file mode 100644 index 00000000..2d5abc00 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTMetadataRequest.md @@ -0,0 +1,17 @@ +# Immutable.Api.ZkEvm.Model.NFTMetadataRequest +The NFT metadata. Total size of this object should not exceed 16 KiB + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | [optional] +**Description** | **string** | The description of the NFT | [optional] +**Image** | **string** | The image url of the NFT | [optional] +**ExternalUrl** | **string** | The external link of the NFT | [optional] +**AnimationUrl** | **string** | The animation url of the NFT | [optional] +**YoutubeUrl** | **string** | The youtube link of the NFT | [optional] +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTOwner.md b/src/Packages/ZkEvmApi/Documentation~/NFTOwner.md new file mode 100644 index 00000000..1f00ca95 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTOwner.md @@ -0,0 +1,15 @@ +# Immutable.Api.ZkEvm.Model.NFTOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of NFT contract | +**TokenId** | **string** | An `uint256` token id as string | +**AccountAddress** | **string** | The account address of the owner of the NFT | +**Balance** | **string** | The amount of owned tokens (uint256 as string) | +**UpdatedAt** | **DateTime** | When the NFT owner was last updated | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTQuoteResult.md b/src/Packages/ZkEvmApi/Documentation~/NFTQuoteResult.md new file mode 100644 index 00000000..975a4bc1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTQuoteResult.md @@ -0,0 +1,15 @@ +# Immutable.Api.ZkEvm.Model.NFTQuoteResult +NFT quote result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**TokenId** | **string** | Token id of NFT (uint256 as string) | +**MarketStack** | [**Market**](Market.md) | | +**MarketNft** | [**MarketNft**](MarketNft.md) | | +**MarketCollection** | [**Market**](Market.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTSale.md b/src/Packages/ZkEvmApi/Documentation~/NFTSale.md new file mode 100644 index 00000000..4bc63c0e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTSale.md @@ -0,0 +1,15 @@ +# Immutable.Api.ZkEvm.Model.NFTSale +The NFT Sale activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **string** | The id of order | +**To** | **string** | The account address of buyer | +**From** | **string** | The account address of seller | +**Asset** | [**List<ActivityNFT>**](ActivityNFT.md) | | +**Payment** | [**SalePayment**](SalePayment.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTWithBalance.md b/src/Packages/ZkEvmApi/Documentation~/NFTWithBalance.md new file mode 100644 index 00000000..868c6bfa --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTWithBalance.md @@ -0,0 +1,25 @@ +# Immutable.Api.ZkEvm.Model.NFTWithBalance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**TokenId** | **string** | An `uint256` token id as string | +**ContractAddress** | **string** | The contract address of the NFT | +**ContractType** | **NFTContractType** | | +**IndexedAt** | **DateTime** | When the NFT was first indexed | +**UpdatedAt** | **DateTime** | When the NFT owner was last updated | +**MetadataSyncedAt** | **DateTime?** | When NFT metadata was last synced | +**MetadataId** | **Guid?** | The id of the metadata of this NFT | [optional] +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalLink** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**Balance** | **string** | The amount of this NFT this account owns | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTWithOwner.md b/src/Packages/ZkEvmApi/Documentation~/NFTWithOwner.md new file mode 100644 index 00000000..472361b3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTWithOwner.md @@ -0,0 +1,15 @@ +# Immutable.Api.ZkEvm.Model.NFTWithOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of NFT contract | +**TokenId** | **string** | An `uint256` token id as string | +**AccountAddress** | **string** | The account address of the owner of the NFT | +**Balance** | **string** | The amount of owned tokens (uint256 as string) | +**UpdatedAt** | **DateTime** | When the owner last changed for the given NFT | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NFTWithStack.md b/src/Packages/ZkEvmApi/Documentation~/NFTWithStack.md new file mode 100644 index 00000000..b95b1fbd --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NFTWithStack.md @@ -0,0 +1,25 @@ +# Immutable.Api.ZkEvm.Model.NFTWithStack +Stack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenId** | **string** | Token id of NFT (uint256 as string) | +**StackId** | **Guid** | Stack ID | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | Contract address | +**ContractType** | **MarketplaceContractType** | | +**CreatedAt** | **DateTime** | When the metadata was created | +**UpdatedAt** | **DateTime** | When the metadata was last updated | +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**Balance** | **int?** | Balance of NFT | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NativeItem.md b/src/Packages/ZkEvmApi/Documentation~/NativeItem.md new file mode 100644 index 00000000..dc6449a5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NativeItem.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.NativeItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Token type user is offering, which in this case is the native IMX token | +**Amount** | **string** | A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NftOwnersApi.md b/src/Packages/ZkEvmApi/Documentation~/NftOwnersApi.md new file mode 100644 index 00000000..86f0d1d8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NftOwnersApi.md @@ -0,0 +1,316 @@ +# Immutable.Api.ZkEvm.Api.NftOwnersApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ListAllNFTOwners**](NftOwnersApi.md#listallnftowners) | **GET** /v1/chains/{chain_name}/nft-owners | List all NFT owners | +| [**ListNFTOwners**](NftOwnersApi.md#listnftowners) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners | List NFT owners by token ID | +| [**ListOwnersByContractAddress**](NftOwnersApi.md#listownersbycontractaddress) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/owners | List owners by contract address | + + +# **ListAllNFTOwners** +> ListNFTOwnersResult ListAllNFTOwners (string chainName, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List all NFT owners + +List all NFT owners on a chain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListAllNFTOwnersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftOwnersApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all NFT owners + ListNFTOwnersResult result = apiInstance.ListAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftOwnersApi.ListAllNFTOwners: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListAllNFTOwnersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all NFT owners + ApiResponse response = apiInstance.ListAllNFTOwnersWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftOwnersApi.ListAllNFTOwnersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTOwnersResult**](ListNFTOwnersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListNFTOwners** +> ListNFTOwnersResult ListNFTOwners (string contractAddress, string tokenId, string chainName, string? pageCursor = null, int? pageSize = null) + +List NFT owners by token ID + +List NFT owners by token ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListNFTOwnersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftOwnersApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var tokenId = 1; // string | An `uint256` token id as string + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List NFT owners by token ID + ListNFTOwnersResult result = apiInstance.ListNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftOwnersApi.ListNFTOwners: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListNFTOwnersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFT owners by token ID + ApiResponse response = apiInstance.ListNFTOwnersWithHttpInfo(contractAddress, tokenId, chainName, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftOwnersApi.ListNFTOwnersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **tokenId** | **string** | An `uint256` token id as string | | +| **chainName** | **string** | The name of chain | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTOwnersResult**](ListNFTOwnersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListOwnersByContractAddress** +> ListCollectionOwnersResult ListOwnersByContractAddress (string contractAddress, string chainName, List? accountAddress = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List owners by contract address + +List owners by contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListOwnersByContractAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftOwnersApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var accountAddress = new List?(); // List? | List of account addresses to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List owners by contract address + ListCollectionOwnersResult result = apiInstance.ListOwnersByContractAddress(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftOwnersApi.ListOwnersByContractAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListOwnersByContractAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List owners by contract address + ApiResponse response = apiInstance.ListOwnersByContractAddressWithHttpInfo(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftOwnersApi.ListOwnersByContractAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **accountAddress** | [**List<string>?**](string.md) | List of account addresses to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListCollectionOwnersResult**](ListCollectionOwnersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/NftsApi.md b/src/Packages/ZkEvmApi/Documentation~/NftsApi.md new file mode 100644 index 00000000..eb7b0767 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/NftsApi.md @@ -0,0 +1,743 @@ +# Immutable.Api.ZkEvm.Api.NftsApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CreateMintRequest**](NftsApi.md#createmintrequest) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | Mint NFTs | +| [**GetMintRequest**](NftsApi.md#getmintrequest) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id} | Get mint request by reference ID | +| [**GetNFT**](NftsApi.md#getnft) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id} | Get NFT by token ID | +| [**ListAllNFTs**](NftsApi.md#listallnfts) | **GET** /v1/chains/{chain_name}/nfts | List all NFTs | +| [**ListMintRequests**](NftsApi.md#listmintrequests) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | List mint requests | +| [**ListNFTs**](NftsApi.md#listnfts) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts | List NFTs by contract address | +| [**ListNFTsByAccountAddress**](NftsApi.md#listnftsbyaccountaddress) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/nfts | List NFTs by account address | + + +# **CreateMintRequest** +> CreateMintRequestResult CreateMintRequest (string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest) + +Mint NFTs + +Create a mint request to mint a set of NFTs for a given collection + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class CreateMintRequestExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var createMintRequestRequest = new CreateMintRequestRequest(); // CreateMintRequestRequest | Create Mint Request Body + + try + { + // Mint NFTs + CreateMintRequestResult result = apiInstance.CreateMintRequest(contractAddress, chainName, createMintRequestRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.CreateMintRequest: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateMintRequestWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Mint NFTs + ApiResponse response = apiInstance.CreateMintRequestWithHttpInfo(contractAddress, chainName, createMintRequestRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.CreateMintRequestWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **createMintRequestRequest** | [**CreateMintRequestRequest**](CreateMintRequestRequest.md) | Create Mint Request Body | | + +### Return type + +[**CreateMintRequestResult**](CreateMintRequestResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Accepted | * imx-mint-requests-limit -
* imx-mint-requests-limit-reset -
* imx-remaining-mint-requests -
* imx-mint-requests-retry-after -
| +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **409** | Conflict (409) | - | +| **429** | Too Many mint requests (429) | * imx-mint-requests-limit -
* imx-mint-requests-limit-reset -
* imx-remaining-mint-requests -
* imx-mint-requests-retry-after -
* Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetMintRequest** +> ListMintRequestsResult GetMintRequest (string contractAddress, string chainName, string referenceId) + +Get mint request by reference ID + +Retrieve the status of a mint request identified by its reference_id + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetMintRequestExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var referenceId = 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0; // string | The id of the mint request + + try + { + // Get mint request by reference ID + ListMintRequestsResult result = apiInstance.GetMintRequest(contractAddress, chainName, referenceId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.GetMintRequest: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetMintRequestWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get mint request by reference ID + ApiResponse response = apiInstance.GetMintRequestWithHttpInfo(contractAddress, chainName, referenceId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.GetMintRequestWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **referenceId** | **string** | The id of the mint request | | + +### Return type + +[**ListMintRequestsResult**](ListMintRequestsResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetNFT** +> GetNFTResult GetNFT (string contractAddress, string tokenId, string chainName) + +Get NFT by token ID + +Get NFT by token ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetNFTExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var contractAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | The address of NFT contract + var tokenId = 1; // string | An `uint256` token id as string + var chainName = imtbl-zkevm-testnet; // string | The name of chain + + try + { + // Get NFT by token ID + GetNFTResult result = apiInstance.GetNFT(contractAddress, tokenId, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.GetNFT: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetNFTWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get NFT by token ID + ApiResponse response = apiInstance.GetNFTWithHttpInfo(contractAddress, tokenId, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.GetNFTWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of NFT contract | | +| **tokenId** | **string** | An `uint256` token id as string | | +| **chainName** | **string** | The name of chain | | + +### Return type + +[**GetNFTResult**](GetNFTResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListAllNFTs** +> ListNFTsResult ListAllNFTs (string chainName, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List all NFTs + +List all NFTs on a chain + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListAllNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List all NFTs + ListNFTsResult result = apiInstance.ListAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListAllNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListAllNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all NFTs + ApiResponse response = apiInstance.ListAllNFTsWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListAllNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTsResult**](ListNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListMintRequests** +> ListMintRequestsResult ListMintRequests (string contractAddress, string chainName, string? pageCursor = null, int? pageSize = null, MintRequestStatus? status = null) + +List mint requests + +Retrieve the status of all mints for a given contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListMintRequestsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure API key authorization: ImmutableApiKey + config.AddApiKey("x-immutable-api-key", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("x-immutable-api-key", "Bearer"); + + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + var status = new MintRequestStatus?(); // MintRequestStatus? | The status of the mint request (optional) + + try + { + // List mint requests + ListMintRequestsResult result = apiInstance.ListMintRequests(contractAddress, chainName, pageCursor, pageSize, status); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListMintRequests: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListMintRequestsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List mint requests + ApiResponse response = apiInstance.ListMintRequestsWithHttpInfo(contractAddress, chainName, pageCursor, pageSize, status); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListMintRequestsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | +| **status** | [**MintRequestStatus?**](MintRequestStatus?.md) | The status of the mint request | [optional] | + +### Return type + +[**ListMintRequestsResult**](ListMintRequestsResult.md) + +### Authorization + +[ImmutableApiKey](../README.md#ImmutableApiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListNFTs** +> ListNFTsResult ListNFTs (string contractAddress, string chainName, List? tokenId = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List NFTs by contract address + +List NFTs by contract address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | Contract address + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var tokenId = new List?(); // List? | List of token IDs to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List NFTs by contract address + ListNFTsResult result = apiInstance.ListNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFTs by contract address + ApiResponse response = apiInstance.ListNFTsWithHttpInfo(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | Contract address | | +| **chainName** | **string** | The name of chain | | +| **tokenId** | [**List<string>?**](string.md) | List of token IDs to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTsResult**](ListNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListNFTsByAccountAddress** +> ListNFTsByOwnerResult ListNFTsByAccountAddress (string accountAddress, string chainName, string? contractAddress = null, List? tokenId = null, DateTime? fromUpdatedAt = null, string? pageCursor = null, int? pageSize = null) + +List NFTs by account address + +List NFTs by account address + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListNFTsByAccountAddressExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new NftsApi(config); + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string | Account address + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string? | The address of contract (optional) + var tokenId = new List?(); // List? | List of token IDs to filter by (optional) + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List NFTs by account address + ListNFTsByOwnerResult result = apiInstance.ListNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NftsApi.ListNFTsByAccountAddress: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListNFTsByAccountAddressWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List NFTs by account address + ApiResponse response = apiInstance.ListNFTsByAccountAddressWithHttpInfo(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NftsApi.ListNFTsByAccountAddressWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **accountAddress** | **string** | Account address | | +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string?** | The address of contract | [optional] | +| **tokenId** | [**List<string>?**](string.md) | List of token IDs to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListNFTsByOwnerResult**](ListNFTsByOwnerResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatus.md b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatus.md new file mode 100644 index 00000000..5e15c97b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatus.md @@ -0,0 +1,15 @@ +# Immutable.Api.ZkEvm.Model.OperatorAllowlistContractStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of the contract | +**Status** | **OperatorAllowlistStatus** | | +**Details** | [**OperatorAllowlistStatusDetails**](OperatorAllowlistStatusDetails.md) | | +**CreatedAt** | **DateTime** | When the contract status was created | +**CreatedBy** | **string** | Who created the status | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatusInternal.md b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatusInternal.md new file mode 100644 index 00000000..13e8be6b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistContractStatusInternal.md @@ -0,0 +1,17 @@ +# Immutable.Api.ZkEvm.Model.OperatorAllowlistContractStatusInternal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of the contract | +**Status** | **OperatorAllowlistStatus** | | +**Details** | [**OperatorAllowlistStatusDetails**](OperatorAllowlistStatusDetails.md) | | +**CreatedAt** | **DateTime** | When the contract status was created | +**CreatedBy** | **string** | Who created the status | +**OrgName** | **string** | The name of the organisation associated with this contract | +**OrgTier** | **OrganisationTier** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatus.md b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatus.md new file mode 100644 index 00000000..a818086e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.OperatorAllowlistStatus +The status of a contract on the operator allowlist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusDetails.md b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusDetails.md new file mode 100644 index 00000000..b36ca5f0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusDetails.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.OperatorAllowlistStatusDetails +The operator allowlist status details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Purpose** | **string** | Reason this contract needs to be added | +**IsSettlementContract** | **bool** | Attestation of whether this contract is a settlement contract | +**Reason** | **string** | Why this action was performed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusRequested.md b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusRequested.md new file mode 100644 index 00000000..96df3eda --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusRequested.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.OperatorAllowlistStatusRequested +The request details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Purpose** | **string** | Reason this contract needs to be added | +**IsSettlementContract** | **bool** | Attestation of whether this contract is a settlement contract | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusUpdated.md b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusUpdated.md new file mode 100644 index 00000000..c130cc93 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OperatorAllowlistStatusUpdated.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.OperatorAllowlistStatusUpdated +The update details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | Why this action was performed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Order.md b/src/Packages/ZkEvmApi/Documentation~/Order.md new file mode 100644 index 00000000..f6986b2a --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Order.md @@ -0,0 +1,26 @@ +# Immutable.Api.ZkEvm.Model.Order + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountAddress** | **string** | | +**Buy** | [**List<Item>**](Item.md) | | +**Fees** | [**List<Fee>**](Fee.md) | | +**Chain** | [**Chain**](Chain.md) | | +**CreatedAt** | **DateTime** | Time the Order is created | +**EndAt** | **DateTime** | Time after which the Order is considered expired | +**Id** | **string** | Global Order identifier | +**OrderHash** | **string** | | +**ProtocolData** | [**ProtocolData**](ProtocolData.md) | | +**Salt** | **string** | A random value added to the create Order request | +**Sell** | [**List<Item>**](Item.md) | | +**Signature** | **string** | Digital signature generated by the user for the specific Order | +**StartAt** | **DateTime** | Time after which Order is considered active | +**Status** | [**OrderStatus**](OrderStatus.md) | | +**Type** | **string** | Order type | +**UpdatedAt** | **DateTime** | Time the Order is last updated | +**FillStatus** | [**FillStatus**](FillStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/OrderStatus.md new file mode 100644 index 00000000..e2bae896 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OrderStatus.md @@ -0,0 +1,17 @@ +# Immutable.Api.ZkEvm.Model.OrderStatus +The Order status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | A terminal order status indicating that an order cannot be fulfilled due to expiry. | +**Pending** | **bool** | Whether the cancellation of the order is pending | +**CancellationType** | **string** | Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account | +**Evaluated** | **bool** | Whether the order has been evaluated after its creation | +**Started** | **bool** | Whether the order has reached its specified start time | +**SufficientApprovals** | **bool** | Whether the order offerer has sufficient approvals | +**SufficientBalances** | **bool** | Whether the order offerer still has sufficient balance to complete the order | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OrderStatusName.md b/src/Packages/ZkEvmApi/Documentation~/OrderStatusName.md new file mode 100644 index 00000000..370515b2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OrderStatusName.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.OrderStatusName +The Order status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OrdersApi.md b/src/Packages/ZkEvmApi/Documentation~/OrdersApi.md new file mode 100644 index 00000000..c3fa7ed3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OrdersApi.md @@ -0,0 +1,1343 @@ +# Immutable.Api.ZkEvm.Api.OrdersApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**CancelOrders**](OrdersApi.md#cancelorders) | **POST** /v1/chains/{chain_name}/orders/cancel | Cancel one or more orders | +| [**CreateBid**](OrdersApi.md#createbid) | **POST** /v1/chains/{chain_name}/orders/bids | Create a bid | +| [**CreateCollectionBid**](OrdersApi.md#createcollectionbid) | **POST** /v1/chains/{chain_name}/orders/collection-bids | Create a collection bid | +| [**CreateListing**](OrdersApi.md#createlisting) | **POST** /v1/chains/{chain_name}/orders/listings | Create a listing | +| [**FulfillmentData**](OrdersApi.md#fulfillmentdata) | **POST** /v1/chains/{chain_name}/orders/fulfillment-data | Retrieve fulfillment data for orders | +| [**GetBid**](OrdersApi.md#getbid) | **GET** /v1/chains/{chain_name}/orders/bids/{bid_id} | Get a single bid by ID | +| [**GetCollectionBid**](OrdersApi.md#getcollectionbid) | **GET** /v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id} | Get a single collection bid by ID | +| [**GetListing**](OrdersApi.md#getlisting) | **GET** /v1/chains/{chain_name}/orders/listings/{listing_id} | Get a single listing by ID | +| [**GetTrade**](OrdersApi.md#gettrade) | **GET** /v1/chains/{chain_name}/trades/{trade_id} | Get a single trade by ID | +| [**ListBids**](OrdersApi.md#listbids) | **GET** /v1/chains/{chain_name}/orders/bids | List all bids | +| [**ListCollectionBids**](OrdersApi.md#listcollectionbids) | **GET** /v1/chains/{chain_name}/orders/collection-bids | List all collection bids | +| [**ListListings**](OrdersApi.md#listlistings) | **GET** /v1/chains/{chain_name}/orders/listings | List all listings | +| [**ListTrades**](OrdersApi.md#listtrades) | **GET** /v1/chains/{chain_name}/trades | List all trades | + + +# **CancelOrders** +> CancelOrdersResult CancelOrders (string chainName, CancelOrdersRequestBody cancelOrdersRequestBody) + +Cancel one or more orders + +Cancel one or more orders + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class CancelOrdersExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var cancelOrdersRequestBody = new CancelOrdersRequestBody(); // CancelOrdersRequestBody | + + try + { + // Cancel one or more orders + CancelOrdersResult result = apiInstance.CancelOrders(chainName, cancelOrdersRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CancelOrders: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CancelOrdersWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Cancel one or more orders + ApiResponse response = apiInstance.CancelOrdersWithHttpInfo(chainName, cancelOrdersRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CancelOrdersWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **cancelOrdersRequestBody** | [**CancelOrdersRequestBody**](CancelOrdersRequestBody.md) | | | + +### Return type + +[**CancelOrdersResult**](CancelOrdersResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Orders cancellation response. | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | +| **501** | Not Implemented Error (501) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateBid** +> BidResult CreateBid (string chainName, CreateBidRequestBody createBidRequestBody) + +Create a bid + +Create a bid + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class CreateBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var createBidRequestBody = new CreateBidRequestBody(); // CreateBidRequestBody | + + try + { + // Create a bid + BidResult result = apiInstance.CreateBid(chainName, createBidRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CreateBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a bid + ApiResponse response = apiInstance.CreateBidWithHttpInfo(chainName, createBidRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CreateBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **createBidRequestBody** | [**CreateBidRequestBody**](CreateBidRequestBody.md) | | | + +### Return type + +[**BidResult**](BidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | +| **501** | Not Implemented Error (501) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateCollectionBid** +> CollectionBidResult CreateCollectionBid (string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody) + +Create a collection bid + +Create a collection bid + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class CreateCollectionBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var createCollectionBidRequestBody = new CreateCollectionBidRequestBody(); // CreateCollectionBidRequestBody | + + try + { + // Create a collection bid + CollectionBidResult result = apiInstance.CreateCollectionBid(chainName, createCollectionBidRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CreateCollectionBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateCollectionBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a collection bid + ApiResponse response = apiInstance.CreateCollectionBidWithHttpInfo(chainName, createCollectionBidRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CreateCollectionBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **createCollectionBidRequestBody** | [**CreateCollectionBidRequestBody**](CreateCollectionBidRequestBody.md) | | | + +### Return type + +[**CollectionBidResult**](CollectionBidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | +| **501** | Not Implemented Error (501) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **CreateListing** +> ListingResult CreateListing (string chainName, CreateListingRequestBody createListingRequestBody) + +Create a listing + +Create a listing + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class CreateListingExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var createListingRequestBody = new CreateListingRequestBody(); // CreateListingRequestBody | + + try + { + // Create a listing + ListingResult result = apiInstance.CreateListing(chainName, createListingRequestBody); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.CreateListing: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the CreateListingWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Create a listing + ApiResponse response = apiInstance.CreateListingWithHttpInfo(chainName, createListingRequestBody); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.CreateListingWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **createListingRequestBody** | [**CreateListingRequestBody**](CreateListingRequestBody.md) | | | + +### Return type + +[**ListingResult**](ListingResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Created response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **FulfillmentData** +> FulfillmentData200Response FulfillmentData (string chainName, List fulfillmentDataRequest) + +Retrieve fulfillment data for orders + +Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class FulfillmentDataExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var fulfillmentDataRequest = new List(); // List | + + try + { + // Retrieve fulfillment data for orders + FulfillmentData200Response result = apiInstance.FulfillmentData(chainName, fulfillmentDataRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.FulfillmentData: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the FulfillmentDataWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Retrieve fulfillment data for orders + ApiResponse response = apiInstance.FulfillmentDataWithHttpInfo(chainName, fulfillmentDataRequest); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.FulfillmentDataWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **fulfillmentDataRequest** | [**List<FulfillmentDataRequest>**](FulfillmentDataRequest.md) | | | + +### Return type + +[**FulfillmentData200Response**](FulfillmentData200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetBid** +> BidResult GetBid (string chainName, Guid bidId) + +Get a single bid by ID + +Get a single bid by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var bidId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Bid identifier + + try + { + // Get a single bid by ID + BidResult result = apiInstance.GetBid(chainName, bidId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single bid by ID + ApiResponse response = apiInstance.GetBidWithHttpInfo(chainName, bidId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **bidId** | **Guid** | Global Bid identifier | | + +### Return type + +[**BidResult**](BidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetCollectionBid** +> CollectionBidResult GetCollectionBid (string chainName, Guid collectionBidId) + +Get a single collection bid by ID + +Get a single collection bid by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetCollectionBidExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var collectionBidId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Collection Bid identifier + + try + { + // Get a single collection bid by ID + CollectionBidResult result = apiInstance.GetCollectionBid(chainName, collectionBidId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetCollectionBid: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetCollectionBidWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single collection bid by ID + ApiResponse response = apiInstance.GetCollectionBidWithHttpInfo(chainName, collectionBidId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetCollectionBidWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **collectionBidId** | **Guid** | Global Collection Bid identifier | | + +### Return type + +[**CollectionBidResult**](CollectionBidResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetListing** +> ListingResult GetListing (string chainName, Guid listingId) + +Get a single listing by ID + +Get a single listing by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetListingExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var listingId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Order identifier + + try + { + // Get a single listing by ID + ListingResult result = apiInstance.GetListing(chainName, listingId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetListing: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetListingWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single listing by ID + ApiResponse response = apiInstance.GetListingWithHttpInfo(chainName, listingId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetListingWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **listingId** | **Guid** | Global Order identifier | | + +### Return type + +[**ListingResult**](ListingResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetTrade** +> TradeResult GetTrade (string chainName, Guid tradeId) + +Get a single trade by ID + +Get a single trade by ID + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetTradeExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var tradeId = 018792c9-4ad7-8ec4-4038-9e05c598534a; // Guid | Global Trade identifier + + try + { + // Get a single trade by ID + TradeResult result = apiInstance.GetTrade(chainName, tradeId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.GetTrade: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetTradeWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get a single trade by ID + ApiResponse response = apiInstance.GetTradeWithHttpInfo(chainName, tradeId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.GetTradeWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **tradeId** | **Guid** | Global Trade identifier | | + +### Return type + +[**TradeResult**](TradeResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListBids** +> ListBidsResult ListBids (string chainName, OrderStatusName? status = null, string? buyItemContractAddress = null, string? sellItemContractAddress = null, string? accountAddress = null, Guid? buyItemMetadataId = null, string? buyItemTokenId = null, DateTime? fromUpdatedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all bids + +List all bids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListBidsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var status = new OrderStatusName?(); // OrderStatusName? | Order status to filter by (optional) + var buyItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Buy item contract address to filter by (optional) + var sellItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Sell item contract address to filter by (optional) + var accountAddress = 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | The account address of the user who created the bid (optional) + var buyItemMetadataId = 020792c9-4ad7-8ec4-4038-9e05c598535b; // Guid? | The metadata_id of the buy item (optional) + var buyItemTokenId = 1; // string? | buy item token identifier to filter by (optional) + var fromUpdatedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From updated at including given date (optional) + var pageSize = 100; // int? | Maximum number of orders to return per page (optional) (default to 100) + var sortBy = created_at; // string? | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all bids + ListBidsResult result = apiInstance.ListBids(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListBids: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListBidsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all bids + ApiResponse response = apiInstance.ListBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListBidsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **status** | [**OrderStatusName?**](OrderStatusName?.md) | Order status to filter by | [optional] | +| **buyItemContractAddress** | **string?** | Buy item contract address to filter by | [optional] | +| **sellItemContractAddress** | **string?** | Sell item contract address to filter by | [optional] | +| **accountAddress** | **string?** | The account address of the user who created the bid | [optional] | +| **buyItemMetadataId** | **Guid?** | The metadata_id of the buy item | [optional] | +| **buyItemTokenId** | **string?** | buy item token identifier to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | From updated at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of orders to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListBidsResult**](ListBidsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListCollectionBids** +> ListCollectionBidsResult ListCollectionBids (string chainName, OrderStatusName? status = null, string? buyItemContractAddress = null, string? sellItemContractAddress = null, string? accountAddress = null, DateTime? fromUpdatedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all collection bids + +List all collection bids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListCollectionBidsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var status = new OrderStatusName?(); // OrderStatusName? | Order status to filter by (optional) + var buyItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Buy item contract address to filter by (optional) + var sellItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Sell item contract address to filter by (optional) + var accountAddress = 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | The account address of the user who created the bid (optional) + var fromUpdatedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From updated at including given date (optional) + var pageSize = 100; // int? | Maximum number of orders to return per page (optional) (default to 100) + var sortBy = created_at; // string? | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all collection bids + ListCollectionBidsResult result = apiInstance.ListCollectionBids(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListCollectionBids: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListCollectionBidsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all collection bids + ApiResponse response = apiInstance.ListCollectionBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListCollectionBidsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **status** | [**OrderStatusName?**](OrderStatusName?.md) | Order status to filter by | [optional] | +| **buyItemContractAddress** | **string?** | Buy item contract address to filter by | [optional] | +| **sellItemContractAddress** | **string?** | Sell item contract address to filter by | [optional] | +| **accountAddress** | **string?** | The account address of the user who created the bid | [optional] | +| **fromUpdatedAt** | **DateTime?** | From updated at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of orders to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListCollectionBidsResult**](ListCollectionBidsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListListings** +> ListListingsResult ListListings (string chainName, OrderStatusName? status = null, string? sellItemContractAddress = null, string? buyItemType = null, string? buyItemContractAddress = null, string? accountAddress = null, Guid? sellItemMetadataId = null, string? sellItemTokenId = null, DateTime? fromUpdatedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all listings + +List all listings + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListListingsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var status = new OrderStatusName?(); // OrderStatusName? | Order status to filter by (optional) + var sellItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Sell item contract address to filter by (optional) + var buyItemType = NATIVE; // string? | Buy item type to filter by (optional) + var buyItemContractAddress = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | Buy item contract address to filter by (optional) + var accountAddress = 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266; // string? | The account address of the user who created the listing (optional) + var sellItemMetadataId = 020792c9-4ad7-8ec4-4038-9e05c598535b; // Guid? | The metadata_id of the sell item (optional) + var sellItemTokenId = 1; // string? | Sell item token identifier to filter by (optional) + var fromUpdatedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From updated at including given date (optional) + var pageSize = 100; // int? | Maximum number of orders to return per page (optional) (default to 100) + var sortBy = created_at; // string? | Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all listings + ListListingsResult result = apiInstance.ListListings(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListListings: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListListingsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all listings + ApiResponse response = apiInstance.ListListingsWithHttpInfo(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListListingsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **status** | [**OrderStatusName?**](OrderStatusName?.md) | Order status to filter by | [optional] | +| **sellItemContractAddress** | **string?** | Sell item contract address to filter by | [optional] | +| **buyItemType** | **string?** | Buy item type to filter by | [optional] | +| **buyItemContractAddress** | **string?** | Buy item contract address to filter by | [optional] | +| **accountAddress** | **string?** | The account address of the user who created the listing | [optional] | +| **sellItemMetadataId** | **Guid?** | The metadata_id of the sell item | [optional] | +| **sellItemTokenId** | **string?** | Sell item token identifier to filter by | [optional] | +| **fromUpdatedAt** | **DateTime?** | From updated at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of orders to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListListingsResult**](ListListingsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListTrades** +> ListTradeResult ListTrades (string chainName, string? accountAddress = null, string? sellItemContractAddress = null, DateTime? fromIndexedAt = null, int? pageSize = null, string? sortBy = null, string? sortDirection = null, string? pageCursor = null) + +List all trades + +List all trades + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListTradesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new OrdersApi(config); + var chainName = "chainName_example"; // string | + var accountAddress = 0x784578949A4A50DeA641Fb15dd2B11C72E76919a; // string? | (optional) + var sellItemContractAddress = 0x784578949A4A50DeA641Fb15dd2B11C72E76919a; // string? | (optional) + var fromIndexedAt = 2022-03-09T05:00:50.520Z; // DateTime? | From indexed at including given date (optional) + var pageSize = 100; // int? | Maximum number of trades to return per page (optional) (default to 100) + var sortBy = indexed_at; // string? | Trade field to sort by (optional) + var sortDirection = asc; // string? | Ascending or descending direction for sort (optional) + var pageCursor = "pageCursor_example"; // string? | Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // List all trades + ListTradeResult result = apiInstance.ListTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling OrdersApi.ListTrades: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListTradesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List all trades + ApiResponse response = apiInstance.ListTradesWithHttpInfo(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling OrdersApi.ListTradesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | | | +| **accountAddress** | **string?** | | [optional] | +| **sellItemContractAddress** | **string?** | | [optional] | +| **fromIndexedAt** | **DateTime?** | From indexed at including given date | [optional] | +| **pageSize** | **int?** | Maximum number of trades to return per page | [optional] [default to 100] | +| **sortBy** | **string?** | Trade field to sort by | [optional] | +| **sortDirection** | **string?** | Ascending or descending direction for sort | [optional] | +| **pageCursor** | **string?** | Page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**ListTradeResult**](ListTradeResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK response. | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/OrganisationTier.md b/src/Packages/ZkEvmApi/Documentation~/OrganisationTier.md new file mode 100644 index 00000000..3e3ca30a --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/OrganisationTier.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.OrganisationTier +The tier of the organisation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Page.md b/src/Packages/ZkEvmApi/Documentation~/Page.md new file mode 100644 index 00000000..04a74ace --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Page.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.Page +Pagination properties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreviousCursor** | **string** | First item as an encoded string | +**NextCursor** | **string** | Last item as an encoded string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/PassportApi.md b/src/Packages/ZkEvmApi/Documentation~/PassportApi.md new file mode 100644 index 00000000..92ae0516 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/PassportApi.md @@ -0,0 +1,110 @@ +# Immutable.Api.ZkEvm.Api.PassportApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetLinkedAddresses**](PassportApi.md#getlinkedaddresses) | **GET** /v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses | Get Ethereum linked addresses for a user | + + +# **GetLinkedAddresses** +> GetLinkedAddressesRes GetLinkedAddresses (string userId, string chainName) + +Get Ethereum linked addresses for a user + +This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetLinkedAddressesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new PassportApi(config); + var userId = "userId_example"; // string | The user's userId + var chainName = "chainName_example"; // string | + + try + { + // Get Ethereum linked addresses for a user + GetLinkedAddressesRes result = apiInstance.GetLinkedAddresses(userId, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PassportApi.GetLinkedAddresses: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetLinkedAddressesWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get Ethereum linked addresses for a user + ApiResponse response = apiInstance.GetLinkedAddressesWithHttpInfo(userId, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PassportApi.GetLinkedAddressesWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **userId** | **string** | The user's userId | | +| **chainName** | **string** | | | + +### Return type + +[**GetLinkedAddressesRes**](GetLinkedAddressesRes.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | User's list of linked addresses response | - | +| **400** | BadRequestError | - | +| **401** | UnauthorizedError | - | +| **403** | ForbiddenError | - | +| **429** | TooManyRequestsError | - | +| **500** | InternalServerError | - | +| **0** | unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/PassportProfileApi.md b/src/Packages/ZkEvmApi/Documentation~/PassportProfileApi.md new file mode 100644 index 00000000..ea4031b3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/PassportProfileApi.md @@ -0,0 +1,199 @@ +# Immutable.Api.ZkEvm.Api.PassportProfileApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetUserInfo**](PassportProfileApi.md#getuserinfo) | **GET** /passport-profile/v1/user/info | Get all info for a Passport user | +| [**LinkWalletV2**](PassportProfileApi.md#linkwalletv2) | **POST** /passport-profile/v2/linked-wallets | Link wallet v2 | + + +# **GetUserInfo** +> UserInfo GetUserInfo () + +Get all info for a Passport user + +Get all the info for an authenticated Passport user + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetUserInfoExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new PassportProfileApi(config); + + try + { + // Get all info for a Passport user + UserInfo result = apiInstance.GetUserInfo(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PassportProfileApi.GetUserInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetUserInfoWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get all info for a Passport user + ApiResponse response = apiInstance.GetUserInfoWithHttpInfo(); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PassportProfileApi.GetUserInfoWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters +This endpoint does not need any parameter. +### Return type + +[**UserInfo**](UserInfo.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Passport user's info | - | +| **401** | UnauthorizedError | - | +| **500** | InternalServerError | - | +| **0** | unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **LinkWalletV2** +> Wallet LinkWalletV2 (LinkWalletV2Request? linkWalletV2Request = null) + +Link wallet v2 + +Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class LinkWalletV2Example + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + // Configure Bearer token for authorization: BearerAuth + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new PassportProfileApi(config); + var linkWalletV2Request = new LinkWalletV2Request?(); // LinkWalletV2Request? | (optional) + + try + { + // Link wallet v2 + Wallet result = apiInstance.LinkWalletV2(linkWalletV2Request); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PassportProfileApi.LinkWalletV2: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the LinkWalletV2WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Link wallet v2 + ApiResponse response = apiInstance.LinkWalletV2WithHttpInfo(linkWalletV2Request); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PassportProfileApi.LinkWalletV2WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **linkWalletV2Request** | [**LinkWalletV2Request?**](LinkWalletV2Request?.md) | | [optional] | + +### Return type + +[**Wallet**](Wallet.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | BadRequestError | - | +| **401** | UnauthorizedError | - | +| **403** | ForbiddenError | - | +| **500** | InternalServerError | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/PendingOrderStatus.md b/src/Packages/ZkEvmApi/Documentation~/PendingOrderStatus.md new file mode 100644 index 00000000..2110087b --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/PendingOrderStatus.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.PendingOrderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The order status that indicates the order is yet to be active due to various reasons. | +**Evaluated** | **bool** | Whether the order has been evaluated after its creation | +**Started** | **bool** | Whether the order has reached its specified start time | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/PricingApi.md b/src/Packages/ZkEvmApi/Documentation~/PricingApi.md new file mode 100644 index 00000000..fa0a9371 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/PricingApi.md @@ -0,0 +1,215 @@ +# Immutable.Api.ZkEvm.Api.PricingApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**QuotesForNFTs**](PricingApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Experimental: Get pricing data for a list of token ids | +| [**QuotesForStacks**](PricingApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Experimental: Get pricing data for a list of stack ids | + + +# **QuotesForNFTs** +> QuotesForNFTsResult QuotesForNFTs (string chainName, string contractAddress, List tokenId, string? pageCursor = null) + +Experimental: Get pricing data for a list of token ids + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class QuotesForNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new PricingApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = "contractAddress_example"; // string | Contract address for collection that these token ids are on + var tokenId = new List(); // List | List of token ids to get pricing data for + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Get pricing data for a list of token ids + QuotesForNFTsResult result = apiInstance.QuotesForNFTs(chainName, contractAddress, tokenId, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PricingApi.QuotesForNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the QuotesForNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Get pricing data for a list of token ids + ApiResponse response = apiInstance.QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PricingApi.QuotesForNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | Contract address for collection that these token ids are on | | +| **tokenId** | [**List<string>**](string.md) | List of token ids to get pricing data for | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**QuotesForNFTsResult**](QuotesForNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **QuotesForStacks** +> QuotesForStacksResult QuotesForStacks (string chainName, string contractAddress, List stackId, string? pageCursor = null) + +Experimental: Get pricing data for a list of stack ids + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class QuotesForStacksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new PricingApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = "contractAddress_example"; // string | Contract address for collection that these stacks are on + var stackId = new List(); // List | List of stack ids to get pricing data for + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Get pricing data for a list of stack ids + QuotesForStacksResult result = apiInstance.QuotesForStacks(chainName, contractAddress, stackId, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling PricingApi.QuotesForStacks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the QuotesForStacksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Get pricing data for a list of stack ids + ApiResponse response = apiInstance.QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling PricingApi.QuotesForStacksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | **string** | Contract address for collection that these stacks are on | | +| **stackId** | [**List<Guid>**](Guid.md) | List of stack ids to get pricing data for | | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**QuotesForStacksResult**](QuotesForStacksResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/ProtocolData.md b/src/Packages/ZkEvmApi/Documentation~/ProtocolData.md new file mode 100644 index 00000000..9d94edb4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/ProtocolData.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.ProtocolData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderType** | **string** | Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED | +**Counter** | **string** | big.Int or uint256 string for order counter | +**ZoneAddress** | **string** | Immutable zone address | +**SeaportAddress** | **string** | Immutable Seaport contract address | +**SeaportVersion** | **string** | Immutable Seaport contract version | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/QuotesForNFTsResult.md b/src/Packages/ZkEvmApi/Documentation~/QuotesForNFTsResult.md new file mode 100644 index 00000000..f5ace9c5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/QuotesForNFTsResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.QuotesForNFTsResult +Quotes for NFTs result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTQuoteResult>**](NFTQuoteResult.md) | List of quotes | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/QuotesForStacksResult.md b/src/Packages/ZkEvmApi/Documentation~/QuotesForStacksResult.md new file mode 100644 index 00000000..db486352 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/QuotesForStacksResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.QuotesForStacksResult +Quotes for stacks result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<StackQuoteResult>**](StackQuoteResult.md) | List of quotes | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataRequest.md b/src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataRequest.md new file mode 100644 index 00000000..a298b0b3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataRequest.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.RefreshCollectionMetadataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionMetadata** | [**CollectionMetadata**](CollectionMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataResult.md b/src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataResult.md new file mode 100644 index 00000000..2bad89f0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshCollectionMetadataResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.RefreshCollectionMetadataResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractAddress** | **string** | | +**Chain** | [**Chain**](Chain.md) | | +**CollectionMetadata** | [**CollectionMetadata**](CollectionMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByID.md b/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByID.md new file mode 100644 index 00000000..56b62bb7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByID.md @@ -0,0 +1,17 @@ +# Immutable.Api.ZkEvm.Model.RefreshMetadataByID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external link of the NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube link of the NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**MetadataId** | **Guid** | Metadata id in UUIDv4 format | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByIDRequest.md b/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByIDRequest.md new file mode 100644 index 00000000..388b3d68 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByIDRequest.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.RefreshMetadataByIDRequest +Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**List<RefreshMetadataByID>**](RefreshMetadataByID.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByTokenID.md b/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByTokenID.md new file mode 100644 index 00000000..c6ea3a88 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshMetadataByTokenID.md @@ -0,0 +1,17 @@ +# Immutable.Api.ZkEvm.Model.RefreshMetadataByTokenID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external link of the NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube link of the NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | +**TokenId** | **string** | An `uint256` token id as string | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshNFTMetadataByTokenIDRequest.md b/src/Packages/ZkEvmApi/Documentation~/RefreshNFTMetadataByTokenIDRequest.md new file mode 100644 index 00000000..6bb65fdb --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshNFTMetadataByTokenIDRequest.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.RefreshNFTMetadataByTokenIDRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NftMetadata** | [**List<RefreshMetadataByTokenID>**](RefreshMetadataByTokenID.md) | List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/RefreshableNFTAttributes.md b/src/Packages/ZkEvmApi/Documentation~/RefreshableNFTAttributes.md new file mode 100644 index 00000000..072510fa --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/RefreshableNFTAttributes.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.RefreshableNFTAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external link of the NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube link of the NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SaleFee.md b/src/Packages/ZkEvmApi/Documentation~/SaleFee.md new file mode 100644 index 00000000..f902673f --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SaleFee.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.SaleFee + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | Fee payable to recipient upon settlement | [optional] +**Type** | **string** | Fee type | [optional] +**Recipient** | **string** | Wallet address of fee recipient | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SalePayment.md b/src/Packages/ZkEvmApi/Documentation~/SalePayment.md new file mode 100644 index 00000000..285fef03 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SalePayment.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.SalePayment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | [**SalePaymentToken**](SalePaymentToken.md) | | +**PriceExcludingFees** | **string** | The base price of the sale not including any fees | +**PriceIncludingFees** | **string** | The total price of the sale. Includes the sum of all fees | +**Fees** | [**List<SaleFee>**](SaleFee.md) | The fees associated with this sale | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SalePaymentToken.md b/src/Packages/ZkEvmApi/Documentation~/SalePaymentToken.md new file mode 100644 index 00000000..7643eccb --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SalePaymentToken.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.SalePaymentToken +The type of payment token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContractType** | **TokenContractType** | | +**ContractAddress** | **string** | The contract address | +**Symbol** | **string** | The token symbol | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SearchNFTsResult.md b/src/Packages/ZkEvmApi/Documentation~/SearchNFTsResult.md new file mode 100644 index 00000000..b97023dc --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SearchNFTsResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.SearchNFTsResult +Search NFTs result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<NFTBundle>**](NFTBundle.md) | List of nft bundles | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SearchStacksResult.md b/src/Packages/ZkEvmApi/Documentation~/SearchStacksResult.md new file mode 100644 index 00000000..907d22f1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SearchStacksResult.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.SearchStacksResult +Search stacks result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**List<StackBundle>**](StackBundle.md) | List of stack bundles | +**Page** | [**Page**](Page.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SignCraftingRequest.md b/src/Packages/ZkEvmApi/Documentation~/SignCraftingRequest.md new file mode 100644 index 00000000..83beecac --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SignCraftingRequest.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.SignCraftingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MultiCaller** | [**SignCraftingRequestMultiCaller**](SignCraftingRequestMultiCaller.md) | | +**ReferenceId** | **string** | The id of this request in the system that originates the crafting request, specified as a 32 byte hex string | +**Calls** | [**List<Call>**](Call.md) | The calls to be signed | +**ExpiresAt** | **DateTime** | The expiration time of the request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SignCraftingRequestMultiCaller.md b/src/Packages/ZkEvmApi/Documentation~/SignCraftingRequestMultiCaller.md new file mode 100644 index 00000000..75656656 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SignCraftingRequestMultiCaller.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.SignCraftingRequestMultiCaller + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | An Ethereum address | +**Name** | **string** | The name of the multicaller contract | +**VarVersion** | **string** | The version of the multicaller contract | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/SignCraftingResult.md b/src/Packages/ZkEvmApi/Documentation~/SignCraftingResult.md new file mode 100644 index 00000000..dd2307b6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/SignCraftingResult.md @@ -0,0 +1,11 @@ +# Immutable.Api.ZkEvm.Model.SignCraftingResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignerAddress** | **string** | An Ethereum address | +**Signature** | **string** | The signature of the request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Stack.md b/src/Packages/ZkEvmApi/Documentation~/Stack.md new file mode 100644 index 00000000..3a9db800 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Stack.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.Stack +Stack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StackId** | **Guid** | Stack ID | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | Contract address | +**ContractType** | **MarketplaceContractType** | | +**CreatedAt** | **DateTime** | When the metadata was created | +**UpdatedAt** | **DateTime** | When the metadata was last updated | +**Name** | **string** | The name of the NFT | +**Description** | **string** | The description of the NFT | +**Image** | **string** | The image url of the NFT | +**ExternalUrl** | **string** | The external website link of NFT | +**AnimationUrl** | **string** | The animation url of the NFT | +**YoutubeUrl** | **string** | The youtube URL of NFT | +**Attributes** | [**List<NFTMetadataAttribute>**](NFTMetadataAttribute.md) | List of Metadata attributes | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/StackBundle.md b/src/Packages/ZkEvmApi/Documentation~/StackBundle.md new file mode 100644 index 00000000..1567ef8e --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/StackBundle.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.StackBundle +Stack bundle includes stacks, markets and listings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stack** | [**Stack**](Stack.md) | | +**StackCount** | **int** | Total count of NFTs in the stack matching the filter params | +**Market** | [**Market**](Market.md) | | +**Listings** | [**List<Listing>**](Listing.md) | List of open listings for the stack. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/StackQuoteResult.md b/src/Packages/ZkEvmApi/Documentation~/StackQuoteResult.md new file mode 100644 index 00000000..62a4d913 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/StackQuoteResult.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.StackQuoteResult +Stack quote result + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**StackId** | **Guid** | | +**MarketStack** | [**Market**](Market.md) | | +**MarketCollection** | [**Market**](Market.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/StacksApi.md b/src/Packages/ZkEvmApi/Documentation~/StacksApi.md new file mode 100644 index 00000000..007d4cbf --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/StacksApi.md @@ -0,0 +1,233 @@ +# Immutable.Api.ZkEvm.Api.StacksApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**SearchNFTs**](StacksApi.md#searchnfts) | **GET** /experimental/chains/{chain_name}/search/nfts | Experimental: Search NFTs | +| [**SearchStacks**](StacksApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Experimental: Search NFT stacks | + + +# **SearchNFTs** +> SearchNFTsResult SearchNFTs (string chainName, List contractAddress, string? accountAddress = null, List? stackId = null, bool? onlyIncludeOwnerListings = null, int? pageSize = null, string? pageCursor = null) + +Experimental: Search NFTs + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class SearchNFTsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new StacksApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = new List(); // List | List of contract addresses to filter by + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional) + var stackId = new List?(); // List? | Filters NFTs that belong to any of these stacks (optional) + var onlyIncludeOwnerListings = true; // bool? | Whether the listings should include only the owner created listings (optional) + var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Search NFTs + SearchNFTsResult result = apiInstance.SearchNFTs(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling StacksApi.SearchNFTs: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SearchNFTsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Search NFTs + ApiResponse response = apiInstance.SearchNFTsWithHttpInfo(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling StacksApi.SearchNFTsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | [**List<string>**](string.md) | List of contract addresses to filter by | | +| **accountAddress** | **string?** | Account address to filter by | [optional] | +| **stackId** | [**List<Guid>?**](Guid.md) | Filters NFTs that belong to any of these stacks | [optional] | +| **onlyIncludeOwnerListings** | **bool?** | Whether the listings should include only the owner created listings | [optional] | +| **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**SearchNFTsResult**](SearchNFTsResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **SearchStacks** +> SearchStacksResult SearchStacks (string chainName, List 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) + +Experimental: Search NFT stacks + +![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class SearchStacksExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new StacksApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var contractAddress = new List(); // List | List of contract addresses to filter by + var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional) + var onlyIncludeOwnerListings = true; // bool? | Whether to the listings should include only the owner created listings (optional) + var onlyIfHasActiveListings = true; // bool? | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + var trait = "trait_example"; // string? | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + var keyword = sword; // string? | Keyword to search NFT name and description. Alphanumeric characters only. (optional) + var sortBy = "cheapest_first"; // string? | Sort results in a specific order (optional) + var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + + try + { + // Experimental: Search NFT stacks + SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling StacksApi.SearchStacks: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the SearchStacksWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Experimental: Search NFT stacks + ApiResponse response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling StacksApi.SearchStacksWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **contractAddress** | [**List<string>**](string.md) | List of contract addresses to filter by | | +| **accountAddress** | **string?** | Account address to filter by | [optional] | +| **onlyIncludeOwnerListings** | **bool?** | Whether to the listings should include only the owner created listings | [optional] | +| **onlyIfHasActiveListings** | **bool?** | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. | [optional] | +| **trait** | **string?** | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) | [optional] | +| **keyword** | **string?** | Keyword to search NFT name and description. Alphanumeric characters only. | [optional] | +| **sortBy** | **string?** | Sort results in a specific order | [optional] | +| **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | + +### Return type + +[**SearchStacksResult**](SearchStacksResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | 200 response | - | +| **400** | Bad Request (400) | - | +| **401** | Unauthorised Request (401) | - | +| **403** | Forbidden Request (403) | - | +| **404** | The specified resource was not found (404) | - | +| **429** | Too Many Requests (429) | * Retry-After -
| +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Token.md b/src/Packages/ZkEvmApi/Documentation~/Token.md new file mode 100644 index 00000000..61005701 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Token.md @@ -0,0 +1,21 @@ +# Immutable.Api.ZkEvm.Model.Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The address of token contract | +**RootContractAddress** | **string** | The address of root token contract | +**RootChainId** | **string** | The id of the root chain for a bridged token | [optional] +**BridgeUsed** | **string** | The name of the bridge, for bridged tokens only | [optional] +**Symbol** | **string** | The symbol of token | +**Decimals** | **int?** | The decimals of token | +**ImageUrl** | **string** | The image url of token | +**Name** | **string** | The name of token | +**VerificationStatus** | **AssetVerificationStatus** | | +**UpdatedAt** | **DateTime** | When the collection was last updated | +**IsCanonical** | **bool** | Indicates whether the token is canonical or not | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/TokenContractType.md b/src/Packages/ZkEvmApi/Documentation~/TokenContractType.md new file mode 100644 index 00000000..38591b68 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/TokenContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.TokenContractType +The contract type for a token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/TokensApi.md b/src/Packages/ZkEvmApi/Documentation~/TokensApi.md new file mode 100644 index 00000000..51ea6ca0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/TokensApi.md @@ -0,0 +1,209 @@ +# Immutable.Api.ZkEvm.Api.TokensApi + +All URIs are relative to *https://api.sandbox.immutable.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetERC20Token**](TokensApi.md#geterc20token) | **GET** /v1/chains/{chain_name}/tokens/{contract_address} | Get single ERC20 token | +| [**ListERC20Tokens**](TokensApi.md#listerc20tokens) | **GET** /v1/chains/{chain_name}/tokens | List ERC20 tokens | + + +# **GetERC20Token** +> GetTokenResult GetERC20Token (string contractAddress, string chainName) + +Get single ERC20 token + +Get single ERC20 token + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class GetERC20TokenExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new TokensApi(config); + var contractAddress = 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e; // string | The address of contract + var chainName = "chainName_example"; // string | The name of chain + + try + { + // Get single ERC20 token + GetTokenResult result = apiInstance.GetERC20Token(contractAddress, chainName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TokensApi.GetERC20Token: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetERC20TokenWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get single ERC20 token + ApiResponse response = apiInstance.GetERC20TokenWithHttpInfo(contractAddress, chainName); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TokensApi.GetERC20TokenWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **contractAddress** | **string** | The address of contract | | +| **chainName** | **string** | The name of chain | | + +### Return type + +[**GetTokenResult**](GetTokenResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ListERC20Tokens** +> ListTokensResult ListERC20Tokens (string chainName, DateTime? fromUpdatedAt = null, List? verificationStatus = null, bool? isCanonical = null, string? pageCursor = null, int? pageSize = null) + +List ERC20 tokens + +List ERC20 tokens + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using Immutable.Api.ZkEvm.Api; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Example +{ + public class ListERC20TokensExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new TokensApi(config); + var chainName = "chainName_example"; // string | The name of chain + var fromUpdatedAt = 2022-08-16T17:43:26.991388Z; // DateTime? | Datetime to use as the oldest updated timestamp (optional) + var verificationStatus = new List?(); // List? | List of verification status to filter by (optional) + var isCanonical = true; // bool? | [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + var pageSize = 100; // int? | Maximum number of items to return (optional) (default to 100) + + try + { + // List ERC20 tokens + ListTokensResult result = apiInstance.ListERC20Tokens(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TokensApi.ListERC20Tokens: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ListERC20TokensWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // List ERC20 tokens + ApiResponse response = apiInstance.ListERC20TokensWithHttpInfo(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TokensApi.ListERC20TokensWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **chainName** | **string** | The name of chain | | +| **fromUpdatedAt** | **DateTime?** | Datetime to use as the oldest updated timestamp | [optional] | +| **verificationStatus** | [**List<AssetVerificationStatus>?**](AssetVerificationStatus.md) | List of verification status to filter by | [optional] | +| **isCanonical** | **bool?** | [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. | [optional] | +| **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | +| **pageSize** | **int?** | Maximum number of items to return | [optional] [default to 100] | + +### Return type + +[**ListTokensResult**](ListTokensResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **400** | Bad Request (400) | - | +| **404** | The specified resource was not found (404) | - | +| **500** | Internal Server Error (500) | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Trade.md b/src/Packages/ZkEvmApi/Documentation~/Trade.md new file mode 100644 index 00000000..440371d1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Trade.md @@ -0,0 +1,22 @@ +# Immutable.Api.ZkEvm.Model.Trade + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buy** | [**List<Item>**](Item.md) | Buy items are transferred from the taker to the maker. | +**BuyerAddress** | **string** | Deprecated. Use maker and taker addresses instead of buyer and seller addresses. | +**BuyerFees** | [**List<Fee>**](Fee.md) | Deprecated. Use fees instead. The taker always pays the fees. | +**Fees** | [**List<Fee>**](Fee.md) | | +**Chain** | [**Chain**](Chain.md) | | +**OrderId** | **string** | | +**BlockchainMetadata** | [**TradeBlockchainMetadata**](TradeBlockchainMetadata.md) | | +**IndexedAt** | **DateTime** | Time the on-chain trade event is indexed by the order book system | +**Id** | **string** | Global Trade identifier | +**Sell** | [**List<Item>**](Item.md) | Sell items are transferred from the maker to the taker. | +**SellerAddress** | **string** | Deprecated. Use maker and taker addresses instead of buyer and seller addresses. | +**MakerAddress** | **string** | | +**TakerAddress** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/TradeBlockchainMetadata.md b/src/Packages/ZkEvmApi/Documentation~/TradeBlockchainMetadata.md new file mode 100644 index 00000000..b73eec38 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/TradeBlockchainMetadata.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.TradeBlockchainMetadata +The metadata related to the transaction in which the activity occurred + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransactionHash** | **string** | The transaction hash of the trade | +**BlockNumber** | **string** | EVM block number (uint64 as string) | +**TransactionIndex** | **string** | Transaction index in a block (uint32 as string) | +**LogIndex** | **string** | The log index of the fulfillment event in a block (uint32 as string) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/TradeResult.md b/src/Packages/ZkEvmApi/Documentation~/TradeResult.md new file mode 100644 index 00000000..ac72d74f --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/TradeResult.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.TradeResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | [**Trade**](Trade.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Transfer.md b/src/Packages/ZkEvmApi/Documentation~/Transfer.md new file mode 100644 index 00000000..827acd33 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Transfer.md @@ -0,0 +1,14 @@ +# Immutable.Api.ZkEvm.Model.Transfer +The transfer activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The account address the asset was transferred from | +**To** | **string** | The account address the asset was transferred to | +**Amount** | **string** | The amount of assets transferred | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/UnfulfillableOrder.md b/src/Packages/ZkEvmApi/Documentation~/UnfulfillableOrder.md new file mode 100644 index 00000000..ceaa06f8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/UnfulfillableOrder.md @@ -0,0 +1,12 @@ +# Immutable.Api.ZkEvm.Model.UnfulfillableOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderId** | **string** | OrderID for the requested but unfulfillable order | +**TokenId** | **string** | Token ID for the ERC721 or ERC1155 token when fulfilling a collection order | [optional] +**Reason** | **string** | Nullable string containing error reason if the signing is unsuccessful for the order | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/UserInfo.md b/src/Packages/ZkEvmApi/Documentation~/UserInfo.md new file mode 100644 index 00000000..d828d8eb --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/UserInfo.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.UserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sub** | **string** | The user's id | +**Email** | **string** | The user's email address | [optional] +**PassportAddress** | **string** | The user's Passport address if it has been registered | [optional] +**LinkedAddresses** | **List<string>** | The user's list of linked addresses | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/VerificationRequest.md b/src/Packages/ZkEvmApi/Documentation~/VerificationRequest.md new file mode 100644 index 00000000..821ca646 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/VerificationRequest.md @@ -0,0 +1,21 @@ +# Immutable.Api.ZkEvm.Model.VerificationRequest +The verification request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | The id of the verification request | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The contract address | +**OrgName** | **string** | The name of the organisation associated with this contract | +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**Description** | **string** | The description of collection | +**OrgId** | **string** | The id of the organisation associated with this contract | +**RequesterEmail** | **string** | The email address of the user who requested the contract to be verified | +**ContractType** | **VerificationRequestContractType** | | +**VerificationRequestStatus** | **VerificationRequestStatus** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/VerificationRequestContractType.md b/src/Packages/ZkEvmApi/Documentation~/VerificationRequestContractType.md new file mode 100644 index 00000000..e29ef678 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/VerificationRequestContractType.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.VerificationRequestContractType +The contract type associated with the given request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/VerificationRequestInternal.md b/src/Packages/ZkEvmApi/Documentation~/VerificationRequestInternal.md new file mode 100644 index 00000000..2866c3a2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/VerificationRequestInternal.md @@ -0,0 +1,22 @@ +# Immutable.Api.ZkEvm.Model.VerificationRequestInternal +The verification request (internal) + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | The id of the verification request | +**Chain** | [**Chain**](Chain.md) | | +**ContractAddress** | **string** | The contract address | +**OrgName** | **string** | The name of the organisation associated with this contract | +**Name** | **string** | The name of the collection | +**Symbol** | **string** | The symbol of contract | +**Description** | **string** | The description of collection | +**OrgId** | **string** | The id of the organisation associated with this contract | +**RequesterEmail** | **string** | The email address of the user who requested the contract to be verified | +**ContractType** | **VerificationRequestContractType** | | +**VerificationRequestStatus** | **VerificationRequestStatus** | | +**OrgTier** | **OrganisationTier** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/VerificationRequestStatus.md b/src/Packages/ZkEvmApi/Documentation~/VerificationRequestStatus.md new file mode 100644 index 00000000..886c7182 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/VerificationRequestStatus.md @@ -0,0 +1,10 @@ +# Immutable.Api.ZkEvm.Model.VerificationRequestStatus +The status of the verification request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Wallet.md b/src/Packages/ZkEvmApi/Documentation~/Wallet.md new file mode 100644 index 00000000..37bcc6ff --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Wallet.md @@ -0,0 +1,16 @@ +# Immutable.Api.ZkEvm.Model.Wallet +Linked wallet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | Ethereum address | +**Type** | **string** | Wallet type | +**CreatedAt** | **DateTime** | Created at | +**UpdatedAt** | **DateTime** | Created at | +**Name** | **string** | Name | [optional] +**ClientName** | **string** | Name of client that linked the wallet | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/Withdrawal.md b/src/Packages/ZkEvmApi/Documentation~/Withdrawal.md new file mode 100644 index 00000000..5b2ee6cf --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/Withdrawal.md @@ -0,0 +1,13 @@ +# Immutable.Api.ZkEvm.Model.Withdrawal +The withdrawal activity details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The account address the asset was withdrawn from | +**Amount** | **string** | The amount of assets withdrawn | +**Asset** | [**ActivityAsset**](ActivityAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/LICENSE.md b/src/Packages/ZkEvmApi/LICENSE.md new file mode 100644 index 00000000..f47af0ac --- /dev/null +++ b/src/Packages/ZkEvmApi/LICENSE.md @@ -0,0 +1,176 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS diff --git a/src/Packages/ZkEvmApi/LICENSE.md.meta b/src/Packages/ZkEvmApi/LICENSE.md.meta new file mode 100644 index 00000000..b8bc478e --- /dev/null +++ b/src/Packages/ZkEvmApi/LICENSE.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5bb18958703964e918465ec612269e8d +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/README.md b/src/Packages/ZkEvmApi/README.md new file mode 100644 index 00000000..fa82e714 --- /dev/null +++ b/src/Packages/ZkEvmApi/README.md @@ -0,0 +1,316 @@ +# Immutable.Api - the C# library for the Immutable zkEVM API + +Immutable Multi Rollup API + +This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 1.0.0 +- SDK version: 1.0.0 +- Generator version: 7.8.0 +- Build package: org.openapitools.codegen.languages.CSharpClientCodegen + For more information, please visit [https://support.immutable.com](https://support.immutable.com) + + +## Version support +This generator should support all current LTS versions of Unity +- Unity 2020.3 (LTS) and up +- .NET Standard 2.1 / .NET Framework + + +## Dependencies + +- [Newtonsoft.Json](https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html) - 3.0.2 or later + + +## Installation +Add the dependencies to `Packages/manifest.json` +``` +{ + "dependencies": { + ... + "com.unity.nuget.newtonsoft-json": "3.0.2" + } +} +``` + +Then use the namespaces: +```csharp +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; +``` + + +## Getting Started + +```csharp +using System; +using System.Collections.Generic; +using UnityEngine; +using Immutable.Api.Api; +using Immutable.Api.Client; +using Immutable.Api.Model; + +namespace Immutable.ApiExample +{ + + public class GetActivityExample : MonoBehaviour + { + async void Start() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.sandbox.immutable.com"; + var apiInstance = new ActivitiesApi(config); + var chainName = imtbl-zkevm-testnet; // string | The name of chain + var activityId = "activityId_example"; // Guid | The id of activity + + try + { + // Get a single activity by ID + GetActivityResult result = await apiInstance.GetActivityAsync(chainName, activityId); + Debug.Log(result); + Debug.Log("Done!"); + } + catch (ApiException e) + { + Debug.LogError("Exception when calling ActivitiesApi.GetActivity: " + e.Message ); + Debug.LogError("Status Code: "+ e.ErrorCode); + Debug.LogError(e.StackTrace); + } + + } + } +} +``` + + +## Documentation for API Endpoints + +All URIs are relative to *https://api.sandbox.immutable.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ActivitiesApi* | [**GetActivity**](ActivitiesApi.md#getactivity) | **GET** /v1/chains/{chain_name}/activities/{activity_id} | Get a single activity by ID +*ActivitiesApi* | [**ListActivities**](ActivitiesApi.md#listactivities) | **GET** /v1/chains/{chain_name}/activities | List all activities +*ActivitiesApi* | [**ListActivityHistory**](ActivitiesApi.md#listactivityhistory) | **GET** /v1/chains/{chain_name}/activity-history | List history of activities +*ChainsApi* | [**ListChains**](ChainsApi.md#listchains) | **GET** /v1/chains | List supported chains +*CollectionsApi* | [**GetCollection**](CollectionsApi.md#getcollection) | **GET** /v1/chains/{chain_name}/collections/{contract_address} | Get collection by contract address +*CollectionsApi* | [**ListCollections**](CollectionsApi.md#listcollections) | **GET** /v1/chains/{chain_name}/collections | List all collections +*CollectionsApi* | [**ListCollectionsByNFTOwner**](CollectionsApi.md#listcollectionsbynftowner) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/collections | List collections by NFT owner +*CollectionsApi* | [**RefreshCollectionMetadata**](CollectionsApi.md#refreshcollectionmetadata) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata | Refresh collection metadata +*CraftingApi* | [**SignCraftingPayload**](CraftingApi.md#signcraftingpayload) | **POST** /v1/chains/{chain_name}/crafting/sign | Sign a crafting payload +*MetadataApi* | [**GetMetadata**](MetadataApi.md#getmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id} | Get metadata by ID +*MetadataApi* | [**ListMetadata**](MetadataApi.md#listmetadata) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/metadata | Get a list of metadata from the given contract +*MetadataApi* | [**ListMetadataForChain**](MetadataApi.md#listmetadataforchain) | **GET** /v1/chains/{chain_name}/metadata | Get a list of metadata from the given chain +*MetadataApi* | [**RefreshMetadataByID**](MetadataApi.md#refreshmetadatabyid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata | Refresh stacked metadata +*MetadataApi* | [**RefreshNFTMetadataByTokenID**](MetadataApi.md#refreshnftmetadatabytokenid) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata | Refresh NFT metadata +*NftOwnersApi* | [**ListAllNFTOwners**](NftOwnersApi.md#listallnftowners) | **GET** /v1/chains/{chain_name}/nft-owners | List all NFT owners +*NftOwnersApi* | [**ListNFTOwners**](NftOwnersApi.md#listnftowners) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners | List NFT owners by token ID +*NftOwnersApi* | [**ListOwnersByContractAddress**](NftOwnersApi.md#listownersbycontractaddress) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/owners | List owners by contract address +*NftsApi* | [**CreateMintRequest**](NftsApi.md#createmintrequest) | **POST** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | Mint NFTs +*NftsApi* | [**GetMintRequest**](NftsApi.md#getmintrequest) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id} | Get mint request by reference ID +*NftsApi* | [**GetNFT**](NftsApi.md#getnft) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id} | Get NFT by token ID +*NftsApi* | [**ListAllNFTs**](NftsApi.md#listallnfts) | **GET** /v1/chains/{chain_name}/nfts | List all NFTs +*NftsApi* | [**ListMintRequests**](NftsApi.md#listmintrequests) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests | List mint requests +*NftsApi* | [**ListNFTs**](NftsApi.md#listnfts) | **GET** /v1/chains/{chain_name}/collections/{contract_address}/nfts | List NFTs by contract address +*NftsApi* | [**ListNFTsByAccountAddress**](NftsApi.md#listnftsbyaccountaddress) | **GET** /v1/chains/{chain_name}/accounts/{account_address}/nfts | List NFTs by account address +*OrdersApi* | [**CancelOrders**](OrdersApi.md#cancelorders) | **POST** /v1/chains/{chain_name}/orders/cancel | Cancel one or more orders +*OrdersApi* | [**CreateBid**](OrdersApi.md#createbid) | **POST** /v1/chains/{chain_name}/orders/bids | Create a bid +*OrdersApi* | [**CreateCollectionBid**](OrdersApi.md#createcollectionbid) | **POST** /v1/chains/{chain_name}/orders/collection-bids | Create a collection bid +*OrdersApi* | [**CreateListing**](OrdersApi.md#createlisting) | **POST** /v1/chains/{chain_name}/orders/listings | Create a listing +*OrdersApi* | [**FulfillmentData**](OrdersApi.md#fulfillmentdata) | **POST** /v1/chains/{chain_name}/orders/fulfillment-data | Retrieve fulfillment data for orders +*OrdersApi* | [**GetBid**](OrdersApi.md#getbid) | **GET** /v1/chains/{chain_name}/orders/bids/{bid_id} | Get a single bid by ID +*OrdersApi* | [**GetCollectionBid**](OrdersApi.md#getcollectionbid) | **GET** /v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id} | Get a single collection bid by ID +*OrdersApi* | [**GetListing**](OrdersApi.md#getlisting) | **GET** /v1/chains/{chain_name}/orders/listings/{listing_id} | Get a single listing by ID +*OrdersApi* | [**GetTrade**](OrdersApi.md#gettrade) | **GET** /v1/chains/{chain_name}/trades/{trade_id} | Get a single trade by ID +*OrdersApi* | [**ListBids**](OrdersApi.md#listbids) | **GET** /v1/chains/{chain_name}/orders/bids | List all bids +*OrdersApi* | [**ListCollectionBids**](OrdersApi.md#listcollectionbids) | **GET** /v1/chains/{chain_name}/orders/collection-bids | List all collection bids +*OrdersApi* | [**ListListings**](OrdersApi.md#listlistings) | **GET** /v1/chains/{chain_name}/orders/listings | List all listings +*OrdersApi* | [**ListTrades**](OrdersApi.md#listtrades) | **GET** /v1/chains/{chain_name}/trades | List all trades +*PassportApi* | [**GetLinkedAddresses**](PassportApi.md#getlinkedaddresses) | **GET** /v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses | Get Ethereum linked addresses for a user +*PassportProfileApi* | [**GetUserInfo**](PassportProfileApi.md#getuserinfo) | **GET** /passport-profile/v1/user/info | Get all info for a Passport user +*PassportProfileApi* | [**LinkWalletV2**](PassportProfileApi.md#linkwalletv2) | **POST** /passport-profile/v2/linked-wallets | Link wallet v2 +*PricingApi* | [**QuotesForNFTs**](PricingApi.md#quotesfornfts) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/nfts | Experimental: Get pricing data for a list of token ids +*PricingApi* | [**QuotesForStacks**](PricingApi.md#quotesforstacks) | **GET** /experimental/chains/{chain_name}/quotes/{contract_address}/stacks | Experimental: Get pricing data for a list of stack ids +*StacksApi* | [**SearchNFTs**](StacksApi.md#searchnfts) | **GET** /experimental/chains/{chain_name}/search/nfts | Experimental: Search NFTs +*StacksApi* | [**SearchStacks**](StacksApi.md#searchstacks) | **GET** /experimental/chains/{chain_name}/search/stacks | Experimental: Search NFT stacks +*TokensApi* | [**GetERC20Token**](TokensApi.md#geterc20token) | **GET** /v1/chains/{chain_name}/tokens/{contract_address} | Get single ERC20 token +*TokensApi* | [**ListERC20Tokens**](TokensApi.md#listerc20tokens) | **GET** /v1/chains/{chain_name}/tokens | List ERC20 tokens + + + +## Documentation for Models + + - [Model.APIError400](APIError400.md) + - [Model.APIError401](APIError401.md) + - [Model.APIError403](APIError403.md) + - [Model.APIError404](APIError404.md) + - [Model.APIError409](APIError409.md) + - [Model.APIError429](APIError429.md) + - [Model.APIError500](APIError500.md) + - [Model.APIError501](APIError501.md) + - [Model.ActiveOrderStatus](ActiveOrderStatus.md) + - [Model.Activity](Activity.md) + - [Model.ActivityAsset](ActivityAsset.md) + - [Model.ActivityDetails](ActivityDetails.md) + - [Model.ActivityNFT](ActivityNFT.md) + - [Model.ActivityNativeToken](ActivityNativeToken.md) + - [Model.ActivityToken](ActivityToken.md) + - [Model.ActivityType](ActivityType.md) + - [Model.AssetCollectionItem](AssetCollectionItem.md) + - [Model.AssetVerificationStatus](AssetVerificationStatus.md) + - [Model.BasicAPIError](BasicAPIError.md) + - [Model.BidResult](BidResult.md) + - [Model.BlockchainMetadata](BlockchainMetadata.md) + - [Model.Burn](Burn.md) + - [Model.Call](Call.md) + - [Model.CancelOrdersRequestBody](CancelOrdersRequestBody.md) + - [Model.CancelOrdersResult](CancelOrdersResult.md) + - [Model.CancelOrdersResultData](CancelOrdersResultData.md) + - [Model.CancelledOrderStatus](CancelledOrderStatus.md) + - [Model.Chain](Chain.md) + - [Model.ChainWithDetails](ChainWithDetails.md) + - [Model.Collection](Collection.md) + - [Model.CollectionBidResult](CollectionBidResult.md) + - [Model.CollectionContractType](CollectionContractType.md) + - [Model.CollectionMetadata](CollectionMetadata.md) + - [Model.CreateBidRequestBody](CreateBidRequestBody.md) + - [Model.CreateCollectionBidRequestBody](CreateCollectionBidRequestBody.md) + - [Model.CreateListingRequestBody](CreateListingRequestBody.md) + - [Model.CreateMintRequestRequest](CreateMintRequestRequest.md) + - [Model.CreateMintRequestResult](CreateMintRequestResult.md) + - [Model.Deposit](Deposit.md) + - [Model.ERC1155CollectionItem](ERC1155CollectionItem.md) + - [Model.ERC1155Item](ERC1155Item.md) + - [Model.ERC20Item](ERC20Item.md) + - [Model.ERC721CollectionItem](ERC721CollectionItem.md) + - [Model.ERC721Item](ERC721Item.md) + - [Model.ExpiredOrderStatus](ExpiredOrderStatus.md) + - [Model.FailedOrderCancellation](FailedOrderCancellation.md) + - [Model.Fee](Fee.md) + - [Model.FillStatus](FillStatus.md) + - [Model.FilledOrderStatus](FilledOrderStatus.md) + - [Model.FulfillableOrder](FulfillableOrder.md) + - [Model.FulfillmentData200Response](FulfillmentData200Response.md) + - [Model.FulfillmentData200ResponseResult](FulfillmentData200ResponseResult.md) + - [Model.FulfillmentDataRequest](FulfillmentDataRequest.md) + - [Model.GetActivityResult](GetActivityResult.md) + - [Model.GetCollectionResult](GetCollectionResult.md) + - [Model.GetLinkedAddressesRes](GetLinkedAddressesRes.md) + - [Model.GetMetadataResult](GetMetadataResult.md) + - [Model.GetMintRequestResult](GetMintRequestResult.md) + - [Model.GetNFTResult](GetNFTResult.md) + - [Model.GetTokenResult](GetTokenResult.md) + - [Model.InactiveOrderStatus](InactiveOrderStatus.md) + - [Model.Item](Item.md) + - [Model.LastTrade](LastTrade.md) + - [Model.LinkWalletV2Request](LinkWalletV2Request.md) + - [Model.ListActivitiesResult](ListActivitiesResult.md) + - [Model.ListBidsResult](ListBidsResult.md) + - [Model.ListChainsResult](ListChainsResult.md) + - [Model.ListCollectionBidsResult](ListCollectionBidsResult.md) + - [Model.ListCollectionOwnersResult](ListCollectionOwnersResult.md) + - [Model.ListCollectionsResult](ListCollectionsResult.md) + - [Model.ListListingsResult](ListListingsResult.md) + - [Model.ListMetadataResult](ListMetadataResult.md) + - [Model.ListMintRequestsResult](ListMintRequestsResult.md) + - [Model.ListNFTOwnersResult](ListNFTOwnersResult.md) + - [Model.ListNFTsByOwnerResult](ListNFTsByOwnerResult.md) + - [Model.ListNFTsResult](ListNFTsResult.md) + - [Model.ListTokensResult](ListTokensResult.md) + - [Model.ListTradeResult](ListTradeResult.md) + - [Model.Listing](Listing.md) + - [Model.ListingResult](ListingResult.md) + - [Model.Market](Market.md) + - [Model.MarketNft](MarketNft.md) + - [Model.MarketPriceDetails](MarketPriceDetails.md) + - [Model.MarketPriceDetailsToken](MarketPriceDetailsToken.md) + - [Model.MarketPriceERC20Token](MarketPriceERC20Token.md) + - [Model.MarketPriceFees](MarketPriceFees.md) + - [Model.MarketPriceNativeToken](MarketPriceNativeToken.md) + - [Model.MarketplaceContractType](MarketplaceContractType.md) + - [Model.Metadata](Metadata.md) + - [Model.MetadataRefreshRateLimitResult](MetadataRefreshRateLimitResult.md) + - [Model.Mint](Mint.md) + - [Model.MintAsset](MintAsset.md) + - [Model.MintRequestErrorMessage](MintRequestErrorMessage.md) + - [Model.MintRequestStatus](MintRequestStatus.md) + - [Model.NFT](NFT.md) + - [Model.NFTBundle](NFTBundle.md) + - [Model.NFTContractType](NFTContractType.md) + - [Model.NFTMetadataAttribute](NFTMetadataAttribute.md) + - [Model.NFTMetadataAttributeValue](NFTMetadataAttributeValue.md) + - [Model.NFTMetadataRequest](NFTMetadataRequest.md) + - [Model.NFTOwner](NFTOwner.md) + - [Model.NFTQuoteResult](NFTQuoteResult.md) + - [Model.NFTSale](NFTSale.md) + - [Model.NFTWithBalance](NFTWithBalance.md) + - [Model.NFTWithOwner](NFTWithOwner.md) + - [Model.NFTWithStack](NFTWithStack.md) + - [Model.NativeItem](NativeItem.md) + - [Model.OperatorAllowlistContractStatus](OperatorAllowlistContractStatus.md) + - [Model.OperatorAllowlistContractStatusInternal](OperatorAllowlistContractStatusInternal.md) + - [Model.OperatorAllowlistStatus](OperatorAllowlistStatus.md) + - [Model.OperatorAllowlistStatusDetails](OperatorAllowlistStatusDetails.md) + - [Model.OperatorAllowlistStatusRequested](OperatorAllowlistStatusRequested.md) + - [Model.OperatorAllowlistStatusUpdated](OperatorAllowlistStatusUpdated.md) + - [Model.Order](Order.md) + - [Model.OrderStatus](OrderStatus.md) + - [Model.OrderStatusName](OrderStatusName.md) + - [Model.OrganisationTier](OrganisationTier.md) + - [Model.Page](Page.md) + - [Model.PendingOrderStatus](PendingOrderStatus.md) + - [Model.ProtocolData](ProtocolData.md) + - [Model.QuotesForNFTsResult](QuotesForNFTsResult.md) + - [Model.QuotesForStacksResult](QuotesForStacksResult.md) + - [Model.RefreshCollectionMetadataRequest](RefreshCollectionMetadataRequest.md) + - [Model.RefreshCollectionMetadataResult](RefreshCollectionMetadataResult.md) + - [Model.RefreshMetadataByID](RefreshMetadataByID.md) + - [Model.RefreshMetadataByIDRequest](RefreshMetadataByIDRequest.md) + - [Model.RefreshMetadataByTokenID](RefreshMetadataByTokenID.md) + - [Model.RefreshNFTMetadataByTokenIDRequest](RefreshNFTMetadataByTokenIDRequest.md) + - [Model.RefreshableNFTAttributes](RefreshableNFTAttributes.md) + - [Model.SaleFee](SaleFee.md) + - [Model.SalePayment](SalePayment.md) + - [Model.SalePaymentToken](SalePaymentToken.md) + - [Model.SearchNFTsResult](SearchNFTsResult.md) + - [Model.SearchStacksResult](SearchStacksResult.md) + - [Model.SignCraftingRequest](SignCraftingRequest.md) + - [Model.SignCraftingRequestMultiCaller](SignCraftingRequestMultiCaller.md) + - [Model.SignCraftingResult](SignCraftingResult.md) + - [Model.Stack](Stack.md) + - [Model.StackBundle](StackBundle.md) + - [Model.StackQuoteResult](StackQuoteResult.md) + - [Model.Token](Token.md) + - [Model.TokenContractType](TokenContractType.md) + - [Model.Trade](Trade.md) + - [Model.TradeBlockchainMetadata](TradeBlockchainMetadata.md) + - [Model.TradeResult](TradeResult.md) + - [Model.Transfer](Transfer.md) + - [Model.UnfulfillableOrder](UnfulfillableOrder.md) + - [Model.UserInfo](UserInfo.md) + - [Model.VerificationRequest](VerificationRequest.md) + - [Model.VerificationRequestContractType](VerificationRequestContractType.md) + - [Model.VerificationRequestInternal](VerificationRequestInternal.md) + - [Model.VerificationRequestStatus](VerificationRequestStatus.md) + - [Model.Wallet](Wallet.md) + - [Model.Withdrawal](Withdrawal.md) + + + +## Documentation for Authorization + + +Authentication schemes defined for the API: + +### BearerAuth + +- **Type**: Bearer Authentication + + +### ImmutableApiKey + +- **Type**: API key +- **API key parameter name**: x-immutable-api-key +- **Location**: HTTP header + diff --git a/src/Packages/ZkEvmApi/README.md.meta b/src/Packages/ZkEvmApi/README.md.meta new file mode 100644 index 00000000..8997995c --- /dev/null +++ b/src/Packages/ZkEvmApi/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 90b3f65e61d344aea9491c515318ad91 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime.meta b/src/Packages/ZkEvmApi/Runtime.meta new file mode 100644 index 00000000..9c11c65a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f3501efe6bd5c406e8e1bea86d2a7afc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api.meta b/src/Packages/ZkEvmApi/Runtime/Api.meta new file mode 100644 index 00000000..8ccc7022 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 787a9684646bb4aac82fa8bbd6f82cce +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs new file mode 100644 index 00000000..08b9698b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs @@ -0,0 +1,906 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IActivitiesApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// GetActivityResult + GetActivityResult GetActivity(string chainName, Guid activityId); + + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// ApiResponse of GetActivityResult + ApiResponse GetActivityWithHttpInfo(string chainName, Guid activityId); + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + ListActivitiesResult ListActivities(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + ApiResponse ListActivitiesWithHttpInfo(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + ListActivitiesResult ListActivityHistory(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + ApiResponse ListActivityHistoryWithHttpInfo(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IActivitiesApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of GetActivityResult + System.Threading.Tasks.Task GetActivityAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single activity by ID + /// + /// + /// Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetActivityResult) + System.Threading.Tasks.Task> GetActivityWithHttpInfoAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + System.Threading.Tasks.Task ListActivitiesAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all activities + /// + /// + /// List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + System.Threading.Tasks.Task> ListActivitiesWithHttpInfoAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + System.Threading.Tasks.Task ListActivityHistoryAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List history of activities + /// + /// + /// List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + System.Threading.Tasks.Task> ListActivityHistoryWithHttpInfoAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IActivitiesApi : IActivitiesApiSync, IActivitiesApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ActivitiesApi : IDisposable, IActivitiesApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public ActivitiesApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public ActivitiesApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public ActivitiesApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public ActivitiesApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// GetActivityResult + public GetActivityResult GetActivity(string chainName, Guid activityId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetActivityWithHttpInfo(chainName, activityId); + return localVarResponse.Data; + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// ApiResponse of GetActivityResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetActivityWithHttpInfo(string chainName, Guid activityId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->GetActivity"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("activity_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(activityId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/activities/{activity_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetActivity", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of GetActivityResult + public async System.Threading.Tasks.Task GetActivityAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetActivityWithHttpInfoAsync(chainName, activityId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single activity by ID Get a single activity by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The id of activity + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetActivityResult) + public async System.Threading.Tasks.Task> GetActivityWithHttpInfoAsync(string chainName, Guid activityId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->GetActivity"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("activity_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(activityId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/activities/{activity_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetActivity", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + public ListActivitiesResult ListActivities(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListActivitiesWithHttpInfo(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListActivitiesWithHttpInfo(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivities"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "token_id", tokenId)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (transactionHash != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "transaction_hash", transactionHash)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/activities", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivities", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + public async System.Threading.Tasks.Task ListActivitiesAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListActivitiesWithHttpInfoAsync(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all activities List all activities + /// + /// Thrown when fails to make API call + /// The name of chain + /// The contract address of NFT or ERC20 Token (optional) + /// An `uint256` token id as string (optional) + /// The account address activity contains (optional) + /// The activity type (optional) + /// The transaction hash of activity (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + public async System.Threading.Tasks.Task> ListActivitiesWithHttpInfoAsync(string chainName, string? contractAddress = default(string?), string? tokenId = default(string?), string? accountAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? transactionHash = default(string?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivities"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "token_id", tokenId)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (transactionHash != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "transaction_hash", transactionHash)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/activities", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivities", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListActivitiesResult + public ListActivitiesResult ListActivityHistory(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListActivityHistoryWithHttpInfo(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListActivitiesResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListActivityHistoryWithHttpInfo(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivityHistory"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + if (toUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "to_updated_at", toUpdatedAt)); + } + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/activity-history", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivityHistory", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListActivitiesResult + public async System.Threading.Tasks.Task ListActivityHistoryAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListActivityHistoryWithHttpInfoAsync(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List history of activities List activities sorted by updated_at timestamp ascending, useful for time based data replication + /// + /// Thrown when fails to make API call + /// The name of chain + /// From indexed at including given date + /// To indexed at including given date (optional) + /// The contract address of the collection (optional) + /// The activity type (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListActivitiesResult) + public async System.Threading.Tasks.Task> ListActivityHistoryWithHttpInfoAsync(string chainName, DateTime fromUpdatedAt, DateTime? toUpdatedAt = default(DateTime?), string? contractAddress = default(string?), ActivityType? activityType = default(ActivityType?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling ActivitiesApi->ListActivityHistory"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + if (toUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "to_updated_at", toUpdatedAt)); + } + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (activityType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "activity_type", activityType)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/activity-history", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListActivityHistory", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs.meta new file mode 100644 index 00000000..9add16e1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/ActivitiesApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 169b972d6ade347a2b869744be709f38 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs new file mode 100644 index 00000000..fef51a4b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs @@ -0,0 +1,368 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChainsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListChainsResult + ListChainsResult ListChains(string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListChainsResult + ApiResponse ListChainsWithHttpInfo(string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChainsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListChainsResult + System.Threading.Tasks.Task ListChainsAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List supported chains + /// + /// + /// List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListChainsResult) + System.Threading.Tasks.Task> ListChainsWithHttpInfoAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IChainsApi : IChainsApiSync, IChainsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class ChainsApi : IDisposable, IChainsApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public ChainsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public ChainsApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public ChainsApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public ChainsApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListChainsResult + public ListChainsResult ListChains(string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListChainsWithHttpInfo(pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListChainsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListChainsWithHttpInfo(string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListChains", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListChainsResult + public async System.Threading.Tasks.Task ListChainsAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListChainsWithHttpInfoAsync(pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List supported chains List supported chains + /// + /// Thrown when fails to make API call + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListChainsResult) + public async System.Threading.Tasks.Task> ListChainsWithHttpInfoAsync(string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListChains", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs.meta new file mode 100644 index 00000000..ea3967f6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/ChainsApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f05d0a419270484ba5e4f02c65cdafe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs new file mode 100644 index 00000000..27077fde --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs @@ -0,0 +1,1072 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICollectionsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// GetCollectionResult + GetCollectionResult GetCollection(string contractAddress, string chainName); + + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// ApiResponse of GetCollectionResult + ApiResponse GetCollectionWithHttpInfo(string contractAddress, string chainName); + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + ListCollectionsResult ListCollections(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + ApiResponse ListCollectionsWithHttpInfo(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + ListCollectionsResult ListCollectionsByNFTOwner(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + ApiResponse ListCollectionsByNFTOwnerWithHttpInfo(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// RefreshCollectionMetadataResult + RefreshCollectionMetadataResult RefreshCollectionMetadata(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest); + + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// ApiResponse of RefreshCollectionMetadataResult + ApiResponse RefreshCollectionMetadataWithHttpInfo(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICollectionsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetCollectionResult + System.Threading.Tasks.Task GetCollectionAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get collection by contract address + /// + /// + /// Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCollectionResult) + System.Threading.Tasks.Task> GetCollectionWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + System.Threading.Tasks.Task ListCollectionsAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all collections + /// + /// + /// List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + System.Threading.Tasks.Task> ListCollectionsWithHttpInfoAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + System.Threading.Tasks.Task ListCollectionsByNFTOwnerAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List collections by NFT owner + /// + /// + /// List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + System.Threading.Tasks.Task> ListCollectionsByNFTOwnerWithHttpInfoAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of RefreshCollectionMetadataResult + System.Threading.Tasks.Task RefreshCollectionMetadataAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Refresh collection metadata + /// + /// + /// Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RefreshCollectionMetadataResult) + System.Threading.Tasks.Task> RefreshCollectionMetadataWithHttpInfoAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICollectionsApi : ICollectionsApiSync, ICollectionsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CollectionsApi : IDisposable, ICollectionsApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public CollectionsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public CollectionsApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public CollectionsApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public CollectionsApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// GetCollectionResult + public GetCollectionResult GetCollection(string contractAddress, string chainName) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetCollectionWithHttpInfo(contractAddress, chainName); + return localVarResponse.Data; + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// ApiResponse of GetCollectionResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetCollectionWithHttpInfo(string contractAddress, string chainName) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->GetCollection"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->GetCollection"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollection", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetCollectionResult + public async System.Threading.Tasks.Task GetCollectionAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetCollectionWithHttpInfoAsync(contractAddress, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get collection by contract address Get collection by contract address + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetCollectionResult) + public async System.Threading.Tasks.Task> GetCollectionWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->GetCollection"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->GetCollection"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollection", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + public ListCollectionsResult ListCollections(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListCollectionsWithHttpInfo(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListCollectionsWithHttpInfo(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollections"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollections", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + public async System.Threading.Tasks.Task ListCollectionsAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListCollectionsWithHttpInfoAsync(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all collections List all collections + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by (optional) + /// List of verification status to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + public async System.Threading.Tasks.Task> ListCollectionsWithHttpInfoAsync(string chainName, List? contractAddress = default(List?), List? verificationStatus = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollections"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollections", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionsResult + public ListCollectionsResult ListCollectionsByNFTOwner(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListCollectionsByNFTOwnerWithHttpInfo(accountAddress, chainName, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListCollectionsByNFTOwnerWithHttpInfo(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/accounts/{account_address}/collections", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionsByNFTOwner", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionsResult + public async System.Threading.Tasks.Task ListCollectionsByNFTOwnerAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListCollectionsByNFTOwnerWithHttpInfoAsync(accountAddress, chainName, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List collections by NFT owner List collections by NFT owner account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionsResult) + public async System.Threading.Tasks.Task> ListCollectionsByNFTOwnerWithHttpInfoAsync(string accountAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->ListCollectionsByNFTOwner"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/accounts/{account_address}/collections", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionsByNFTOwner", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// RefreshCollectionMetadataResult + public RefreshCollectionMetadataResult RefreshCollectionMetadata(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = RefreshCollectionMetadataWithHttpInfo(contractAddress, chainName, refreshCollectionMetadataRequest); + return localVarResponse.Data; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// ApiResponse of RefreshCollectionMetadataResult + public Immutable.Api.ZkEvm.Client.ApiResponse RefreshCollectionMetadataWithHttpInfo(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'refreshCollectionMetadataRequest' is set + if (refreshCollectionMetadataRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'refreshCollectionMetadataRequest' when calling CollectionsApi->RefreshCollectionMetadata"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshCollectionMetadataRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshCollectionMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of RefreshCollectionMetadataResult + public async System.Threading.Tasks.Task RefreshCollectionMetadataAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = RefreshCollectionMetadataWithHttpInfoAsync(contractAddress, chainName, refreshCollectionMetadataRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Refresh collection metadata Refresh collection metadata + /// + /// Thrown when fails to make API call + /// The address contract + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (RefreshCollectionMetadataResult) + public async System.Threading.Tasks.Task> RefreshCollectionMetadataWithHttpInfoAsync(string contractAddress, string chainName, RefreshCollectionMetadataRequest refreshCollectionMetadataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CollectionsApi->RefreshCollectionMetadata"); + + // verify the required parameter 'refreshCollectionMetadataRequest' is set + if (refreshCollectionMetadataRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'refreshCollectionMetadataRequest' when calling CollectionsApi->RefreshCollectionMetadata"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshCollectionMetadataRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshCollectionMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs.meta new file mode 100644 index 00000000..0dd98a9e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/CollectionsApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2206d04b9912045c982183572c133f1d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs new file mode 100644 index 00000000..2d1d45a7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs @@ -0,0 +1,384 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICraftingApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// SignCraftingResult + SignCraftingResult SignCraftingPayload(string chainName, SignCraftingRequest signCraftingRequest); + + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// ApiResponse of SignCraftingResult + ApiResponse SignCraftingPayloadWithHttpInfo(string chainName, SignCraftingRequest signCraftingRequest); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICraftingApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of SignCraftingResult + System.Threading.Tasks.Task SignCraftingPayloadAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Sign a crafting payload + /// + /// + /// Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SignCraftingResult) + System.Threading.Tasks.Task> SignCraftingPayloadWithHttpInfoAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ICraftingApi : ICraftingApiSync, ICraftingApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class CraftingApi : IDisposable, ICraftingApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public CraftingApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public CraftingApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public CraftingApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public CraftingApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// SignCraftingResult + public SignCraftingResult SignCraftingPayload(string chainName, SignCraftingRequest signCraftingRequest) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = SignCraftingPayloadWithHttpInfo(chainName, signCraftingRequest); + return localVarResponse.Data; + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// ApiResponse of SignCraftingResult + public Immutable.Api.ZkEvm.Client.ApiResponse SignCraftingPayloadWithHttpInfo(string chainName, SignCraftingRequest signCraftingRequest) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CraftingApi->SignCraftingPayload"); + + // verify the required parameter 'signCraftingRequest' is set + if (signCraftingRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'signCraftingRequest' when calling CraftingApi->SignCraftingPayload"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = signCraftingRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/crafting/sign", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SignCraftingPayload", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of SignCraftingResult + public async System.Threading.Tasks.Task SignCraftingPayloadAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = SignCraftingPayloadWithHttpInfoAsync(chainName, signCraftingRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Sign a crafting payload Sign a crafting payload + /// + /// Thrown when fails to make API call + /// The name of chain + /// The request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SignCraftingResult) + public async System.Threading.Tasks.Task> SignCraftingPayloadWithHttpInfoAsync(string chainName, SignCraftingRequest signCraftingRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling CraftingApi->SignCraftingPayload"); + + // verify the required parameter 'signCraftingRequest' is set + if (signCraftingRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'signCraftingRequest' when calling CraftingApi->SignCraftingPayload"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = signCraftingRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/crafting/sign", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SignCraftingPayload", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs.meta new file mode 100644 index 00000000..6276c361 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/CraftingApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5d29311b889394e54956996fbf4bed5a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs new file mode 100644 index 00000000..2dbaa6a9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs @@ -0,0 +1,1272 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetadataApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// GetMetadataResult + GetMetadataResult GetMetadata(string chainName, string contractAddress, Guid metadataId); + + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// ApiResponse of GetMetadataResult + ApiResponse GetMetadataWithHttpInfo(string chainName, string contractAddress, Guid metadataId); + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + ListMetadataResult ListMetadata(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + ApiResponse ListMetadataWithHttpInfo(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + ListMetadataResult ListMetadataForChain(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + ApiResponse ListMetadataForChainWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// MetadataRefreshRateLimitResult + MetadataRefreshRateLimitResult RefreshMetadataByID(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest); + + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// ApiResponse of MetadataRefreshRateLimitResult + ApiResponse RefreshMetadataByIDWithHttpInfo(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest); + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// MetadataRefreshRateLimitResult + MetadataRefreshRateLimitResult RefreshNFTMetadataByTokenID(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest); + + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// ApiResponse of MetadataRefreshRateLimitResult + ApiResponse RefreshNFTMetadataByTokenIDWithHttpInfo(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetadataApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of GetMetadataResult + System.Threading.Tasks.Task GetMetadataAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get metadata by ID + /// + /// + /// Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetMetadataResult) + System.Threading.Tasks.Task> GetMetadataWithHttpInfoAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + System.Threading.Tasks.Task ListMetadataAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of metadata from the given contract + /// + /// + /// Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + System.Threading.Tasks.Task> ListMetadataWithHttpInfoAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + System.Threading.Tasks.Task ListMetadataForChainAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a list of metadata from the given chain + /// + /// + /// Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + System.Threading.Tasks.Task> ListMetadataForChainWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + System.Threading.Tasks.Task RefreshMetadataByIDAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Refresh stacked metadata + /// + /// + /// Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + System.Threading.Tasks.Task> RefreshMetadataByIDWithHttpInfoAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + System.Threading.Tasks.Task RefreshNFTMetadataByTokenIDAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Refresh NFT metadata + /// + /// + /// Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + System.Threading.Tasks.Task> RefreshNFTMetadataByTokenIDWithHttpInfoAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IMetadataApi : IMetadataApiSync, IMetadataApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class MetadataApi : IDisposable, IMetadataApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public MetadataApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public MetadataApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public MetadataApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public MetadataApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// GetMetadataResult + public GetMetadataResult GetMetadata(string chainName, string contractAddress, Guid metadataId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetMetadataWithHttpInfo(chainName, contractAddress, metadataId); + return localVarResponse.Data; + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// ApiResponse of GetMetadataResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetMetadataWithHttpInfo(string chainName, string contractAddress, Guid metadataId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->GetMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->GetMetadata"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("metadata_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(metadataId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of GetMetadataResult + public async System.Threading.Tasks.Task GetMetadataAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetMetadataWithHttpInfoAsync(chainName, contractAddress, metadataId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get metadata by ID Get metadata by ID + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// The id of the metadata + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetMetadataResult) + public async System.Threading.Tasks.Task> GetMetadataWithHttpInfoAsync(string chainName, string contractAddress, Guid metadataId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->GetMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->GetMetadata"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("metadata_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(metadataId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + public ListMetadataResult ListMetadata(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListMetadataWithHttpInfo(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListMetadataWithHttpInfo(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->ListMetadata"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + public async System.Threading.Tasks.Task ListMetadataAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListMetadataWithHttpInfoAsync(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given contract Get a list of metadata from the given contract + /// + /// Thrown when fails to make API call + /// The name of chain + /// The address of metadata contract + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + public async System.Threading.Tasks.Task> ListMetadataWithHttpInfoAsync(string chainName, string contractAddress, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadata"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->ListMetadata"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadata", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListMetadataResult + public ListMetadataResult ListMetadataForChain(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListMetadataForChainWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListMetadataResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListMetadataForChainWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadataForChain"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadataForChain", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListMetadataResult + public async System.Threading.Tasks.Task ListMetadataForChainAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListMetadataForChainWithHttpInfoAsync(chainName, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a list of metadata from the given chain Get a list of metadata from the given chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMetadataResult) + public async System.Threading.Tasks.Task> ListMetadataForChainWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->ListMetadataForChain"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMetadataForChain", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// MetadataRefreshRateLimitResult + public MetadataRefreshRateLimitResult RefreshMetadataByID(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = RefreshMetadataByIDWithHttpInfo(chainName, contractAddress, refreshMetadataByIDRequest); + return localVarResponse.Data; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// ApiResponse of MetadataRefreshRateLimitResult + public Immutable.Api.ZkEvm.Client.ApiResponse RefreshMetadataByIDWithHttpInfo(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'refreshMetadataByIDRequest' is set + if (refreshMetadataByIDRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'refreshMetadataByIDRequest' when calling MetadataApi->RefreshMetadataByID"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.Data = refreshMetadataByIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshMetadataByID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + public async System.Threading.Tasks.Task RefreshMetadataByIDAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = RefreshMetadataByIDWithHttpInfoAsync(chainName, contractAddress, refreshMetadataByIDRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Refresh stacked metadata Refresh stacked metadata + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address + /// NFT Metadata Refresh Request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + public async System.Threading.Tasks.Task> RefreshMetadataByIDWithHttpInfoAsync(string chainName, string contractAddress, RefreshMetadataByIDRequest refreshMetadataByIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshMetadataByID"); + + // verify the required parameter 'refreshMetadataByIDRequest' is set + if (refreshMetadataByIDRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'refreshMetadataByIDRequest' when calling MetadataApi->RefreshMetadataByID"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.Data = refreshMetadataByIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshMetadataByID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// MetadataRefreshRateLimitResult + public MetadataRefreshRateLimitResult RefreshNFTMetadataByTokenID(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = RefreshNFTMetadataByTokenIDWithHttpInfo(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest); + return localVarResponse.Data; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// ApiResponse of MetadataRefreshRateLimitResult + public Immutable.Api.ZkEvm.Client.ApiResponse RefreshNFTMetadataByTokenIDWithHttpInfo(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'refreshNFTMetadataByTokenIDRequest' is set + if (refreshNFTMetadataByTokenIDRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'refreshNFTMetadataByTokenIDRequest' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshNFTMetadataByTokenIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshNFTMetadataByTokenID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of MetadataRefreshRateLimitResult + public async System.Threading.Tasks.Task RefreshNFTMetadataByTokenIDAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = RefreshNFTMetadataByTokenIDWithHttpInfoAsync(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Refresh NFT metadata Refresh NFT metadata + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// the request body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (MetadataRefreshRateLimitResult) + public async System.Threading.Tasks.Task> RefreshNFTMetadataByTokenIDWithHttpInfoAsync(string contractAddress, string chainName, RefreshNFTMetadataByTokenIDRequest refreshNFTMetadataByTokenIDRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + // verify the required parameter 'refreshNFTMetadataByTokenIDRequest' is set + if (refreshNFTMetadataByTokenIDRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'refreshNFTMetadataByTokenIDRequest' when calling MetadataApi->RefreshNFTMetadataByTokenID"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = refreshNFTMetadataByTokenIDRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RefreshNFTMetadataByTokenID", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs.meta new file mode 100644 index 00000000..00009676 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/MetadataApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c31b071d1ef984beebbef6a22ede2ae6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs new file mode 100644 index 00000000..88ce5c8e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs @@ -0,0 +1,892 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftOwnersApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + ListNFTOwnersResult ListAllNFTOwners(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + ApiResponse ListAllNFTOwnersWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + ListNFTOwnersResult ListNFTOwners(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + ApiResponse ListNFTOwnersWithHttpInfo(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionOwnersResult + ListCollectionOwnersResult ListOwnersByContractAddress(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionOwnersResult + ApiResponse ListOwnersByContractAddressWithHttpInfo(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftOwnersApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + System.Threading.Tasks.Task ListAllNFTOwnersAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all NFT owners + /// + /// + /// List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + System.Threading.Tasks.Task> ListAllNFTOwnersWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + System.Threading.Tasks.Task ListNFTOwnersAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFT owners by token ID + /// + /// + /// List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + System.Threading.Tasks.Task> ListNFTOwnersWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionOwnersResult + System.Threading.Tasks.Task ListOwnersByContractAddressAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List owners by contract address + /// + /// + /// List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionOwnersResult) + System.Threading.Tasks.Task> ListOwnersByContractAddressWithHttpInfoAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftOwnersApi : INftOwnersApiSync, INftOwnersApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class NftOwnersApi : IDisposable, INftOwnersApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public NftOwnersApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public NftOwnersApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public NftOwnersApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public NftOwnersApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + public ListNFTOwnersResult ListAllNFTOwners(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListAllNFTOwnersWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListAllNFTOwnersWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListAllNFTOwners"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/nft-owners", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + public async System.Threading.Tasks.Task ListAllNFTOwnersAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListAllNFTOwnersWithHttpInfoAsync(chainName, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all NFT owners List all NFT owners on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + public async System.Threading.Tasks.Task> ListAllNFTOwnersWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListAllNFTOwners"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/nft-owners", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTOwnersResult + public ListNFTOwnersResult ListNFTOwners(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListNFTOwnersWithHttpInfo(contractAddress, tokenId, chainName, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTOwnersResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListNFTOwnersWithHttpInfo(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListNFTOwners"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTOwnersResult + public async System.Threading.Tasks.Task ListNFTOwnersAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListNFTOwnersWithHttpInfoAsync(contractAddress, tokenId, chainName, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFT owners by token ID List NFT owners by token ID + /// + /// Thrown when fails to make API call + /// The address of contract + /// An `uint256` token id as string + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTOwnersResult) + public async System.Threading.Tasks.Task> ListNFTOwnersWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftOwnersApi->ListNFTOwners"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListNFTOwners"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTOwners", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListCollectionOwnersResult + public ListCollectionOwnersResult ListOwnersByContractAddress(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListOwnersByContractAddressWithHttpInfo(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListCollectionOwnersResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListOwnersByContractAddressWithHttpInfo(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListOwnersByContractAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListOwnersByContractAddress"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/owners", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListOwnersByContractAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionOwnersResult + public async System.Threading.Tasks.Task ListOwnersByContractAddressAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListOwnersByContractAddressWithHttpInfoAsync(contractAddress, chainName, accountAddress, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List owners by contract address List owners by contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// List of account addresses to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionOwnersResult) + public async System.Threading.Tasks.Task> ListOwnersByContractAddressWithHttpInfoAsync(string contractAddress, string chainName, List? accountAddress = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftOwnersApi->ListOwnersByContractAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftOwnersApi->ListOwnersByContractAddress"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/owners", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListOwnersByContractAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs.meta new file mode 100644 index 00000000..4fdf22cf --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/NftOwnersApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9cf475dfb9565407792c162305ffdc77 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs new file mode 100644 index 00000000..3f01750a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs @@ -0,0 +1,1808 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// CreateMintRequestResult + CreateMintRequestResult CreateMintRequest(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest); + + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// ApiResponse of CreateMintRequestResult + ApiResponse CreateMintRequestWithHttpInfo(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest); + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ListMintRequestsResult + ListMintRequestsResult GetMintRequest(string contractAddress, string chainName, string referenceId); + + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ApiResponse of ListMintRequestsResult + ApiResponse GetMintRequestWithHttpInfo(string contractAddress, string chainName, string referenceId); + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// GetNFTResult + GetNFTResult GetNFT(string contractAddress, string tokenId, string chainName); + + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// ApiResponse of GetNFTResult + ApiResponse GetNFTWithHttpInfo(string contractAddress, string tokenId, string chainName); + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + ListNFTsResult ListAllNFTs(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + ApiResponse ListAllNFTsWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ListMintRequestsResult + ListMintRequestsResult ListMintRequests(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)); + + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ApiResponse of ListMintRequestsResult + ApiResponse ListMintRequestsWithHttpInfo(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)); + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + ListNFTsResult ListNFTs(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + ApiResponse ListNFTsWithHttpInfo(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsByOwnerResult + ListNFTsByOwnerResult ListNFTsByAccountAddress(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsByOwnerResult + ApiResponse ListNFTsByAccountAddressWithHttpInfo(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of CreateMintRequestResult + System.Threading.Tasks.Task CreateMintRequestAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Mint NFTs + /// + /// + /// Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateMintRequestResult) + System.Threading.Tasks.Task> CreateMintRequestWithHttpInfoAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + System.Threading.Tasks.Task GetMintRequestAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get mint request by reference ID + /// + /// + /// Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + System.Threading.Tasks.Task> GetMintRequestWithHttpInfoAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetNFTResult + System.Threading.Tasks.Task GetNFTAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get NFT by token ID + /// + /// + /// Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNFTResult) + System.Threading.Tasks.Task> GetNFTWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + System.Threading.Tasks.Task ListAllNFTsAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all NFTs + /// + /// + /// List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + System.Threading.Tasks.Task> ListAllNFTsWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + System.Threading.Tasks.Task ListMintRequestsAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List mint requests + /// + /// + /// Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + System.Threading.Tasks.Task> ListMintRequestsWithHttpInfoAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + System.Threading.Tasks.Task ListNFTsAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFTs by contract address + /// + /// + /// List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + System.Threading.Tasks.Task> ListNFTsWithHttpInfoAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsByOwnerResult + System.Threading.Tasks.Task ListNFTsByAccountAddressAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List NFTs by account address + /// + /// + /// List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsByOwnerResult) + System.Threading.Tasks.Task> ListNFTsByAccountAddressWithHttpInfoAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface INftsApi : INftsApiSync, INftsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class NftsApi : IDisposable, INftsApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public NftsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public NftsApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public NftsApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public NftsApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// CreateMintRequestResult + public CreateMintRequestResult CreateMintRequest(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = CreateMintRequestWithHttpInfo(contractAddress, chainName, createMintRequestRequest); + return localVarResponse.Data; + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// ApiResponse of CreateMintRequestResult + public Immutable.Api.ZkEvm.Client.ApiResponse CreateMintRequestWithHttpInfo(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'createMintRequestRequest' is set + if (createMintRequestRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createMintRequestRequest' when calling NftsApi->CreateMintRequest"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createMintRequestRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of CreateMintRequestResult + public async System.Threading.Tasks.Task CreateMintRequestAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateMintRequestWithHttpInfoAsync(contractAddress, chainName, createMintRequestRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Mint NFTs Create a mint request to mint a set of NFTs for a given collection + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Create Mint Request Body + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CreateMintRequestResult) + public async System.Threading.Tasks.Task> CreateMintRequestWithHttpInfoAsync(string contractAddress, string chainName, CreateMintRequestRequest createMintRequestRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->CreateMintRequest"); + + // verify the required parameter 'createMintRequestRequest' is set + if (createMintRequestRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createMintRequestRequest' when calling NftsApi->CreateMintRequest"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createMintRequestRequest; + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ListMintRequestsResult + public ListMintRequestsResult GetMintRequest(string contractAddress, string chainName, string referenceId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetMintRequestWithHttpInfo(contractAddress, chainName, referenceId); + return localVarResponse.Data; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// ApiResponse of ListMintRequestsResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetMintRequestWithHttpInfo(string contractAddress, string chainName, string referenceId) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'referenceId' is set + if (referenceId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'referenceId' when calling NftsApi->GetMintRequest"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("reference_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(referenceId)); // path parameter + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + public async System.Threading.Tasks.Task GetMintRequestAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetMintRequestWithHttpInfoAsync(contractAddress, chainName, referenceId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get mint request by reference ID Retrieve the status of a mint request identified by its reference_id + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// The id of the mint request + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + public async System.Threading.Tasks.Task> GetMintRequestWithHttpInfoAsync(string contractAddress, string chainName, string referenceId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetMintRequest"); + + // verify the required parameter 'referenceId' is set + if (referenceId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'referenceId' when calling NftsApi->GetMintRequest"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("reference_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(referenceId)); // path parameter + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMintRequest", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// GetNFTResult + public GetNFTResult GetNFT(string contractAddress, string tokenId, string chainName) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetNFTWithHttpInfo(contractAddress, tokenId, chainName); + return localVarResponse.Data; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// ApiResponse of GetNFTResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetNFTWithHttpInfo(string contractAddress, string tokenId, string chainName) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetNFT"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftsApi->GetNFT"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetNFT"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNFT", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetNFTResult + public async System.Threading.Tasks.Task GetNFTAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetNFTWithHttpInfoAsync(contractAddress, tokenId, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get NFT by token ID Get NFT by token ID + /// + /// Thrown when fails to make API call + /// The address of NFT contract + /// An `uint256` token id as string + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetNFTResult) + public async System.Threading.Tasks.Task> GetNFTWithHttpInfoAsync(string contractAddress, string tokenId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->GetNFT"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'tokenId' when calling NftsApi->GetNFT"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->GetNFT"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("token_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(tokenId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNFT", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + public ListNFTsResult ListAllNFTs(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListAllNFTsWithHttpInfo(chainName, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListAllNFTsWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListAllNFTs"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + public async System.Threading.Tasks.Task ListAllNFTsAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListAllNFTsWithHttpInfoAsync(chainName, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all NFTs List all NFTs on a chain + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + public async System.Threading.Tasks.Task> ListAllNFTsWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListAllNFTs"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListAllNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ListMintRequestsResult + public ListMintRequestsResult ListMintRequests(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListMintRequestsWithHttpInfo(contractAddress, chainName, pageCursor, pageSize, status); + return localVarResponse.Data; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// ApiResponse of ListMintRequestsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListMintRequestsWithHttpInfo(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListMintRequests"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListMintRequests"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMintRequests", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ListMintRequestsResult + public async System.Threading.Tasks.Task ListMintRequestsAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListMintRequestsWithHttpInfoAsync(contractAddress, chainName, pageCursor, pageSize, status, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List mint requests Retrieve the status of all mints for a given contract address + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// The status of the mint request (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListMintRequestsResult) + public async System.Threading.Tasks.Task> ListMintRequestsWithHttpInfoAsync(string contractAddress, string chainName, string? pageCursor = default(string?), int? pageSize = default(int?), MintRequestStatus? status = default(MintRequestStatus?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListMintRequests"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListMintRequests"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + + // authentication (ImmutableApiKey) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key"))) + { + localVarRequestOptions.HeaderParameters.Add("x-immutable-api-key", this.Configuration.GetApiKeyWithPrefix("x-immutable-api-key")); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListMintRequests", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsResult + public ListNFTsResult ListNFTs(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListNFTsWithHttpInfo(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListNFTsWithHttpInfo(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListNFTs"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTs"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/collections/{contract_address}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsResult + public async System.Threading.Tasks.Task ListNFTsAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListNFTsWithHttpInfoAsync(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFTs by contract address List NFTs by contract address + /// + /// Thrown when fails to make API call + /// Contract address + /// The name of chain + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsResult) + public async System.Threading.Tasks.Task> ListNFTsWithHttpInfoAsync(string contractAddress, string chainName, List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling NftsApi->ListNFTs"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTs"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/collections/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListNFTsByOwnerResult + public ListNFTsByOwnerResult ListNFTsByAccountAddress(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListNFTsByAccountAddressWithHttpInfo(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListNFTsByOwnerResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListNFTsByAccountAddressWithHttpInfo(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling NftsApi->ListNFTsByAccountAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTsByAccountAddress"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/accounts/{account_address}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTsByAccountAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListNFTsByOwnerResult + public async System.Threading.Tasks.Task ListNFTsByAccountAddressAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListNFTsByAccountAddressWithHttpInfoAsync(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List NFTs by account address List NFTs by account address + /// + /// Thrown when fails to make API call + /// Account address + /// The name of chain + /// The address of contract (optional) + /// List of token IDs to filter by (optional) + /// Datetime to use as the oldest updated timestamp (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListNFTsByOwnerResult) + public async System.Threading.Tasks.Task> ListNFTsByAccountAddressWithHttpInfoAsync(string accountAddress, string chainName, string? contractAddress = default(string?), List? tokenId = default(List?), DateTime? fromUpdatedAt = default(DateTime?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'accountAddress' is set + if (accountAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'accountAddress' when calling NftsApi->ListNFTsByAccountAddress"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling NftsApi->ListNFTsByAccountAddress"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("account_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(accountAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (contractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "contract_address", contractAddress)); + } + if (tokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/accounts/{account_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListNFTsByAccountAddress", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs.meta new file mode 100644 index 00000000..fa896886 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/NftsApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cfd62381dfeca4049ba01ef5e0e51e77 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs new file mode 100644 index 00000000..0d3cf43c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs @@ -0,0 +1,3158 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// CancelOrdersResult + CancelOrdersResult CancelOrders(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody); + + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CancelOrdersResult + ApiResponse CancelOrdersWithHttpInfo(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody); + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// BidResult + BidResult CreateBid(string chainName, CreateBidRequestBody createBidRequestBody); + + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of BidResult + ApiResponse CreateBidWithHttpInfo(string chainName, CreateBidRequestBody createBidRequestBody); + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// CollectionBidResult + CollectionBidResult CreateCollectionBid(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody); + + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CollectionBidResult + ApiResponse CreateCollectionBidWithHttpInfo(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody); + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ListingResult + ListingResult CreateListing(string chainName, CreateListingRequestBody createListingRequestBody); + + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of ListingResult + ApiResponse CreateListingWithHttpInfo(string chainName, CreateListingRequestBody createListingRequestBody); + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// FulfillmentData200Response + FulfillmentData200Response FulfillmentData(string chainName, List fulfillmentDataRequest); + + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of FulfillmentData200Response + ApiResponse FulfillmentDataWithHttpInfo(string chainName, List fulfillmentDataRequest); + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// BidResult + BidResult GetBid(string chainName, Guid bidId); + + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// ApiResponse of BidResult + ApiResponse GetBidWithHttpInfo(string chainName, Guid bidId); + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// CollectionBidResult + CollectionBidResult GetCollectionBid(string chainName, Guid collectionBidId); + + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// ApiResponse of CollectionBidResult + ApiResponse GetCollectionBidWithHttpInfo(string chainName, Guid collectionBidId); + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ListingResult + ListingResult GetListing(string chainName, Guid listingId); + + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ApiResponse of ListingResult + ApiResponse GetListingWithHttpInfo(string chainName, Guid listingId); + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// TradeResult + TradeResult GetTrade(string chainName, Guid tradeId); + + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// ApiResponse of TradeResult + ApiResponse GetTradeWithHttpInfo(string chainName, Guid tradeId); + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListBidsResult + ListBidsResult ListBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListBidsResult + ApiResponse ListBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListCollectionBidsResult + ListCollectionBidsResult ListCollectionBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListCollectionBidsResult + ApiResponse ListCollectionBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListListingsResult + ListListingsResult ListListings(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListListingsResult + ApiResponse ListListingsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListTradeResult + ListTradeResult ListTrades(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListTradeResult + ApiResponse ListTradesWithHttpInfo(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CancelOrdersResult + System.Threading.Tasks.Task CancelOrdersAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Cancel one or more orders + /// + /// + /// Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CancelOrdersResult) + System.Threading.Tasks.Task> CancelOrdersWithHttpInfoAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of BidResult + System.Threading.Tasks.Task CreateBidAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a bid + /// + /// + /// Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + System.Threading.Tasks.Task> CreateBidWithHttpInfoAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + System.Threading.Tasks.Task CreateCollectionBidAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a collection bid + /// + /// + /// Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + System.Threading.Tasks.Task> CreateCollectionBidWithHttpInfoAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ListingResult + System.Threading.Tasks.Task CreateListingAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Create a listing + /// + /// + /// Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + System.Threading.Tasks.Task> CreateListingWithHttpInfoAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of FulfillmentData200Response + System.Threading.Tasks.Task FulfillmentDataAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Retrieve fulfillment data for orders + /// + /// + /// Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FulfillmentData200Response) + System.Threading.Tasks.Task> FulfillmentDataWithHttpInfoAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of BidResult + System.Threading.Tasks.Task GetBidAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single bid by ID + /// + /// + /// Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + System.Threading.Tasks.Task> GetBidWithHttpInfoAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + System.Threading.Tasks.Task GetCollectionBidAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single collection bid by ID + /// + /// + /// Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + System.Threading.Tasks.Task> GetCollectionBidWithHttpInfoAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ListingResult + System.Threading.Tasks.Task GetListingAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single listing by ID + /// + /// + /// Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + System.Threading.Tasks.Task> GetListingWithHttpInfoAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of TradeResult + System.Threading.Tasks.Task GetTradeAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get a single trade by ID + /// + /// + /// Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TradeResult) + System.Threading.Tasks.Task> GetTradeWithHttpInfoAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListBidsResult + System.Threading.Tasks.Task ListBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all bids + /// + /// + /// List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListBidsResult) + System.Threading.Tasks.Task> ListBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionBidsResult + System.Threading.Tasks.Task ListCollectionBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all collection bids + /// + /// + /// List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionBidsResult) + System.Threading.Tasks.Task> ListCollectionBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListListingsResult + System.Threading.Tasks.Task ListListingsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all listings + /// + /// + /// List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListListingsResult) + System.Threading.Tasks.Task> ListListingsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListTradeResult + System.Threading.Tasks.Task ListTradesAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List all trades + /// + /// + /// List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTradeResult) + System.Threading.Tasks.Task> ListTradesWithHttpInfoAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IOrdersApi : IOrdersApiSync, IOrdersApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class OrdersApi : IDisposable, IOrdersApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public OrdersApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public OrdersApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public OrdersApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public OrdersApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// CancelOrdersResult + public CancelOrdersResult CancelOrders(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = CancelOrdersWithHttpInfo(chainName, cancelOrdersRequestBody); + return localVarResponse.Data; + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CancelOrdersResult + public Immutable.Api.ZkEvm.Client.ApiResponse CancelOrdersWithHttpInfo(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CancelOrders"); + + // verify the required parameter 'cancelOrdersRequestBody' is set + if (cancelOrdersRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'cancelOrdersRequestBody' when calling OrdersApi->CancelOrders"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = cancelOrdersRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/cancel", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelOrders", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CancelOrdersResult + public async System.Threading.Tasks.Task CancelOrdersAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CancelOrdersWithHttpInfoAsync(chainName, cancelOrdersRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Cancel one or more orders Cancel one or more orders + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CancelOrdersResult) + public async System.Threading.Tasks.Task> CancelOrdersWithHttpInfoAsync(string chainName, CancelOrdersRequestBody cancelOrdersRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CancelOrders"); + + // verify the required parameter 'cancelOrdersRequestBody' is set + if (cancelOrdersRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'cancelOrdersRequestBody' when calling OrdersApi->CancelOrders"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = cancelOrdersRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/cancel", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelOrders", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// BidResult + public BidResult CreateBid(string chainName, CreateBidRequestBody createBidRequestBody) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = CreateBidWithHttpInfo(chainName, createBidRequestBody); + return localVarResponse.Data; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of BidResult + public Immutable.Api.ZkEvm.Client.ApiResponse CreateBidWithHttpInfo(string chainName, CreateBidRequestBody createBidRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateBid"); + + // verify the required parameter 'createBidRequestBody' is set + if (createBidRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createBidRequestBody' when calling OrdersApi->CreateBid"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createBidRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of BidResult + public async System.Threading.Tasks.Task CreateBidAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateBidWithHttpInfoAsync(chainName, createBidRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Create a bid Create a bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + public async System.Threading.Tasks.Task> CreateBidWithHttpInfoAsync(string chainName, CreateBidRequestBody createBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateBid"); + + // verify the required parameter 'createBidRequestBody' is set + if (createBidRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createBidRequestBody' when calling OrdersApi->CreateBid"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createBidRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// CollectionBidResult + public CollectionBidResult CreateCollectionBid(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = CreateCollectionBidWithHttpInfo(chainName, createCollectionBidRequestBody); + return localVarResponse.Data; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of CollectionBidResult + public Immutable.Api.ZkEvm.Client.ApiResponse CreateCollectionBidWithHttpInfo(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateCollectionBid"); + + // verify the required parameter 'createCollectionBidRequestBody' is set + if (createCollectionBidRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createCollectionBidRequestBody' when calling OrdersApi->CreateCollectionBid"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createCollectionBidRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + public async System.Threading.Tasks.Task CreateCollectionBidAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateCollectionBidWithHttpInfoAsync(chainName, createCollectionBidRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Create a collection bid Create a collection bid + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + public async System.Threading.Tasks.Task> CreateCollectionBidWithHttpInfoAsync(string chainName, CreateCollectionBidRequestBody createCollectionBidRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateCollectionBid"); + + // verify the required parameter 'createCollectionBidRequestBody' is set + if (createCollectionBidRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createCollectionBidRequestBody' when calling OrdersApi->CreateCollectionBid"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createCollectionBidRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ListingResult + public ListingResult CreateListing(string chainName, CreateListingRequestBody createListingRequestBody) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = CreateListingWithHttpInfo(chainName, createListingRequestBody); + return localVarResponse.Data; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of ListingResult + public Immutable.Api.ZkEvm.Client.ApiResponse CreateListingWithHttpInfo(string chainName, CreateListingRequestBody createListingRequestBody) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateListing"); + + // verify the required parameter 'createListingRequestBody' is set + if (createListingRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createListingRequestBody' when calling OrdersApi->CreateListing"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createListingRequestBody; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ListingResult + public async System.Threading.Tasks.Task CreateListingAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = CreateListingWithHttpInfoAsync(chainName, createListingRequestBody, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Create a listing Create a listing + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + public async System.Threading.Tasks.Task> CreateListingWithHttpInfoAsync(string chainName, CreateListingRequestBody createListingRequestBody, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->CreateListing"); + + // verify the required parameter 'createListingRequestBody' is set + if (createListingRequestBody == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'createListingRequestBody' when calling OrdersApi->CreateListing"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = createListingRequestBody; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// FulfillmentData200Response + public FulfillmentData200Response FulfillmentData(string chainName, List fulfillmentDataRequest) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = FulfillmentDataWithHttpInfo(chainName, fulfillmentDataRequest); + return localVarResponse.Data; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// ApiResponse of FulfillmentData200Response + public Immutable.Api.ZkEvm.Client.ApiResponse FulfillmentDataWithHttpInfo(string chainName, List fulfillmentDataRequest) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->FulfillmentData"); + + // verify the required parameter 'fulfillmentDataRequest' is set + if (fulfillmentDataRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'fulfillmentDataRequest' when calling OrdersApi->FulfillmentData"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = fulfillmentDataRequest; + + + // make the HTTP request + var localVarResponse = this.Client.Post("/v1/chains/{chain_name}/orders/fulfillment-data", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FulfillmentData", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of FulfillmentData200Response + public async System.Threading.Tasks.Task FulfillmentDataAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = FulfillmentDataWithHttpInfoAsync(chainName, fulfillmentDataRequest, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Retrieve fulfillment data for orders Retrieve signed fulfillment data based on the list of order IDs and corresponding fees. + /// + /// Thrown when fails to make API call + /// + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FulfillmentData200Response) + public async System.Threading.Tasks.Task> FulfillmentDataWithHttpInfoAsync(string chainName, List fulfillmentDataRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->FulfillmentData"); + + // verify the required parameter 'fulfillmentDataRequest' is set + if (fulfillmentDataRequest == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'fulfillmentDataRequest' when calling OrdersApi->FulfillmentData"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.Data = fulfillmentDataRequest; + + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/v1/chains/{chain_name}/orders/fulfillment-data", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("FulfillmentData", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// BidResult + public BidResult GetBid(string chainName, Guid bidId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetBidWithHttpInfo(chainName, bidId); + return localVarResponse.Data; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// ApiResponse of BidResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetBidWithHttpInfo(string chainName, Guid bidId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetBid"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("bid_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(bidId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/bids/{bid_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of BidResult + public async System.Threading.Tasks.Task GetBidAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetBidWithHttpInfoAsync(chainName, bidId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single bid by ID Get a single bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (BidResult) + public async System.Threading.Tasks.Task> GetBidWithHttpInfoAsync(string chainName, Guid bidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetBid"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("bid_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(bidId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/bids/{bid_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// CollectionBidResult + public CollectionBidResult GetCollectionBid(string chainName, Guid collectionBidId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetCollectionBidWithHttpInfo(chainName, collectionBidId); + return localVarResponse.Data; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// ApiResponse of CollectionBidResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetCollectionBidWithHttpInfo(string chainName, Guid collectionBidId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetCollectionBid"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("collection_bid_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(collectionBidId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of CollectionBidResult + public async System.Threading.Tasks.Task GetCollectionBidAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetCollectionBidWithHttpInfoAsync(chainName, collectionBidId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single collection bid by ID Get a single collection bid by ID + /// + /// Thrown when fails to make API call + /// + /// Global Collection Bid identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CollectionBidResult) + public async System.Threading.Tasks.Task> GetCollectionBidWithHttpInfoAsync(string chainName, Guid collectionBidId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetCollectionBid"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("collection_bid_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(collectionBidId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetCollectionBid", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ListingResult + public ListingResult GetListing(string chainName, Guid listingId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetListingWithHttpInfo(chainName, listingId); + return localVarResponse.Data; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// ApiResponse of ListingResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetListingWithHttpInfo(string chainName, Guid listingId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetListing"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("listing_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(listingId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/listings/{listing_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ListingResult + public async System.Threading.Tasks.Task GetListingAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetListingWithHttpInfoAsync(chainName, listingId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single listing by ID Get a single listing by ID + /// + /// Thrown when fails to make API call + /// + /// Global Order identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListingResult) + public async System.Threading.Tasks.Task> GetListingWithHttpInfoAsync(string chainName, Guid listingId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetListing"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("listing_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(listingId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/listings/{listing_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// TradeResult + public TradeResult GetTrade(string chainName, Guid tradeId) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetTradeWithHttpInfo(chainName, tradeId); + return localVarResponse.Data; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// ApiResponse of TradeResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetTradeWithHttpInfo(string chainName, Guid tradeId) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetTrade"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("trade_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(tradeId)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/trades/{trade_id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTrade", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of TradeResult + public async System.Threading.Tasks.Task GetTradeAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetTradeWithHttpInfoAsync(chainName, tradeId, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get a single trade by ID Get a single trade by ID + /// + /// Thrown when fails to make API call + /// + /// Global Trade identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (TradeResult) + public async System.Threading.Tasks.Task> GetTradeWithHttpInfoAsync(string chainName, Guid tradeId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->GetTrade"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("trade_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(tradeId)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/trades/{trade_id}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTrade", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListBidsResult + public ListBidsResult ListBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListBidsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListBids"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (buyItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_metadata_id", buyItemMetadataId)); + } + if (buyItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_token_id", buyItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListBidsResult + public async System.Threading.Tasks.Task ListBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListBidsWithHttpInfoAsync(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, buyItemMetadataId, buyItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all bids List all bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// The metadata_id of the buy item (optional) + /// buy item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListBidsResult) + public async System.Threading.Tasks.Task> ListBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? buyItemMetadataId = default(Guid?), string? buyItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListBids"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (buyItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_metadata_id", buyItemMetadataId)); + } + if (buyItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_token_id", buyItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListCollectionBidsResult + public ListCollectionBidsResult ListCollectionBids(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListCollectionBidsWithHttpInfo(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListCollectionBidsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListCollectionBidsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListCollectionBids"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListCollectionBidsResult + public async System.Threading.Tasks.Task ListCollectionBidsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListCollectionBidsWithHttpInfoAsync(chainName, status, buyItemContractAddress, sellItemContractAddress, accountAddress, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all collection bids List all collection bids + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Buy item contract address to filter by (optional) + /// Sell item contract address to filter by (optional) + /// The account address of the user who created the bid (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `sell_item_amount` sorts by per token price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted as 2eth for `sell_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListCollectionBidsResult) + public async System.Threading.Tasks.Task> ListCollectionBidsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? buyItemContractAddress = default(string?), string? sellItemContractAddress = default(string?), string? accountAddress = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListCollectionBids"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/collection-bids", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListCollectionBids", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListListingsResult + public ListListingsResult ListListings(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListListingsWithHttpInfo(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListListingsResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListListingsWithHttpInfo(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListListings"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (buyItemType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_type", buyItemType)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_metadata_id", sellItemMetadataId)); + } + if (sellItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_token_id", sellItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListListings", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListListingsResult + public async System.Threading.Tasks.Task ListListingsAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListListingsWithHttpInfoAsync(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all listings List all listings + /// + /// Thrown when fails to make API call + /// + /// Order status to filter by (optional) + /// Sell item contract address to filter by (optional) + /// Buy item type to filter by (optional) + /// Buy item contract address to filter by (optional) + /// The account address of the user who created the listing (optional) + /// The metadata_id of the sell item (optional) + /// Sell item token identifier to filter by (optional) + /// From updated at including given date (optional) + /// Maximum number of orders to return per page (optional, default to 100) + /// Order field to sort by. `buy_item_amount` sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for `buy_item_amount`. (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListListingsResult) + public async System.Threading.Tasks.Task> ListListingsWithHttpInfoAsync(string chainName, OrderStatusName? status = default(OrderStatusName?), string? sellItemContractAddress = default(string?), string? buyItemType = default(string?), string? buyItemContractAddress = default(string?), string? accountAddress = default(string?), Guid? sellItemMetadataId = default(Guid?), string? sellItemTokenId = default(string?), DateTime? fromUpdatedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListListings"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (buyItemType != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_type", buyItemType)); + } + if (buyItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "buy_item_contract_address", buyItemContractAddress)); + } + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemMetadataId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_metadata_id", sellItemMetadataId)); + } + if (sellItemTokenId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_token_id", sellItemTokenId)); + } + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/orders/listings", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListListings", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ListTradeResult + public ListTradeResult ListTrades(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListTradesWithHttpInfo(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor); + return localVarResponse.Data; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of ListTradeResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListTradesWithHttpInfo(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListTrades"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (fromIndexedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_indexed_at", fromIndexedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/trades", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListTrades", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ListTradeResult + public async System.Threading.Tasks.Task ListTradesAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListTradesWithHttpInfoAsync(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List all trades List all trades + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// (optional) + /// From indexed at including given date (optional) + /// Maximum number of trades to return per page (optional, default to 100) + /// Trade field to sort by (optional) + /// Ascending or descending direction for sort (optional) + /// Page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTradeResult) + public async System.Threading.Tasks.Task> ListTradesWithHttpInfoAsync(string chainName, string? accountAddress = default(string?), string? sellItemContractAddress = default(string?), DateTime? fromIndexedAt = default(DateTime?), int? pageSize = default(int?), string? sortBy = default(string?), string? sortDirection = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling OrdersApi->ListTrades"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (sellItemContractAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sell_item_contract_address", sellItemContractAddress)); + } + if (fromIndexedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_indexed_at", fromIndexedAt)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (sortDirection != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_direction", sortDirection)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/trades", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListTrades", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs.meta new file mode 100644 index 00000000..4e37c25d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/OrdersApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5e806d96549e240f3a1e39122a2ca512 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs new file mode 100644 index 00000000..45c6d752 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs @@ -0,0 +1,392 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// GetLinkedAddressesRes + [Obsolete] + GetLinkedAddressesRes GetLinkedAddresses(string userId, string chainName); + + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// ApiResponse of GetLinkedAddressesRes + [Obsolete] + ApiResponse GetLinkedAddressesWithHttpInfo(string userId, string chainName); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of GetLinkedAddressesRes + [Obsolete] + System.Threading.Tasks.Task GetLinkedAddressesAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get Ethereum linked addresses for a user + /// + /// + /// This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetLinkedAddressesRes) + [Obsolete] + System.Threading.Tasks.Task> GetLinkedAddressesWithHttpInfoAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportApi : IPassportApiSync, IPassportApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PassportApi : IDisposable, IPassportApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public PassportApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public PassportApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public PassportApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public PassportApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// GetLinkedAddressesRes + [Obsolete] + public GetLinkedAddressesRes GetLinkedAddresses(string userId, string chainName) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetLinkedAddressesWithHttpInfo(userId, chainName); + return localVarResponse.Data; + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// ApiResponse of GetLinkedAddressesRes + [Obsolete] + public Immutable.Api.ZkEvm.Client.ApiResponse GetLinkedAddressesWithHttpInfo(string userId, string chainName) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'userId' when calling PassportApi->GetLinkedAddresses"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling PassportApi->GetLinkedAddresses"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("user_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedAddresses", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of GetLinkedAddressesRes + [Obsolete] + public async System.Threading.Tasks.Task GetLinkedAddressesAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetLinkedAddressesWithHttpInfoAsync(userId, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get Ethereum linked addresses for a user This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo instead to get a list of linked addresses. + /// + /// Thrown when fails to make API call + /// The user's userId + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetLinkedAddressesRes) + [Obsolete] + public async System.Threading.Tasks.Task> GetLinkedAddressesWithHttpInfoAsync(string userId, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'userId' when calling PassportApi->GetLinkedAddresses"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling PassportApi->GetLinkedAddresses"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("user_id", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedAddresses", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs.meta new file mode 100644 index 00000000..bcbcca07 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/PassportApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f97363243d74a4cb4b1634f5cc49c1fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs new file mode 100644 index 00000000..9c5732b0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs @@ -0,0 +1,524 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportProfileApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// UserInfo + UserInfo GetUserInfo(); + + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// ApiResponse of UserInfo + ApiResponse GetUserInfoWithHttpInfo(); + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Wallet + Wallet LinkWalletV2(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)); + + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Wallet + ApiResponse LinkWalletV2WithHttpInfo(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportProfileApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of UserInfo + System.Threading.Tasks.Task GetUserInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get all info for a Passport user + /// + /// + /// Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfo) + System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Wallet + System.Threading.Tasks.Task LinkWalletV2Async(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Link wallet v2 + /// + /// + /// Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Wallet) + System.Threading.Tasks.Task> LinkWalletV2WithHttpInfoAsync(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPassportProfileApi : IPassportProfileApiSync, IPassportProfileApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PassportProfileApi : IDisposable, IPassportProfileApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public PassportProfileApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public PassportProfileApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public PassportProfileApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public PassportProfileApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// UserInfo + public UserInfo GetUserInfo() + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetUserInfoWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// ApiResponse of UserInfo + public Immutable.Api.ZkEvm.Client.ApiResponse GetUserInfoWithHttpInfo() + { + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/passport-profile/v1/user/info", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of UserInfo + public async System.Threading.Tasks.Task GetUserInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetUserInfoWithHttpInfoAsync(cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get all info for a Passport user Get all the info for an authenticated Passport user + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (UserInfo) + public async System.Threading.Tasks.Task> GetUserInfoWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/passport-profile/v1/user/info", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUserInfo", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Wallet + public Wallet LinkWalletV2(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = LinkWalletV2WithHttpInfo(linkWalletV2Request); + return localVarResponse.Data; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Wallet + public Immutable.Api.ZkEvm.Client.ApiResponse LinkWalletV2WithHttpInfo(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?)) + { + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = linkWalletV2Request; + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/passport-profile/v2/linked-wallets", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LinkWalletV2", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Wallet + public async System.Threading.Tasks.Task LinkWalletV2Async(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = LinkWalletV2WithHttpInfoAsync(linkWalletV2Request, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Link wallet v2 Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature. + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Wallet) + public async System.Threading.Tasks.Task> LinkWalletV2WithHttpInfoAsync(LinkWalletV2Request? linkWalletV2Request = default(LinkWalletV2Request?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = linkWalletV2Request; + + // authentication (BearerAuth) required + // bearer authentication required + if (!string.IsNullOrEmpty(this.Configuration.AccessToken) && !localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var task = this.AsynchronousClient.PostAsync("/passport-profile/v2/linked-wallets", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("LinkWalletV2", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs.meta new file mode 100644 index 00000000..756661b9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/PassportProfileApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 26c0553e93630447985868ac58b2d7b7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs new file mode 100644 index 00000000..86fbd094 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs @@ -0,0 +1,628 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPricingApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForNFTsResult + QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); + + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForNFTsResult + ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForStacksResult + QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); + + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForStacksResult + ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPricingApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForNFTsResult + System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Get pricing data for a list of token ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForNFTsResult) + System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForStacksResult + System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Get pricing data for a list of stack ids + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForStacksResult) + System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IPricingApi : IPricingApiSync, IPricingApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class PricingApi : IDisposable, IPricingApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public PricingApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public PricingApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public PricingApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public PricingApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForNFTsResult + public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForNFTsResult + public Immutable.Api.ZkEvm.Client.ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'tokenId' when calling PricingApi->QuotesForNFTs"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForNFTsResult + public async System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of token ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of token ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these token ids are on + /// List of token ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForNFTsResult) + public async System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForNFTs"); + + // verify the required parameter 'tokenId' is set + if (tokenId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'tokenId' when calling PricingApi->QuotesForNFTs"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// QuotesForStacksResult + public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of QuotesForStacksResult + public Immutable.Api.ZkEvm.Client.ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'stackId' is set + if (stackId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'stackId' when calling PricingApi->QuotesForStacks"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of QuotesForStacksResult + public async System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Get pricing data for a list of stack ids ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Get pricing data for a list of stack ids + /// + /// Thrown when fails to make API call + /// The name of chain + /// Contract address for collection that these stacks are on + /// List of stack ids to get pricing data for + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (QuotesForStacksResult) + public async System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling PricingApi->QuotesForStacks"); + + // verify the required parameter 'stackId' is set + if (stackId == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'stackId' when calling PricingApi->QuotesForStacks"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/quotes/{contract_address}/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("QuotesForStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs.meta new file mode 100644 index 00000000..3cc69a69 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 909377c06e9724025bd7a4fca52bd005 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs new file mode 100644 index 00000000..e1b9c230 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs @@ -0,0 +1,768 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStacksApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchNFTsResult + SearchNFTsResult SearchNFTs(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)); + + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchNFTsResult + ApiResponse SearchNFTsWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)); + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchStacksResult + SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); + + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchStacksResult + ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStacksApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchNFTsResult + System.Threading.Tasks.Task SearchNFTsAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Search NFTs + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchNFTsResult) + System.Threading.Tasks.Task> SearchNFTsWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchStacksResult + System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Experimental: Search NFT stacks + /// + /// + /// ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchStacksResult) + System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IStacksApi : IStacksApiSync, IStacksApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class StacksApi : IDisposable, IStacksApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public StacksApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public StacksApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public StacksApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public StacksApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchNFTsResult + public SearchNFTsResult SearchNFTs(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = SearchNFTsWithHttpInfo(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchNFTsResult + public Immutable.Api.ZkEvm.Client.ApiResponse SearchNFTsWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchNFTs"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (stackId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchNFTsResult + public async System.Threading.Tasks.Task SearchNFTsAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = SearchNFTsWithHttpInfoAsync(chainName, contractAddress, accountAddress, stackId, onlyIncludeOwnerListings, pageSize, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFTs ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFTs + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Filters NFTs that belong to any of these stacks (optional) + /// Whether the listings should include only the owner created listings (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchNFTsResult) + public async System.Threading.Tasks.Task> SearchNFTsWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), List? stackId = default(List?), bool? onlyIncludeOwnerListings = default(bool?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchNFTs"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchNFTs"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (stackId != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/nfts", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchNFTs", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// SearchStacksResult + public SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor); + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// ApiResponse of SearchStacksResult + public Immutable.Api.ZkEvm.Client.ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchStacks"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (onlyIfHasActiveListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "only_if_has_active_listings", onlyIfHasActiveListings)); + } + if (trait != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "trait", trait)); + } + if (keyword != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of SearchStacksResult + public async System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Experimental: Search NFT stacks ![Experimental](https://img.shields.io/badge/status-experimental-yellow) Search NFT stacks + /// + /// Thrown when fails to make API call + /// The name of chain + /// List of contract addresses to filter by + /// Account address to filter by (optional) + /// Whether to the listings should include only the owner created listings (optional) + /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) + /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) + /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Sort results in a specific order (optional) + /// Number of results to return per page (optional, default to 100) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (SearchStacksResult) + public async System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? trait = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling StacksApi->SearchStacks"); + + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling StacksApi->SearchStacks"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "contract_address", contractAddress)); + if (accountAddress != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "account_address", accountAddress)); + } + if (onlyIncludeOwnerListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "only_include_owner_listings", onlyIncludeOwnerListings)); + } + if (onlyIfHasActiveListings != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "only_if_has_active_listings", onlyIfHasActiveListings)); + } + if (trait != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "trait", trait)); + } + if (keyword != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); + } + if (sortBy != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/experimental/chains/{chain_name}/search/stacks", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SearchStacks", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta new file mode 100644 index 00000000..c05e9934 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/StacksApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5ef58e26abd6246daa72c9cc8791485b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs new file mode 100644 index 00000000..74083a48 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs @@ -0,0 +1,622 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Immutable.Api.ZkEvm.Client; +using Immutable.Api.ZkEvm.Model; + +namespace Immutable.Api.ZkEvm.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITokensApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// GetTokenResult + GetTokenResult GetERC20Token(string contractAddress, string chainName); + + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// ApiResponse of GetTokenResult + ApiResponse GetERC20TokenWithHttpInfo(string contractAddress, string chainName); + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListTokensResult + ListTokensResult ListERC20Tokens(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)); + + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListTokensResult + ApiResponse ListERC20TokensWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITokensApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetTokenResult + System.Threading.Tasks.Task GetERC20TokenAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Get single ERC20 token + /// + /// + /// Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetTokenResult) + System.Threading.Tasks.Task> GetERC20TokenWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListTokensResult + System.Threading.Tasks.Task ListERC20TokensAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// List ERC20 tokens + /// + /// + /// List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTokensResult) + System.Threading.Tasks.Task> ListERC20TokensWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITokensApi : ITokensApiSync, ITokensApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TokensApi : IDisposable, ITokensApi + { + private Immutable.Api.ZkEvm.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public TokensApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public TokensApi(string basePath) + { + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + new Immutable.Api.ZkEvm.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public TokensApi(Immutable.Api.ZkEvm.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = Immutable.Api.ZkEvm.Client.Configuration.MergeConfigurations( + Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new Immutable.Api.ZkEvm.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public TokensApi(Immutable.Api.ZkEvm.Client.ISynchronousClient client, Immutable.Api.ZkEvm.Client.IAsynchronousClient asyncClient, Immutable.Api.ZkEvm.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = Immutable.Api.ZkEvm.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Immutable.Api.ZkEvm.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public Immutable.Api.ZkEvm.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public Immutable.Api.ZkEvm.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Immutable.Api.ZkEvm.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// GetTokenResult + public GetTokenResult GetERC20Token(string contractAddress, string chainName) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = GetERC20TokenWithHttpInfo(contractAddress, chainName); + return localVarResponse.Data; + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// ApiResponse of GetTokenResult + public Immutable.Api.ZkEvm.Client.ApiResponse GetERC20TokenWithHttpInfo(string contractAddress, string chainName) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling TokensApi->GetERC20Token"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->GetERC20Token"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/tokens/{contract_address}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetERC20Token", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of GetTokenResult + public async System.Threading.Tasks.Task GetERC20TokenAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = GetERC20TokenWithHttpInfoAsync(contractAddress, chainName, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// Get single ERC20 token Get single ERC20 token + /// + /// Thrown when fails to make API call + /// The address of contract + /// The name of chain + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetTokenResult) + public async System.Threading.Tasks.Task> GetERC20TokenWithHttpInfoAsync(string contractAddress, string chainName, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'contractAddress' is set + if (contractAddress == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'contractAddress' when calling TokensApi->GetERC20Token"); + + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->GetERC20Token"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/tokens/{contract_address}", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetERC20Token", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ListTokensResult + public ListTokensResult ListERC20Tokens(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = ListERC20TokensWithHttpInfo(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize); + return localVarResponse.Data; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// ApiResponse of ListTokensResult + public Immutable.Api.ZkEvm.Client.ApiResponse ListERC20TokensWithHttpInfo(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->ListERC20Tokens"); + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (isCanonical != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "is_canonical", isCanonical)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + var localVarResponse = this.Client.Get("/v1/chains/{chain_name}/tokens", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListERC20Tokens", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ListTokensResult + public async System.Threading.Tasks.Task ListERC20TokensAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var task = ListERC20TokensWithHttpInfoAsync(chainName, fromUpdatedAt, verificationStatus, isCanonical, pageCursor, pageSize, cancellationToken); +#if UNITY_EDITOR || !UNITY_WEBGL + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); +#else + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task; +#endif + return localVarResponse.Data; + } + + /// + /// List ERC20 tokens List ERC20 tokens + /// + /// Thrown when fails to make API call + /// The name of chain + /// Datetime to use as the oldest updated timestamp (optional) + /// List of verification status to filter by (optional) + /// [Experimental - Canonical token data may be updated] Filter by canonical or non-canonical tokens. (optional) + /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) + /// Maximum number of items to return (optional, default to 100) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ListTokensResult) + public async System.Threading.Tasks.Task> ListERC20TokensWithHttpInfoAsync(string chainName, DateTime? fromUpdatedAt = default(DateTime?), List? verificationStatus = default(List?), bool? isCanonical = default(bool?), string? pageCursor = default(string?), int? pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + // verify the required parameter 'chainName' is set + if (chainName == null) + throw new Immutable.Api.ZkEvm.Client.ApiException(400, "Missing required parameter 'chainName' when calling TokensApi->ListERC20Tokens"); + + + Immutable.Api.ZkEvm.Client.RequestOptions localVarRequestOptions = new Immutable.Api.ZkEvm.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Immutable.Api.ZkEvm.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter + if (fromUpdatedAt != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "from_updated_at", fromUpdatedAt)); + } + if (verificationStatus != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "verification_status", verificationStatus)); + } + if (isCanonical != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "is_canonical", isCanonical)); + } + if (pageCursor != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); + } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + + + // make the HTTP request + + var task = this.AsynchronousClient.GetAsync("/v1/chains/{chain_name}/tokens", localVarRequestOptions, this.Configuration, cancellationToken); + +#if UNITY_EDITOR || !UNITY_WEBGL + var localVarResponse = await task.ConfigureAwait(false); +#else + var localVarResponse = await task; +#endif + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListERC20Tokens", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs.meta b/src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs.meta new file mode 100644 index 00000000..72c77938 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Api/TokensApi.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36012c37753c44a73ac88b89bf017fd1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client.meta b/src/Packages/ZkEvmApi/Runtime/Client.meta new file mode 100644 index 00000000..cf868be8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fe3d6f11c29254b219c530fba3298fa9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs b/src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs new file mode 100644 index 00000000..abb60d81 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs @@ -0,0 +1,646 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters; +using System.Text; +using System.Threading; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; +using ErrorEventArgs = Newtonsoft.Json.Serialization.ErrorEventArgs; +using System.Net.Http; +using System.Net.Http.Headers; +using UnityEngine.Networking; +using UnityEngine; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. + /// + internal class CustomJsonCodec + { + private readonly IReadableConfiguration _configuration; + private static readonly string _contentType = "application/json"; + private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + public CustomJsonCodec(IReadableConfiguration configuration) + { + _configuration = configuration; + } + + public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) + { + _serializerSettings = serializerSettings; + _configuration = configuration; + } + + /// + /// Serialize the object into a JSON string. + /// + /// Object to be serialized. + /// A JSON string. + public string Serialize(object obj) + { + if (obj != null && obj is Immutable.Api.ZkEvm.Model.AbstractOpenAPISchema) + { + // the object to be serialized is an oneOf/anyOf schema + return ((Immutable.Api.ZkEvm.Model.AbstractOpenAPISchema)obj).ToJson(); + } + else + { + return JsonConvert.SerializeObject(obj, _serializerSettings); + } + } + + public T Deserialize(UnityWebRequest request) + { + var result = (T) Deserialize(request, typeof(T)); + return result; + } + + /// + /// Deserialize the JSON string into a proper object. + /// + /// The UnityWebRequest after it has a response. + /// Object type. + /// Object representation of the JSON string. + internal object Deserialize(UnityWebRequest request, Type type) + { + if (type == typeof(byte[])) // return byte array + { + return request.downloadHandler.data; + } + + // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) + if (type == typeof(Stream)) + { + // NOTE: Ignoring Content-Disposition filename support, since not all platforms + // have a location on disk to write arbitrary data (tvOS, consoles). + return new MemoryStream(request.downloadHandler.data); + } + + if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object + { + return DateTime.Parse(request.downloadHandler.text, null, System.Globalization.DateTimeStyles.RoundtripKind); + } + + if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type + { + return Convert.ChangeType(request.downloadHandler.text, type); + } + + var contentType = request.GetResponseHeader("Content-Type"); + + if (!string.IsNullOrEmpty(contentType) && contentType.Contains("application/json")) + { + var text = request.downloadHandler?.text; + + // Generated APIs that don't expect a return value provide System.Object as the type + if (type == typeof(global::System.Object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) + { + return null; + } + + if (request.responseCode >= 200 && request.responseCode < 300) + { + try + { + // Deserialize as a model + return JsonConvert.DeserializeObject(text, type, _serializerSettings); + } + catch (Exception e) + { + throw new UnexpectedResponseException(request, type, e.ToString()); + } + } + else + { + throw new ApiException((int)request.responseCode, request.error, text); + } + } + + if (type != typeof(global::System.Object) && request.responseCode >= 200 && request.responseCode < 300) + { + throw new UnexpectedResponseException(request, type); + } + + return null; + + } + + public string RootElement { get; set; } + public string Namespace { get; set; } + public string DateFormat { get; set; } + + public string ContentType + { + get { return _contentType; } + set { throw new InvalidOperationException("Not allowed to set content type."); } + } + } + /// + /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), + /// encapsulating general REST accessor use cases. + /// + /// + /// The Dispose method will manage the HttpClient lifecycle when not passed by constructor. + /// + public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient + { + private readonly string _baseUrl; + + /// + /// Specifies the settings on a object. + /// These settings can be adjusted to accommodate custom serialization rules. + /// + public JsonSerializerSettings SerializerSettings { get; set; } = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Initializes a new instance of the , defaulting to the global configurations' base url. + /// + public ApiClient() : + this(Immutable.Api.ZkEvm.Client.GlobalConfiguration.Instance.BasePath) + { + } + + /// + /// Initializes a new instance of the . + /// + /// The target service's base path in URL format. + /// + public ApiClient(string basePath) + { + if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); + + _baseUrl = basePath; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + } + + /// + /// Provides all logic for constructing a new UnityWebRequest. + /// At this point, all information for querying the service is known. Here, it is simply + /// mapped into the UnityWebRequest. + /// + /// The http verb. + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// [private] A new UnityWebRequest instance. + /// + private UnityWebRequest NewRequest( + string method, + string path, + RequestOptions options, + IReadableConfiguration configuration) + { + if (path == null) throw new ArgumentNullException("path"); + if (options == null) throw new ArgumentNullException("options"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + WebRequestPathBuilder builder = new WebRequestPathBuilder(_baseUrl, path); + + builder.AddPathParameters(options.PathParameters); + + builder.AddQueryParameters(options.QueryParameters); + + string contentType = null; + if (options.HeaderParameters != null && options.HeaderParameters.ContainsKey("Content-Type")) + { + var contentTypes = options.HeaderParameters["Content-Type"]; + contentType = contentTypes.FirstOrDefault(); + } + + var uri = builder.GetFullUri(); + UnityWebRequest request = null; + + if (contentType == "multipart/form-data") + { + var formData = new List(); + foreach (var formParameter in options.FormParameters) + { + formData.Add(new MultipartFormDataSection(formParameter.Key, formParameter.Value)); + } + + request = UnityWebRequest.Post(uri, formData); + request.method = method; + } + else if (contentType == "application/x-www-form-urlencoded") + { + var form = new WWWForm(); + foreach (var kvp in options.FormParameters) + { + form.AddField(kvp.Key, kvp.Value); + } + + request = UnityWebRequest.Post(uri, form); + request.method = method; + } + else if (options.Data != null) + { + var serializer = new CustomJsonCodec(SerializerSettings, configuration); + var jsonData = serializer.Serialize(options.Data); + + // Making a post body application/json encoded is whack with UnityWebRequest. + // See: https://stackoverflow.com/questions/68156230/unitywebrequest-post-not-sending-body + request = UnityWebRequest.Put(uri, jsonData); + request.method = method; + request.SetRequestHeader("Content-Type", "application/json"); + } + else + { + request = new UnityWebRequest(builder.GetFullUri(), method); + } + + if (request.downloadHandler == null && typeof(T) != typeof(global::System.Object)) + { + request.downloadHandler = new DownloadHandlerBuffer(); + } + +#if UNITY_EDITOR || !UNITY_WEBGL + if (configuration.UserAgent != null) + { + request.SetRequestHeader("User-Agent", configuration.UserAgent); + } +#endif + + if (configuration.DefaultHeaders != null) + { + foreach (var headerParam in configuration.DefaultHeaders) + { + request.SetRequestHeader(headerParam.Key, headerParam.Value); + } + } + + if (options.HeaderParameters != null) + { + foreach (var headerParam in options.HeaderParameters) + { + foreach (var value in headerParam.Value) + { + // Todo make content headers actually content headers + request.SetRequestHeader(headerParam.Key, value); + } + } + } + + if (options.Cookies != null && options.Cookies.Count > 0) + { + #if UNITY_WEBGL + throw new System.InvalidOperationException("UnityWebRequest does not support setting cookies in WebGL"); + #else + if (options.Cookies.Count != 1) + { + UnityEngine.Debug.LogError("Only one cookie supported, ignoring others"); + } + + request.SetRequestHeader("Cookie", options.Cookies[0].ToString()); + #endif + } + + return request; + + } + + partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration); + partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData); + + private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) + { + T result = (T) responseData; + + var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap(), result, request.downloadHandler?.text ?? "") + { + ErrorText = request.error, + Cookies = new List() + }; + + // process response headers, e.g. Access-Control-Allow-Methods + var responseHeaders = request.GetResponseHeaders(); + if (responseHeaders != null) + { + foreach (var responseHeader in request.GetResponseHeaders()) + { + transformed.Headers.Add(responseHeader.Key, ClientUtils.ParameterToString(responseHeader.Value)); + } + } + + return transformed; + } + + private async Task> ExecAsync( + UnityWebRequest request, + string path, + RequestOptions options, + IReadableConfiguration configuration, + System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var deserializer = new CustomJsonCodec(SerializerSettings, configuration); + + using (request) + { + if (configuration.Timeout > 0) + { + request.timeout = (int)Math.Ceiling(configuration.Timeout / 1000.0f); + } + + if (configuration.Proxy != null) + { + throw new InvalidOperationException("Configuration `Proxy` not supported by UnityWebRequest"); + } + + if (configuration.ClientCertificates != null) + { + // Only Android/iOS/tvOS/Standalone players can support certificates, and this + // implementation is intended to work on all platforms. + // + // TODO: Could optionally allow support for this on these platforms. + // + // See: https://docs.unity3d.com/ScriptReference/Networking.CertificateHandler.html + throw new InvalidOperationException("Configuration `ClientCertificates` not supported by UnityWebRequest on all platforms"); + } + + InterceptRequest(request, path, options, configuration); + + var asyncOp = request.SendWebRequest(); + + TaskCompletionSource tsc = new TaskCompletionSource(); + asyncOp.completed += (_) => tsc.TrySetResult(request.result); + + using (var tokenRegistration = cancellationToken.Register(request.Abort, true)) + { + await tsc.Task; + } + + if (request.result == UnityWebRequest.Result.ConnectionError || + request.result == UnityWebRequest.Result.DataProcessingError) + { + throw new ConnectionException(request); + } + + object responseData = deserializer.Deserialize(request); + + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(Immutable.Api.ZkEvm.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + { + responseData = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); + } + else if (typeof(T).Name == "Stream") // for binary response + { + responseData = (T) (object) new MemoryStream(request.downloadHandler.data); + } + + InterceptResponse(request, path, options, configuration, ref responseData); + + return ToApiResponse(request, responseData); + } + } + + #region IAsynchronousClient + /// + /// Make a HTTP GET request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("GET", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP POST request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("POST", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP PUT request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("PUT", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP DELETE request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("DELETE", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP HEAD request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("HEAD", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP OPTION request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("OPTIONS", path, options, config), path, options, config, cancellationToken); + } + + /// + /// Make a HTTP PATCH request (async). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// Token that enables callers to cancel the request. + /// A Task containing ApiResponse + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + var config = configuration ?? GlobalConfiguration.Instance; + return ExecAsync(NewRequest("PATCH", path, options, config), path, options, config, cancellationToken); + } + #endregion IAsynchronousClient + + #region ISynchronousClient + /// + /// Make a HTTP GET request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP POST request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP PUT request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP DELETE request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP HEAD request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP OPTION request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + + /// + /// Make a HTTP PATCH request (synchronous). + /// + /// The target path (or resource). + /// The additional request options. + /// A per-request configuration object. It is assumed that any merge with + /// GlobalConfiguration has been done before calling this method. + /// A Task containing ApiResponse + public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) + { + throw new System.NotImplementedException("UnityWebRequest does not support synchronous operation"); + } + #endregion ISynchronousClient + } +} \ No newline at end of file diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs.meta new file mode 100644 index 00000000..130d114d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ApiClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa2914019608c401492267f813766209 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs b/src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs new file mode 100644 index 00000000..b1fa2e8e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs @@ -0,0 +1,69 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// API Exception + /// + public class ApiException : Exception + { + /// + /// Gets or sets the error code (HTTP status code) + /// + /// The error code (HTTP status code). + public int ErrorCode { get; set; } + + /// + /// Gets or sets the error content (body json object) + /// + /// The error content (Http response body). + public object ErrorContent { get; private set; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public ApiException() { } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + public ApiException(int errorCode, string message) : base(message) + { + this.ErrorCode = errorCode; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Error message. + /// Error content. + /// HTTP Headers. + public ApiException(int errorCode, string message, object errorContent = null, Multimap headers = null) : base(message) + { + this.ErrorCode = errorCode; + this.ErrorContent = errorContent; + this.Headers = headers; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs.meta new file mode 100644 index 00000000..94a6cad5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ApiException.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 830083c91696e418ba4e657e479deddd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs b/src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs new file mode 100644 index 00000000..6951b447 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs @@ -0,0 +1,167 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Net; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Provides a non-generic contract for the ApiResponse wrapper. + /// + public interface IApiResponse + { + /// + /// The data type of + /// + Type ResponseType { get; } + + /// + /// The content of this response + /// + Object Content { get; } + + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + HttpStatusCode StatusCode { get; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + Multimap Headers { get; } + + /// + /// Gets or sets any error text defined by the calling client. + /// + string ErrorText { get; set; } + + /// + /// Gets or sets any cookies passed along on the response. + /// + List Cookies { get; set; } + + /// + /// The raw content of this response + /// + string RawContent { get; } + } + + /// + /// API Response + /// + public class ApiResponse : IApiResponse + { + #region Properties + + /// + /// Gets or sets the status code (HTTP status code) + /// + /// The status code. + public HttpStatusCode StatusCode { get; } + + /// + /// Gets or sets the HTTP headers + /// + /// HTTP headers + public Multimap Headers { get; } + + /// + /// Gets or sets the data (parsed HTTP body) + /// + /// The data. + public T Data { get; } + + /// + /// Gets or sets any error text defined by the calling client. + /// + public string ErrorText { get; set; } + + /// + /// Gets or sets any cookies passed along on the response. + /// + public List Cookies { get; set; } + + /// + /// The content of this response + /// + public Type ResponseType + { + get { return typeof(T); } + } + + /// + /// The data type of + /// + public object Content + { + get { return Data; } + } + + /// + /// The raw content + /// + public string RawContent { get; } + + #endregion Properties + + #region Constructors + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + /// Raw content. + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data, string rawContent) + { + StatusCode = statusCode; + Headers = headers; + Data = data; + RawContent = rawContent; + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// HTTP headers. + /// Data (parsed HTTP body) + public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, headers, data, null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Data (parsed HTTP body) + /// Raw content. + public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, rawContent) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// HTTP status code. + /// Data (parsed HTTP body) + public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, null) + { + } + + #endregion Constructors + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs.meta new file mode 100644 index 00000000..14264b49 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ApiResponse.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fcbe390f352f14a7aa65eb3c2f7234ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs b/src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs new file mode 100644 index 00000000..d1d752c7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs @@ -0,0 +1,248 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Utility functions providing some benefit to API client consumers. + /// + public static class ClientUtils + { + /// + /// Sanitize filename by removing the path + /// + /// Filename + /// Filename + public static string SanitizeFilename(string filename) + { + Match match = Regex.Match(filename, @".*[/\\](.*)$"); + return match.Success ? match.Groups[1].Value : filename; + } + + /// + /// Convert params to key/value pairs. + /// Use collectionFormat to properly format lists and collections. + /// + /// The swagger-supported collection format, one of: csv, tsv, ssv, pipes, multi + /// Key name. + /// Value object. + /// A multimap of keys with 1..n associated values. + public static Multimap ParameterToMultiMap(string collectionFormat, string name, object value) + { + var parameters = new Multimap(); + + if (value is ICollection collection && collectionFormat == "multi") + { + foreach (var item in collection) + { + parameters.Add(name, ParameterToString(item)); + } + } + else if (value is IDictionary dictionary) + { + if(collectionFormat == "deepObject") { + foreach (DictionaryEntry entry in dictionary) + { + parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); + } + } + else { + foreach (DictionaryEntry entry in dictionary) + { + parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); + } + } + } + else + { + parameters.Add(name, ParameterToString(value)); + } + + return parameters; + } + + /// + /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. + /// If parameter is a list, join the list with ",". + /// Otherwise just return the string. + /// + /// The parameter (header, path, query, form). + /// An optional configuration instance, providing formatting options used in processing. + /// Formatted string. + public static string ParameterToString(object obj, IReadableConfiguration configuration = null) + { + if (obj is DateTime dateTime) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is DateTimeOffset dateTimeOffset) + // Return a formatted date string - Can be customized with Configuration.DateTimeFormat + // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") + // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 + // For example: 2009-06-15T13:45:30.0000000 + return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); + if (obj is bool boolean) + return boolean ? "true" : "false"; + if (obj is ICollection collection) { + List entries = new List(); + foreach (var entry in collection) + entries.Add(ParameterToString(entry, configuration)); + return string.Join(",", entries); + } + if (obj is Enum && HasEnumMemberAttrValue(obj)) + return GetEnumMemberAttrValue(obj); + + return Convert.ToString(obj, CultureInfo.InvariantCulture); + } + + /// + /// Serializes the given object when not null. Otherwise return null. + /// + /// The object to serialize. + /// Serialized string. + public static string Serialize(object obj) + { + return obj != null ? Newtonsoft.Json.JsonConvert.SerializeObject(obj) : null; + } + + /// + /// Encode string in base64 format. + /// + /// string to be encoded. + /// Encoded string. + public static string Base64Encode(string text) + { + return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text)); + } + + /// + /// Convert stream to byte array + /// + /// Input stream to be converted + /// Byte array + public static byte[] ReadAsBytes(Stream inputStream) + { + using (var ms = new MemoryStream()) + { + inputStream.CopyTo(ms); + return ms.ToArray(); + } + } + + /// + /// Select the Content-Type header's value from the given content-type array: + /// if JSON type exists in the given array, use it; + /// otherwise use the first one defined in 'consumes' + /// + /// The Content-Type array to select from. + /// The Content-Type header to use. + public static string SelectHeaderContentType(string[] contentTypes) + { + if (contentTypes.Length == 0) + return null; + + foreach (var contentType in contentTypes) + { + if (IsJsonMime(contentType)) + return contentType; + } + + return contentTypes[0]; // use the first content type specified in 'consumes' + } + + /// + /// Select the Accept header's value from the given accepts array: + /// if JSON exists in the given array, use it; + /// otherwise use all of them (joining into a string) + /// + /// The accepts array to select from. + /// The Accept header to use. + public static string SelectHeaderAccept(string[] accepts) + { + if (accepts.Length == 0) + return null; + + if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) + return "application/json"; + + return string.Join(",", accepts); + } + + /// + /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. + /// + public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + + /// + /// Check if the given MIME is a JSON MIME. + /// JSON MIME examples: + /// application/json + /// application/json; charset=UTF8 + /// APPLICATION/JSON + /// application/vnd.company+json + /// + /// MIME + /// Returns True if MIME type is json. + public static bool IsJsonMime(string mime) + { + if (string.IsNullOrWhiteSpace(mime)) return false; + + return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); + } + + /// + /// Is the Enum decorated with EnumMember Attribute + /// + /// + /// true if found + private static bool HasEnumMemberAttrValue(object enumVal) + { + if (enumVal == null) + throw new ArgumentNullException(nameof(enumVal)); + var enumType = enumVal.GetType(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) return true; + return false; + } + + /// + /// Get the EnumMember value + /// + /// + /// EnumMember value as string otherwise null + private static string GetEnumMemberAttrValue(object enumVal) + { + if (enumVal == null) + throw new ArgumentNullException(nameof(enumVal)); + var enumType = enumVal.GetType(); + var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); + var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); + if (attr != null) + { + return attr.Value; + } + return null; + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs.meta new file mode 100644 index 00000000..ca3b698a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ClientUtils.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53c148dc82aa4460093c8eb67035f8d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs b/src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs new file mode 100644 index 00000000..31d9acca --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs @@ -0,0 +1,613 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Net.Http; +using System.Net.Security; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Represents a set of configuration settings + /// + public class Configuration : IReadableConfiguration + { + #region Constants + + /// + /// Version of the package. + /// + /// Version of the package. + public const string Version = "1.0.0"; + + /// + /// Identifier for ISO 8601 DateTime Format + /// + /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. + // ReSharper disable once InconsistentNaming + public const string ISO8601_DATETIME_FORMAT = "o"; + + #endregion Constants + + #region Static Members + + /// + /// Default creation of exceptions for a given method name and response object + /// + public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => + { + var status = (int)response.StatusCode; + if (status >= 400) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.RawContent), + response.RawContent, response.Headers); + } + if (status == 0) + { + return new ApiException(status, + string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText); + } + return null; + }; + + #endregion Static Members + + #region Private Members + + /// + /// Defines the base path of the target API server. + /// Example: http://localhost:3000/v1/ + /// + private string _basePath; + + private bool _useDefaultCredentials = false; + + /// + /// Gets or sets the API key based on the authentication name. + /// This is the key and value comprising the "secret" for accessing an API. + /// + /// The API key. + private IDictionary _apiKey; + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// The prefix of the API key. + private IDictionary _apiKeyPrefix; + + private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; + private string _tempFolderPath = Path.GetTempPath(); + + /// + /// Gets or sets the servers defined in the OpenAPI spec. + /// + /// The servers + private IList> _servers; + + /// + /// Gets or sets the operation servers defined in the OpenAPI spec. + /// + /// The operation servers + private IReadOnlyDictionary>> _operationServers; + + #endregion Private Members + + #region Constructors + + /// + /// Initializes a new instance of the class + /// + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + public Configuration() + { + Proxy = null; + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp"); + BasePath = "https://api.sandbox.immutable.com"; + DefaultHeaders = new ConcurrentDictionary(); + ApiKey = new ConcurrentDictionary(); + ApiKeyPrefix = new ConcurrentDictionary(); + Servers = new List>() + { + { + new Dictionary { + {"url", "https://api.sandbox.immutable.com"}, + {"description", "No description provided"}, + } + } + }; + OperationServers = new Dictionary>>() + { + }; + + // Setting Timeout has side effects (forces ApiClient creation). + Timeout = 100000; + } + + /// + /// Initializes a new instance of the class + /// + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] + public Configuration( + IDictionary defaultHeaders, + IDictionary apiKey, + IDictionary apiKeyPrefix, + string basePath = "https://api.sandbox.immutable.com") : this() + { + if (string.IsNullOrWhiteSpace(basePath)) + throw new ArgumentException("The provided basePath is invalid.", "basePath"); + if (defaultHeaders == null) + throw new ArgumentNullException("defaultHeaders"); + if (apiKey == null) + throw new ArgumentNullException("apiKey"); + if (apiKeyPrefix == null) + throw new ArgumentNullException("apiKeyPrefix"); + + BasePath = basePath; + + foreach (var keyValuePair in defaultHeaders) + { + DefaultHeaders.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKey) + { + ApiKey.Add(keyValuePair); + } + + foreach (var keyValuePair in apiKeyPrefix) + { + ApiKeyPrefix.Add(keyValuePair); + } + } + + #endregion Constructors + + #region Properties + + /// + /// Gets or sets the base path for API access. + /// + public virtual string BasePath + { + get { return _basePath; } + set { _basePath = value; } + } + + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + public virtual bool UseDefaultCredentials + { + get { return _useDefaultCredentials; } + set { _useDefaultCredentials = value; } + } + + /// + /// Gets or sets the default header. + /// + [Obsolete("Use DefaultHeaders instead.")] + public virtual IDictionary DefaultHeader + { + get + { + return DefaultHeaders; + } + set + { + DefaultHeaders = value; + } + } + + /// + /// Gets or sets the default headers. + /// + public virtual IDictionary DefaultHeaders { get; set; } + + /// + /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. + /// + public virtual int Timeout { get; set; } + + /// + /// Gets or sets the proxy + /// + /// Proxy. + public virtual WebProxy Proxy { get; set; } + + /// + /// Gets or sets the HTTP user agent. + /// + /// Http user agent. + public virtual string UserAgent { get; set; } + + /// + /// Gets or sets the username (HTTP basic authentication). + /// + /// The username. + public virtual string Username { get; set; } + + /// + /// Gets or sets the password (HTTP basic authentication). + /// + /// The password. + public virtual string Password { get; set; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + public string GetApiKeyWithPrefix(string apiKeyIdentifier) + { + string apiKeyValue; + ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue); + string apiKeyPrefix; + if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) + { + return apiKeyPrefix + " " + apiKeyValue; + } + + return apiKeyValue; + } + + /// + /// Gets or sets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + public X509CertificateCollection ClientCertificates { get; set; } + + /// + /// Gets or sets the access token for OAuth2 authentication. + /// + /// This helper property simplifies code generation. + /// + /// The access token. + public virtual string AccessToken { get; set; } + + /// + /// Gets or sets the temporary folder path to store the files downloaded from the server. + /// + /// Folder path. + public virtual string TempFolderPath + { + get { return _tempFolderPath; } + + set + { + if (string.IsNullOrEmpty(value)) + { + _tempFolderPath = Path.GetTempPath(); + return; + } + + // create the directory if it does not exist + if (!Directory.Exists(value)) + { + Directory.CreateDirectory(value); + } + + // check if the path contains directory separator at the end + if (value[value.Length - 1] == Path.DirectorySeparatorChar) + { + _tempFolderPath = value; + } + else + { + _tempFolderPath = value + Path.DirectorySeparatorChar; + } + } + } + + /// + /// Gets or sets the date time format used when serializing in the ApiClient + /// By default, it's set to ISO 8601 - "o", for others see: + /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx + /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx + /// No validation is done to ensure that the string you're providing is valid + /// + /// The DateTimeFormat string + public virtual string DateTimeFormat + { + get { return _dateTimeFormat; } + set + { + if (string.IsNullOrEmpty(value)) + { + // Never allow a blank or null string, go back to the default + _dateTimeFormat = ISO8601_DATETIME_FORMAT; + return; + } + + // Caution, no validation when you choose date time format other than ISO 8601 + // Take a look at the above links + _dateTimeFormat = value; + } + } + + /// + /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. + /// + /// Whatever you set here will be prepended to the value defined in AddApiKey. + /// + /// An example invocation here might be: + /// + /// ApiKeyPrefix["Authorization"] = "Bearer"; + /// + /// … where ApiKey["Authorization"] would then be used to set the value of your bearer token. + /// + /// + /// OAuth2 workflows should set tokens via AccessToken. + /// + /// + /// The prefix of the API key. + public virtual IDictionary ApiKeyPrefix + { + get { return _apiKeyPrefix; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); + } + _apiKeyPrefix = value; + } + } + + /// + /// Gets or sets the API key based on the authentication name. + /// + /// The API key. + public virtual IDictionary ApiKey + { + get { return _apiKey; } + set + { + if (value == null) + { + throw new InvalidOperationException("ApiKey collection may not be null."); + } + _apiKey = value; + } + } + + /// + /// Gets or sets the servers. + /// + /// The servers. + public virtual IList> Servers + { + get { return _servers; } + set + { + if (value == null) + { + throw new InvalidOperationException("Servers may not be null."); + } + _servers = value; + } + } + + /// + /// Gets or sets the operation servers. + /// + /// The operation servers. + public virtual IReadOnlyDictionary>> OperationServers + { + get { return _operationServers; } + set + { + if (value == null) + { + throw new InvalidOperationException("Operation servers may not be null."); + } + _operationServers = value; + } + } + + /// + /// Returns URL based on server settings without providing values + /// for the variables + /// + /// Array index of the server settings. + /// The server URL. + public string GetServerUrl(int index) + { + return GetServerUrl(Servers, index, null); + } + + /// + /// Returns URL based on server settings. + /// + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The server URL. + public string GetServerUrl(int index, Dictionary inputVariables) + { + return GetServerUrl(Servers, index, inputVariables); + } + + /// + /// Returns URL based on operation server settings. + /// + /// Operation associated with the request path. + /// Array index of the server settings. + /// The operation server URL. + public string GetOperationServerUrl(string operation, int index) + { + return GetOperationServerUrl(operation, index, null); + } + + /// + /// Returns URL based on operation server settings. + /// + /// Operation associated with the request path. + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The operation server URL. + public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) + { + if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) + { + return GetServerUrl(operationServer, index, inputVariables); + } + + return null; + } + + /// + /// Returns URL based on server settings. + /// + /// Dictionary of server settings. + /// Array index of the server settings. + /// Dictionary of the variables and the corresponding values. + /// The server URL. + private string GetServerUrl(IList> servers, int index, Dictionary inputVariables) + { + if (index < 0 || index >= servers.Count) + { + throw new InvalidOperationException($"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); + } + + if (inputVariables == null) + { + inputVariables = new Dictionary(); + } + + IReadOnlyDictionary server = servers[index]; + string url = (string)server["url"]; + + if (server.ContainsKey("variables")) + { + // go through each variable and assign a value + foreach (KeyValuePair variable in (IReadOnlyDictionary)server["variables"]) + { + + IReadOnlyDictionary serverVariables = (IReadOnlyDictionary)(variable.Value); + + if (inputVariables.ContainsKey(variable.Key)) + { + if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) + { + url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); + } + else + { + throw new InvalidOperationException($"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); + } + } + else + { + // use default value + url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); + } + } + } + + return url; + } + + /// + /// Gets and Sets the RemoteCertificateValidationCallback + /// + public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; } + + #endregion Properties + + #region Methods + + /// + /// Returns a string with essential information for debugging. + /// + public static string ToDebugReport() + { + string report = "C# SDK (Immutable.Api.ZkEvm) Debug Report:\n"; + report += " OS: " + System.Environment.OSVersion + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " Version of the API: 1.0.0\n"; + report += " SDK Package Version: 1.0.0\n"; + + return report; + } + + /// + /// Add Api Key Header. + /// + /// Api Key name. + /// Api Key value. + /// + public void AddApiKey(string key, string value) + { + ApiKey[key] = value; + } + + /// + /// Sets the API key prefix. + /// + /// Api Key name. + /// Api Key value. + public void AddApiKeyPrefix(string key, string value) + { + ApiKeyPrefix[key] = value; + } + + #endregion Methods + + #region Static Members + /// + /// Merge configurations. + /// + /// First configuration. + /// Second configuration. + /// Merged configuration. + public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, IReadableConfiguration second) + { + if (second == null) return first ?? GlobalConfiguration.Instance; + + Dictionary apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + Dictionary defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); + + foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; + foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; + foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; + + var config = new Configuration + { + ApiKey = apiKey, + ApiKeyPrefix = apiKeyPrefix, + DefaultHeaders = defaultHeaders, + BasePath = second.BasePath ?? first.BasePath, + Timeout = second.Timeout, + Proxy = second.Proxy ?? first.Proxy, + UserAgent = second.UserAgent ?? first.UserAgent, + Username = second.Username ?? first.Username, + Password = second.Password ?? first.Password, + AccessToken = second.AccessToken ?? first.AccessToken, + TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, + UseDefaultCredentials = second.UseDefaultCredentials, + RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback, + }; + return config; + } + #endregion Static Members + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs.meta new file mode 100644 index 00000000..e838e37c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/Configuration.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b10fbe579400746d8b665e67c2d845f7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs b/src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs new file mode 100644 index 00000000..41f301f4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs @@ -0,0 +1,30 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using UnityEngine.Networking; + +namespace Immutable.Api.ZkEvm.Client +{ + public class ConnectionException : Exception + { + public UnityWebRequest.Result Result { get; private set; } + public string Error { get; private set; } + + // NOTE: Cannot keep reference to the request since it will be disposed. + public ConnectionException(UnityWebRequest request) + : base($"result={request.result} error={request.error}") + { + Result = request.result; + Error = request.error ?? ""; + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs.meta new file mode 100644 index 00000000..5aabc24d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ConnectionException.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cf38e4e2b26e543188de382ac636970d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs b/src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs new file mode 100644 index 00000000..26da76f2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs @@ -0,0 +1,23 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// A delegate to ExceptionFactory method + /// + /// Method name + /// Response + /// Exceptions + public delegate Exception ExceptionFactory(string methodName, IApiResponse response); +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs.meta new file mode 100644 index 00000000..2f9d6cef --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ExceptionFactory.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f9381174fdff34d0b94a550b8e0aaf27 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs b/src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs new file mode 100644 index 00000000..69532573 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs @@ -0,0 +1,68 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System.Collections.Generic; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// provides a compile-time extension point for globally configuring + /// API Clients. + /// + /// + /// A customized implementation via partial class may reside in another file and may + /// be excluded from automatic generation via a .openapi-generator-ignore file. + /// + public partial class GlobalConfiguration : Configuration + { + #region Private Members + + private static readonly object GlobalConfigSync = new { }; + private static IReadableConfiguration _globalConfiguration; + + #endregion Private Members + + #region Constructors + + /// + private GlobalConfiguration() + { + } + + /// + public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base(defaultHeader, apiKey, apiKeyPrefix, basePath) + { + } + + static GlobalConfiguration() + { + Instance = new GlobalConfiguration(); + } + + #endregion Constructors + + /// + /// Gets or sets the default Configuration. + /// + /// Configuration. + public static IReadableConfiguration Instance + { + get { return _globalConfiguration; } + set + { + lock (GlobalConfigSync) + { + _globalConfiguration = value; + } + } + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs.meta new file mode 100644 index 00000000..6fd60e67 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/GlobalConfiguration.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2368f96d181054f7abc6670c3fa8a500 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs b/src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs new file mode 100644 index 00000000..98df13fb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs @@ -0,0 +1,38 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Represents configuration aspects required to interact with the API endpoints. + /// + public interface IApiAccessor + { + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + IReadableConfiguration Configuration { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + string GetBasePath(); + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + ExceptionFactory ExceptionFactory { get; set; } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs.meta new file mode 100644 index 00000000..1acb864c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/IApiAccessor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 426e2dba9a1b040f08c198a26ad17ef7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs b/src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs new file mode 100644 index 00000000..3ee9945a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Threading.Tasks; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Contract for Asynchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. + /// + public interface IAsynchronousClient + { + /// + /// Executes a non-blocking call to some using the GET http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the POST http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the PUT http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the DELETE http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the HEAD http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the OPTIONS http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + + /// + /// Executes a non-blocking call to some using the PATCH http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// Cancellation Token to cancel the request. + /// The return type. + /// A task eventually representing the response data, decorated with + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs.meta new file mode 100644 index 00000000..3be6b9d5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/IAsynchronousClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 57db360d629df4b5884b54b7344281db +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs b/src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs new file mode 100644 index 00000000..33c15deb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs @@ -0,0 +1,142 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Net; +using System.Net.Security; +using System.Security.Cryptography.X509Certificates; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Represents a readable-only configuration contract. + /// + public interface IReadableConfiguration + { + /// + /// Gets the access token. + /// + /// Access token. + string AccessToken { get; } + + /// + /// Gets the API key. + /// + /// API key. + IDictionary ApiKey { get; } + + /// + /// Gets the API key prefix. + /// + /// API key prefix. + IDictionary ApiKeyPrefix { get; } + + /// + /// Gets the base path. + /// + /// Base path. + string BasePath { get; } + + /// + /// Gets the date time format. + /// + /// Date time format. + string DateTimeFormat { get; } + + /// + /// Gets the default header. + /// + /// Default header. + [Obsolete("Use DefaultHeaders instead.")] + IDictionary DefaultHeader { get; } + + /// + /// Gets the default headers. + /// + /// Default headers. + IDictionary DefaultHeaders { get; } + + /// + /// Gets the temp folder path. + /// + /// Temp folder path. + string TempFolderPath { get; } + + /// + /// Gets the HTTP connection timeout (in milliseconds) + /// + /// HTTP connection timeout. + int Timeout { get; } + + /// + /// Gets the proxy. + /// + /// Proxy. + WebProxy Proxy { get; } + + /// + /// Gets the user agent. + /// + /// User agent. + string UserAgent { get; } + + /// + /// Gets the username. + /// + /// Username. + string Username { get; } + + /// + /// Gets the password. + /// + /// Password. + string Password { get; } + + /// + /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false. + /// + bool UseDefaultCredentials { get; } + + /// + /// Get the servers associated with the operation. + /// + /// Operation servers. + IReadOnlyDictionary>> OperationServers { get; } + + /// + /// Gets the API key with prefix. + /// + /// API key identifier (authentication scheme). + /// API key with prefix. + string GetApiKeyWithPrefix(string apiKeyIdentifier); + + /// + /// Gets the Operation server url at the provided index. + /// + /// Operation server name. + /// Index of the operation server settings. + /// + string GetOperationServerUrl(string operation, int index); + + /// + /// Gets certificate collection to be sent with requests. + /// + /// X509 Certificate collection. + X509CertificateCollection ClientCertificates { get; } + + /// + /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and + /// overriding certificate errors in the scope of a request. + /// + RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs.meta new file mode 100644 index 00000000..6a99ba76 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/IReadableConfiguration.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 983f60d6370eb4e38bda4ca8dc616a1d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs b/src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs new file mode 100644 index 00000000..6e66411b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs @@ -0,0 +1,94 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.IO; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Contract for Synchronous RESTful API interactions. + /// + /// This interface allows consumers to provide a custom API accessor client. + /// + public interface ISynchronousClient + { + /// + /// Executes a blocking call to some using the GET http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the POST http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the PUT http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the DELETE http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the HEAD http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the OPTIONS http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); + + /// + /// Executes a blocking call to some using the PATCH http verb. + /// + /// The relative path to invoke. + /// The request parameters to pass along to the client. + /// Per-request configurable settings. + /// The return type. + /// The response data, decorated with + ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs.meta new file mode 100644 index 00000000..95299672 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/ISynchronousClient.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b2f905c3d18bb48f69e71de74c525558 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs b/src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs new file mode 100644 index 00000000..f89eb91c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs @@ -0,0 +1,296 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// A dictionary in which one key has many associated values. + /// + /// The type of the key + /// The type of the value associated with the key. + public class Multimap : IDictionary> + { + #region Private Fields + + private readonly Dictionary> _dictionary; + + #endregion Private Fields + + #region Constructors + + /// + /// Empty Constructor. + /// + public Multimap() + { + _dictionary = new Dictionary>(); + } + + /// + /// Constructor with comparer. + /// + /// + public Multimap(IEqualityComparer comparer) + { + _dictionary = new Dictionary>(comparer); + } + + #endregion Constructors + + #region Enumerators + + /// + /// To get the enumerator. + /// + /// Enumerator + public IEnumerator>> GetEnumerator() + { + return _dictionary.GetEnumerator(); + } + + /// + /// To get the enumerator. + /// + /// Enumerator + IEnumerator IEnumerable.GetEnumerator() + { + return _dictionary.GetEnumerator(); + } + + #endregion Enumerators + + #region Public Members + /// + /// Add values to Multimap + /// + /// Key value pair + public void Add(KeyValuePair> item) + { + if (!TryAdd(item.Key, item.Value)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + + /// + /// Add Multimap to Multimap + /// + /// Multimap + public void Add(Multimap multimap) + { + foreach (var item in multimap) + { + if (!TryAdd(item.Key, item.Value)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + } + + /// + /// Clear Multimap + /// + public void Clear() + { + _dictionary.Clear(); + } + + /// + /// Determines whether Multimap contains the specified item. + /// + /// Key value pair + /// Method needs to be implemented + /// true if the Multimap contains the item; otherwise, false. + public bool Contains(KeyValuePair> item) + { + throw new NotImplementedException(); + } + + /// + /// Copy items of the Multimap to an array, + /// starting at a particular array index. + /// + /// The array that is the destination of the items copied + /// from Multimap. The array must have zero-based indexing. + /// The zero-based index in array at which copying begins. + /// Method needs to be implemented + public void CopyTo(KeyValuePair>[] array, int arrayIndex) + { + throw new NotImplementedException(); + } + + /// + /// Removes the specified item from the Multimap. + /// + /// Key value pair + /// true if the item is successfully removed; otherwise, false. + /// Method needs to be implemented + public bool Remove(KeyValuePair> item) + { + throw new NotImplementedException(); + } + + /// + /// Gets the number of items contained in the Multimap. + /// + public int Count => _dictionary.Count; + + /// + /// Gets a value indicating whether the Multimap is read-only. + /// + public bool IsReadOnly => false; + + /// + /// Adds an item with the provided key and value to the Multimap. + /// + /// The object to use as the key of the item to add. + /// The object to use as the value of the item to add. + /// Thrown when couldn't add the value to Multimap. + public void Add(TKey key, IList value) + { + if (value != null && value.Count > 0) + { + if (_dictionary.TryGetValue(key, out var list)) + { + foreach (var k in value) list.Add(k); + } + else + { + list = new List(value); + if (!TryAdd(key, list)) + throw new InvalidOperationException("Could not add values to Multimap."); + } + } + } + + /// + /// Determines whether the Multimap contains an item with the specified key. + /// + /// The key to locate in the Multimap. + /// true if the Multimap contains an item with + /// the key; otherwise, false. + public bool ContainsKey(TKey key) + { + return _dictionary.ContainsKey(key); + } + + /// + /// Removes item with the specified key from the Multimap. + /// + /// The key to locate in the Multimap. + /// true if the item is successfully removed; otherwise, false. + public bool Remove(TKey key) + { + return TryRemove(key, out var _); + } + + /// + /// Gets the value associated with the specified key. + /// + /// The key whose value to get. + /// When this method returns, the value associated with the specified key, if the + /// key is found; otherwise, the default value for the type of the value parameter. + /// This parameter is passed uninitialized. + /// true if the object that implements Multimap contains + /// an item with the specified key; otherwise, false. + public bool TryGetValue(TKey key, out IList value) + { + return _dictionary.TryGetValue(key, out value); + } + + /// + /// Gets or sets the item with the specified key. + /// + /// The key of the item to get or set. + /// The value of the specified key. + public IList this[TKey key] + { + get => _dictionary[key]; + set => _dictionary[key] = value; + } + + /// + /// Gets a System.Collections.Generic.ICollection containing the keys of the Multimap. + /// + public ICollection Keys => _dictionary.Keys; + + /// + /// Gets a System.Collections.Generic.ICollection containing the values of the Multimap. + /// + public ICollection> Values => _dictionary.Values; + + /// + /// Copy the items of the Multimap to an System.Array, + /// starting at a particular System.Array index. + /// + /// The one-dimensional System.Array that is the destination of the items copied + /// from Multimap. The System.Array must have zero-based indexing. + /// The zero-based index in array at which copying begins. + public void CopyTo(Array array, int index) + { + ((ICollection)_dictionary).CopyTo(array, index); + } + + /// + /// Adds an item with the provided key and value to the Multimap. + /// + /// The object to use as the key of the item to add. + /// The object to use as the value of the item to add. + /// Thrown when couldn't add value to Multimap. + public void Add(TKey key, TValue value) + { + if (value != null) + { + if (_dictionary.TryGetValue(key, out var list)) + { + list.Add(value); + } + else + { + list = new List { value }; + if (!TryAdd(key, list)) + throw new InvalidOperationException("Could not add value to Multimap."); + } + } + } + + #endregion Public Members + + #region Private Members + + /** + * Helper method to encapsulate generator differences between dictionary types. + */ + private bool TryRemove(TKey key, out IList value) + { + _dictionary.TryGetValue(key, out value); + return _dictionary.Remove(key); + } + + /** + * Helper method to encapsulate generator differences between dictionary types. + */ + private bool TryAdd(TKey key, IList value) + { + try + { + _dictionary.Add(key, value); + } + catch (ArgumentException) + { + return false; + } + + return true; + } + #endregion Private Members + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs.meta new file mode 100644 index 00000000..553e5e54 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/Multimap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0c17aa967720a47d38567bbb4c979573 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs b/src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs new file mode 100644 index 00000000..15d1f230 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs @@ -0,0 +1,30 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using Newtonsoft.Json.Converters; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 + /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types + /// + public class OpenAPIDateConverter : IsoDateTimeConverter + { + /// + /// Initializes a new instance of the class. + /// + public OpenAPIDateConverter() + { + // full-date = date-fullyear "-" date-month "-" date-mday + DateTimeFormat = "yyyy-MM-dd"; + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs.meta new file mode 100644 index 00000000..2766cd57 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/OpenAPIDateConverter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f903ce394b884ead8e9913330153235 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs b/src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs new file mode 100644 index 00000000..19561bfe --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs @@ -0,0 +1,69 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// A container for generalized request inputs. This type allows consumers to extend the request functionality + /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). + /// + public class RequestOptions + { + /// + /// Parameters to be bound to path parts of the Request's URL + /// + public Dictionary PathParameters { get; set; } + + /// + /// Query parameters to be applied to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap QueryParameters { get; set; } + + /// + /// Header parameters to be applied to to the request. + /// Keys may have 1 or more values associated. + /// + public Multimap HeaderParameters { get; set; } + + /// + /// Form parameters to be sent along with the request. + /// + public Dictionary FormParameters { get; set; } + + /// + /// Cookies to be sent along with the request. + /// + public List Cookies { get; set; } + + /// + /// Any data associated with a request body. + /// + public Object Data { get; set; } + + /// + /// Constructs a new instance of + /// + public RequestOptions() + { + PathParameters = new Dictionary(); + QueryParameters = new Multimap(); + HeaderParameters = new Multimap(); + FormParameters = new Dictionary(); + Cookies = new List(); + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs.meta new file mode 100644 index 00000000..45dec915 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/RequestOptions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1881b22f97d1b4af5b78ba40faadc63b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs b/src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs new file mode 100644 index 00000000..8792add3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs @@ -0,0 +1,35 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using UnityEngine.Networking; + +namespace Immutable.Api.ZkEvm.Client +{ + // Thrown when a backend doesn't return an expected response based on the expected type + // of the response data. + public class UnexpectedResponseException : Exception + { + public int ErrorCode { get; private set; } + + // NOTE: Cannot keep reference to the request since it will be disposed. + public UnexpectedResponseException(UnityWebRequest request, System.Type type, string extra = "") + : base(CreateMessage(request, type, extra)) + { + ErrorCode = (int)request.responseCode; + } + + private static string CreateMessage(UnityWebRequest request, System.Type type, string extra) + { + return $"httpcode={request.responseCode}, expected {type.Name} but got data: {extra}"; + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs.meta new file mode 100644 index 00000000..41bdd3da --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/UnexpectedResponseException.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f3e9a9eb71ce4f9e921d95a9f977c93 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs b/src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs new file mode 100644 index 00000000..e93f91a4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs @@ -0,0 +1,54 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Collections.Generic; + +namespace Immutable.Api.ZkEvm.Client +{ + /// + /// A URI builder + /// + class WebRequestPathBuilder + { + private string _baseUrl; + private string _path; + private string _query = "?"; + public WebRequestPathBuilder(string baseUrl, string path) + { + _baseUrl = baseUrl; + _path = path; + } + + public void AddPathParameters(Dictionary parameters) + { + foreach (var parameter in parameters) + { + _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); + } + } + + public void AddQueryParameters(Multimap parameters) + { + foreach (var parameter in parameters) + { + foreach (var value in parameter.Value) + { + _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; + } + } + } + + public string GetFullUri() + { + return _baseUrl + _path + _query.Substring(0, _query.Length - 1); + } + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs.meta b/src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs.meta new file mode 100644 index 00000000..ba66893c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Client/WebRequestPathBuilder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e28725a8e0a734b2b90cde1a63b33ed6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef b/src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef new file mode 100644 index 00000000..557c7f97 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef @@ -0,0 +1,7 @@ +{ + "name": "Immutable.Api.ZkEvm", + "overrideReferences": true, + "precompiledReferences": [ + "Newtonsoft.Json.dll" + ] +} diff --git a/src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef.meta b/src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef.meta new file mode 100644 index 00000000..92b14046 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Immutable.Api.ZkEvm.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 625e55aa94eea4f29b60bcd2c322751a +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model.meta b/src/Packages/ZkEvmApi/Runtime/Model.meta new file mode 100644 index 00000000..c9c19cd3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a4ba28a49d67f4411ad0c68c2e3c0816 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs new file mode 100644 index 00000000..a339bca8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError400 + /// + [DataContract(Name = "APIError400")] + public partial class APIError400 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum VALIDATIONERROR for value: VALIDATION_ERROR + /// + [EnumMember(Value = "VALIDATION_ERROR")] + VALIDATIONERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// VALIDATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError400() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError400(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError400 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError400 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError400 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError400 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError400 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs.meta new file mode 100644 index 00000000..b3d35f00 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError400.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 652c2076b711d48eaa7f9b4b917a2615 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs new file mode 100644 index 00000000..09eea041 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError401 + /// + [DataContract(Name = "APIError401")] + public partial class APIError401 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum UNAUTHORISEDREQUEST for value: UNAUTHORISED_REQUEST + /// + [EnumMember(Value = "UNAUTHORISED_REQUEST")] + UNAUTHORISEDREQUEST = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// UNAUTHORISED_REQUEST + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError401() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError401(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError401 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError401 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError401 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError401 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError401 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs.meta new file mode 100644 index 00000000..b5700ab2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError401.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 793068f7dff3c4f69a43a0b1bc2a6652 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs new file mode 100644 index 00000000..ca819abd --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError403 + /// + [DataContract(Name = "APIError403")] + public partial class APIError403 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum AUTHENTICATIONERROR for value: AUTHENTICATION_ERROR + /// + [EnumMember(Value = "AUTHENTICATION_ERROR")] + AUTHENTICATIONERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// AUTHENTICATION_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError403() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError403(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError403 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError403 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError403 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError403 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError403 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs.meta new file mode 100644 index 00000000..1654b000 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError403.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5d8dd9c2583ac45bb9337e7fa48a3ff4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs new file mode 100644 index 00000000..6db4e1ee --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError404 + /// + [DataContract(Name = "APIError404")] + public partial class APIError404 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum RESOURCENOTFOUND for value: RESOURCE_NOT_FOUND + /// + [EnumMember(Value = "RESOURCE_NOT_FOUND")] + RESOURCENOTFOUND = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// RESOURCE_NOT_FOUND + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError404() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError404(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError404 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError404 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError404 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError404 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError404 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs.meta new file mode 100644 index 00000000..37fde2e8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError404.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c22cbfab4e546431dba464fc182cf275 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs new file mode 100644 index 00000000..3ccf511b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError409 + /// + [DataContract(Name = "APIError409")] + public partial class APIError409 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum CONFLICTERROR for value: CONFLICT_ERROR + /// + [EnumMember(Value = "CONFLICT_ERROR")] + CONFLICTERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// CONFLICT_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError409() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError409(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Dictionary details = default(Dictionary)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError409 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError409 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError409 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError409 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Dictionary Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError409 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs.meta new file mode 100644 index 00000000..6443084b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError409.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90ad7964136bd40119236d27ea118e25 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs new file mode 100644 index 00000000..d924577c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError429 + /// + [DataContract(Name = "APIError429")] + public partial class APIError429 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum TOOMANYREQUESTSERROR for value: TOO_MANY_REQUESTS_ERROR + /// + [EnumMember(Value = "TOO_MANY_REQUESTS_ERROR")] + TOOMANYREQUESTSERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// TOO_MANY_REQUESTS_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError429() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError429(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError429 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError429 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError429 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError429 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError429 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs.meta new file mode 100644 index 00000000..1fd2ed6d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError429.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 442a7d637db8c43cc92f4cbf2dbfbf95 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs new file mode 100644 index 00000000..cca03349 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError500 + /// + [DataContract(Name = "APIError500")] + public partial class APIError500 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum INTERNALSERVERERROR for value: INTERNAL_SERVER_ERROR + /// + [EnumMember(Value = "INTERNAL_SERVER_ERROR")] + INTERNALSERVERERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// INTERNAL_SERVER_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError500() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError500(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError500 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError500 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError500 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError500 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError500 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs.meta new file mode 100644 index 00000000..632f6ed9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError500.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b8d5a36ee7b534be5bd25c79939231fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs b/src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs new file mode 100644 index 00000000..074a54be --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs @@ -0,0 +1,157 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// APIError501 + /// + [DataContract(Name = "APIError501")] + public partial class APIError501 + { + /// + /// Error Code + /// + /// Error Code + [JsonConverter(typeof(StringEnumConverter))] + public enum CodeEnum + { + /// + /// Enum NOTIMPLEMENTEDERROR for value: NOT_IMPLEMENTED_ERROR + /// + [EnumMember(Value = "NOT_IMPLEMENTED_ERROR")] + NOTIMPLEMENTEDERROR = 1 + } + + + /// + /// Error Code + /// + /// Error Code + /// NOT_IMPLEMENTED_ERROR + [DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)] + public CodeEnum Code { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected APIError501() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + /// Error Code (required). + /// Additional details to help resolve the error (required). + public APIError501(string message = default(string), string link = default(string), string traceId = default(string), CodeEnum code = default(CodeEnum), Object details = default(Object)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for APIError501 and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for APIError501 and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for APIError501 and cannot be null"); + } + this.TraceId = traceId; + this.Code = code; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for APIError501 and cannot be null"); + } + this.Details = details; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Additional details to help resolve the error + /// + /// Additional details to help resolve the error + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public Object Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class APIError501 {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs.meta new file mode 100644 index 00000000..925b1e20 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/APIError501.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d5325274e9eea4332927de72274a1110 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs b/src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs new file mode 100644 index 00000000..f6af472c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs @@ -0,0 +1,77 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using Newtonsoft.Json; +using Newtonsoft.Json.Serialization; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification + /// + public abstract partial class AbstractOpenAPISchema + { + /// + /// Custom JSON serializer + /// + static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Error, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Custom JSON serializer for objects with additional properties + /// + static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings + { + // OpenAPI generated types generally hide default constructors. + ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, + MissingMemberHandling = MissingMemberHandling.Ignore, + ContractResolver = new DefaultContractResolver + { + NamingStrategy = new CamelCaseNamingStrategy + { + OverrideSpecifiedNames = false + } + } + }; + + /// + /// Gets or Sets the actual instance + /// + public abstract Object ActualInstance { get; set; } + + /// + /// Gets or Sets IsNullable to indicate whether the instance is nullable + /// + public bool IsNullable { get; protected set; } + + /// + /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` + /// + public string SchemaType { get; protected set; } + + /// + /// Converts the instance into JSON string. + /// + public abstract string ToJson(); + } +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs.meta new file mode 100644 index 00000000..b435b186 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/AbstractOpenAPISchema.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a795db5ca0b8b482e88a912fa91afd18 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs new file mode 100644 index 00000000..c75d9acd --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs @@ -0,0 +1,93 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ActiveOrderStatus + /// + [DataContract(Name = "ActiveOrderStatus")] + public partial class ActiveOrderStatus + { + /// + /// The order status that indicates an order can be fulfilled. + /// + /// The order status that indicates an order can be fulfilled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum ACTIVE for value: ACTIVE + /// + [EnumMember(Value = "ACTIVE")] + ACTIVE = 1 + } + + + /// + /// The order status that indicates an order can be fulfilled. + /// + /// The order status that indicates an order can be fulfilled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActiveOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status that indicates an order can be fulfilled. (required). + public ActiveOrderStatus(NameEnum name = default(NameEnum)) + { + this.Name = name; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActiveOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs.meta new file mode 100644 index 00000000..aad21fc7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActiveOrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c984127334c64470caf817f071b25ee4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Activity.cs b/src/Packages/ZkEvmApi/Runtime/Model/Activity.cs new file mode 100644 index 00000000..02370e7d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Activity.cs @@ -0,0 +1,153 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Activity + /// + [DataContract(Name = "Activity")] + public partial class Activity + { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public ActivityType Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Activity() { } + /// + /// Initializes a new instance of the class. + /// + /// Activity id in UUIDv4 format (required). + /// chain (required). + /// type (required). + /// details (required). + /// The time activity was updated at (required). + /// The time activity was indexed (required). + /// blockchainMetadata (required). + public Activity(Guid id = default(Guid), Chain chain = default(Chain), ActivityType type = default(ActivityType), ActivityDetails details = default(ActivityDetails), DateTime updatedAt = default(DateTime), DateTime indexedAt = default(DateTime), BlockchainMetadata blockchainMetadata = default(BlockchainMetadata)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Activity and cannot be null"); + } + this.Chain = chain; + this.Type = type; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for Activity and cannot be null"); + } + this.Details = details; + this.UpdatedAt = updatedAt; + this.IndexedAt = indexedAt; + // to ensure "blockchainMetadata" is required (not null) + if (blockchainMetadata == null) + { + throw new ArgumentNullException("blockchainMetadata is a required property for Activity and cannot be null"); + } + this.BlockchainMetadata = blockchainMetadata; + } + + /// + /// Activity id in UUIDv4 format + /// + /// Activity id in UUIDv4 format + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public ActivityDetails Details { get; set; } + + /// + /// The time activity was updated at + /// + /// The time activity was updated at + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// The time activity was indexed + /// + /// The time activity was indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// Gets or Sets BlockchainMetadata + /// + [DataMember(Name = "blockchain_metadata", IsRequired = true, EmitDefaultValue = true)] + public BlockchainMetadata BlockchainMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Activity {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" BlockchainMetadata: ").Append(BlockchainMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Activity.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Activity.cs.meta new file mode 100644 index 00000000..cfeb019c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Activity.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c10d8ce9c266c4781ae46700acc2a1cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs new file mode 100644 index 00000000..17be242c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The contract and asset details for this activity + /// + [JsonConverter(typeof(ActivityAssetJsonConverter))] + [DataContract(Name = "ActivityAsset")] + public partial class ActivityAsset : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActivityNFT. + public ActivityAsset(ActivityNFT actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActivityToken. + public ActivityAsset(ActivityToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ActivityNFT) || value is ActivityNFT) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ActivityToken) || value is ActivityToken) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ActivityNFT, ActivityToken"); + } + } + } + + /// + /// Get the actual instance of `ActivityNFT`. If the actual instance is not `ActivityNFT`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActivityNFT + public ActivityNFT GetActivityNFT() + { + return (ActivityNFT)this.ActualInstance; + } + + /// + /// Get the actual instance of `ActivityToken`. If the actual instance is not `ActivityToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActivityToken + public ActivityToken GetActivityToken() + { + return (ActivityToken)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActivityAsset {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, ActivityAsset.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of ActivityAsset + /// + /// JSON string + /// An instance of ActivityAsset + public static ActivityAsset FromJson(string jsonString) + { + ActivityAsset newActivityAsset = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newActivityAsset; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActivityNFT).GetProperty("AdditionalProperties") == null) + { + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.SerializerSettings)); + } + else + { + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActivityNFT"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityNFT: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActivityToken).GetProperty("AdditionalProperties") == null) + { + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.SerializerSettings)); + } + else + { + newActivityAsset = new ActivityAsset(JsonConvert.DeserializeObject(jsonString, ActivityAsset.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActivityToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityToken: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newActivityAsset; + } + + } + + /// + /// Custom JSON converter for ActivityAsset + /// + public class ActivityAssetJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(ActivityAsset).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return ActivityAsset.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return ActivityAsset.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs.meta new file mode 100644 index 00000000..75d248e4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityAsset.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 32934485f677349e29aed894d7308c90 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs new file mode 100644 index 00000000..b7cd5085 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs @@ -0,0 +1,434 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The activity details + /// + [JsonConverter(typeof(ActivityDetailsJsonConverter))] + [DataContract(Name = "ActivityDetails")] + public partial class ActivityDetails : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Mint. + public ActivityDetails(Mint actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Burn. + public ActivityDetails(Burn actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Transfer. + public ActivityDetails(Transfer actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of NFTSale. + public ActivityDetails(NFTSale actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Deposit. + public ActivityDetails(Deposit actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Withdrawal. + public ActivityDetails(Withdrawal actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(Burn) || value is Burn) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Deposit) || value is Deposit) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Mint) || value is Mint) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(NFTSale) || value is NFTSale) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Transfer) || value is Transfer) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Withdrawal) || value is Withdrawal) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: Burn, Deposit, Mint, NFTSale, Transfer, Withdrawal"); + } + } + } + + /// + /// Get the actual instance of `Mint`. If the actual instance is not `Mint`, + /// the InvalidClassException will be thrown + /// + /// An instance of Mint + public Mint GetMint() + { + return (Mint)this.ActualInstance; + } + + /// + /// Get the actual instance of `Burn`. If the actual instance is not `Burn`, + /// the InvalidClassException will be thrown + /// + /// An instance of Burn + public Burn GetBurn() + { + return (Burn)this.ActualInstance; + } + + /// + /// Get the actual instance of `Transfer`. If the actual instance is not `Transfer`, + /// the InvalidClassException will be thrown + /// + /// An instance of Transfer + public Transfer GetTransfer() + { + return (Transfer)this.ActualInstance; + } + + /// + /// Get the actual instance of `NFTSale`. If the actual instance is not `NFTSale`, + /// the InvalidClassException will be thrown + /// + /// An instance of NFTSale + public NFTSale GetNFTSale() + { + return (NFTSale)this.ActualInstance; + } + + /// + /// Get the actual instance of `Deposit`. If the actual instance is not `Deposit`, + /// the InvalidClassException will be thrown + /// + /// An instance of Deposit + public Deposit GetDeposit() + { + return (Deposit)this.ActualInstance; + } + + /// + /// Get the actual instance of `Withdrawal`. If the actual instance is not `Withdrawal`, + /// the InvalidClassException will be thrown + /// + /// An instance of Withdrawal + public Withdrawal GetWithdrawal() + { + return (Withdrawal)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ActivityDetails {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, ActivityDetails.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of ActivityDetails + /// + /// JSON string + /// An instance of ActivityDetails + public static ActivityDetails FromJson(string jsonString) + { + ActivityDetails newActivityDetails = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newActivityDetails; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Burn).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Burn"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Burn: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Deposit).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Deposit"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Deposit: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Mint).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Mint"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Mint: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(NFTSale).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("NFTSale"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into NFTSale: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Transfer).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Transfer"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Transfer: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Withdrawal).GetProperty("AdditionalProperties") == null) + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.SerializerSettings)); + } + else + { + newActivityDetails = new ActivityDetails(JsonConvert.DeserializeObject(jsonString, ActivityDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Withdrawal"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Withdrawal: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newActivityDetails; + } + + } + + /// + /// Custom JSON converter for ActivityDetails + /// + public class ActivityDetailsJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(ActivityDetails).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return ActivityDetails.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return ActivityDetails.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs.meta new file mode 100644 index 00000000..72b9d34e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityDetails.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa622eed103f749d6802a95193f4b389 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs new file mode 100644 index 00000000..b1a318aa --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs @@ -0,0 +1,127 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ActivityNFT + /// + [DataContract(Name = "ActivityNFT")] + public partial class ActivityNFT + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public NFTContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActivityNFT() { } + /// + /// Initializes a new instance of the class. + /// + /// contractType (required). + /// The token contract address (required). + /// An `uint256` token id as string (required). + /// (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged (required). + public ActivityNFT(NFTContractType contractType = default(NFTContractType), string contractAddress = default(string), string tokenId = default(string), string amount = default(string)) + { + this.ContractType = contractType; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ActivityNFT and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for ActivityNFT and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ActivityNFT and cannot be null"); + } + this.Amount = amount; + } + + /// + /// The token contract address + /// + /// The token contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged + /// + /// (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + [Obsolete] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActivityNFT {\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs.meta new file mode 100644 index 00000000..06e3b2b7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNFT.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5be4b032a4f80447b9201be6b89203cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs new file mode 100644 index 00000000..14653537 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs @@ -0,0 +1,85 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ActivityNativeToken + /// + [DataContract(Name = "ActivityNativeToken")] + public partial class ActivityNativeToken + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActivityNativeToken() { } + /// + /// Initializes a new instance of the class. + /// + /// The token symbol (required). + public ActivityNativeToken(string symbol = default(string)) + { + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for ActivityNativeToken and cannot be null"); + } + this.Symbol = symbol; + } + + /// + /// The token symbol + /// + /// The token symbol + /// ETH + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActivityNativeToken {\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs.meta new file mode 100644 index 00000000..56b49332 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityNativeToken.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e15310a4c680f4436a9f05f715afc214 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs new file mode 100644 index 00000000..cf401cb2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs @@ -0,0 +1,94 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ActivityToken + /// + [DataContract(Name = "ActivityToken")] + public partial class ActivityToken + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public TokenContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ActivityToken() { } + /// + /// Initializes a new instance of the class. + /// + /// contractType (required). + /// The contract address (required). + public ActivityToken(TokenContractType contractType = default(TokenContractType), string contractAddress = default(string)) + { + this.ContractType = contractType; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ActivityToken and cannot be null"); + } + this.ContractAddress = contractAddress; + } + + /// + /// The contract address + /// + /// The contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ActivityToken {\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs.meta new file mode 100644 index 00000000..4fd4016c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityToken.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83b4f3f6cccc5487e9eb946e8c4adc48 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs b/src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs new file mode 100644 index 00000000..a9098b07 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs @@ -0,0 +1,72 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The activity type + /// + /// The activity type + [JsonConverter(typeof(StringEnumConverter))] + public enum ActivityType + { + /// + /// Enum Mint for value: mint + /// + [EnumMember(Value = "mint")] + Mint = 1, + + /// + /// Enum Burn for value: burn + /// + [EnumMember(Value = "burn")] + Burn = 2, + + /// + /// Enum Transfer for value: transfer + /// + [EnumMember(Value = "transfer")] + Transfer = 3, + + /// + /// Enum Sale for value: sale + /// + [EnumMember(Value = "sale")] + Sale = 4, + + /// + /// Enum Deposit for value: deposit + /// + [EnumMember(Value = "deposit")] + Deposit = 5, + + /// + /// Enum Withdrawal for value: withdrawal + /// + [EnumMember(Value = "withdrawal")] + Withdrawal = 6 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs.meta new file mode 100644 index 00000000..0c661478 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ActivityType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c3c5ab6dce55741ffa852da7cf04740d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs b/src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs new file mode 100644 index 00000000..64a30736 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// AssetCollectionItem + /// + [JsonConverter(typeof(AssetCollectionItemJsonConverter))] + [DataContract(Name = "AssetCollectionItem")] + public partial class AssetCollectionItem : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC721CollectionItem. + public AssetCollectionItem(ERC721CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC1155CollectionItem. + public AssetCollectionItem(ERC1155CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ERC1155CollectionItem) || value is ERC1155CollectionItem) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC721CollectionItem) || value is ERC721CollectionItem) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ERC1155CollectionItem, ERC721CollectionItem"); + } + } + } + + /// + /// Get the actual instance of `ERC721CollectionItem`. If the actual instance is not `ERC721CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC721CollectionItem + public ERC721CollectionItem GetERC721CollectionItem() + { + return (ERC721CollectionItem)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC1155CollectionItem`. If the actual instance is not `ERC1155CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC1155CollectionItem + public ERC1155CollectionItem GetERC1155CollectionItem() + { + return (ERC1155CollectionItem)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AssetCollectionItem {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, AssetCollectionItem.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of AssetCollectionItem + /// + /// JSON string + /// An instance of AssetCollectionItem + public static AssetCollectionItem FromJson(string jsonString) + { + AssetCollectionItem newAssetCollectionItem = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newAssetCollectionItem; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC1155CollectionItem).GetProperty("AdditionalProperties") == null) + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.SerializerSettings)); + } + else + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC1155CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC1155CollectionItem: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC721CollectionItem).GetProperty("AdditionalProperties") == null) + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.SerializerSettings)); + } + else + { + newAssetCollectionItem = new AssetCollectionItem(JsonConvert.DeserializeObject(jsonString, AssetCollectionItem.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC721CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC721CollectionItem: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newAssetCollectionItem; + } + + } + + /// + /// Custom JSON converter for AssetCollectionItem + /// + public class AssetCollectionItemJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(AssetCollectionItem).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return AssetCollectionItem.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return AssetCollectionItem.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs.meta new file mode 100644 index 00000000..c48647bb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/AssetCollectionItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ca07d50e77d4e4fbc91756d7e3acaf56 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs new file mode 100644 index 00000000..15d1ee09 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs @@ -0,0 +1,60 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The verification status for a given contract + /// + /// The verification status for a given contract + [JsonConverter(typeof(StringEnumConverter))] + public enum AssetVerificationStatus + { + /// + /// Enum Verified for value: verified + /// + [EnumMember(Value = "verified")] + Verified = 1, + + /// + /// Enum Unverified for value: unverified + /// + [EnumMember(Value = "unverified")] + Unverified = 2, + + /// + /// Enum Spam for value: spam + /// + [EnumMember(Value = "spam")] + Spam = 3, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 4 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs.meta new file mode 100644 index 00000000..9b0a4d29 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/AssetVerificationStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fb6250e2448254bae8d65f6cf643523d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs b/src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs new file mode 100644 index 00000000..206698fb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs @@ -0,0 +1,117 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// BasicAPIError + /// + [DataContract(Name = "BasicAPIError")] + public partial class BasicAPIError + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BasicAPIError() { } + /// + /// Initializes a new instance of the class. + /// + /// Error Message (required). + /// Link to IMX documentation that can help resolve this error (required). + /// Trace ID of the initial request (required). + public BasicAPIError(string message = default(string), string link = default(string), string traceId = default(string)) + { + // to ensure "message" is required (not null) + if (message == null) + { + throw new ArgumentNullException("message is a required property for BasicAPIError and cannot be null"); + } + this.Message = message; + // to ensure "link" is required (not null) + if (link == null) + { + throw new ArgumentNullException("link is a required property for BasicAPIError and cannot be null"); + } + this.Link = link; + // to ensure "traceId" is required (not null) + if (traceId == null) + { + throw new ArgumentNullException("traceId is a required property for BasicAPIError and cannot be null"); + } + this.TraceId = traceId; + } + + /// + /// Error Message + /// + /// Error Message + /// all fields must be provided + [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// Link to IMX documentation that can help resolve this error + /// + /// Link to IMX documentation that can help resolve this error + /// https://docs.x.immutable.com/reference/#/ + [DataMember(Name = "link", IsRequired = true, EmitDefaultValue = true)] + public string Link { get; set; } + + /// + /// Trace ID of the initial request + /// + /// Trace ID of the initial request + /// e47634b79a5cd6894ddc9639ec4aad26 + [DataMember(Name = "trace_id", IsRequired = true, EmitDefaultValue = true)] + public string TraceId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BasicAPIError {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Link: ").Append(Link).Append("\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs.meta new file mode 100644 index 00000000..2bdeed62 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/BasicAPIError.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 58b9982c5a9c74076baf6b101e8826a6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs new file mode 100644 index 00000000..c0707169 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// BidResult + /// + [DataContract(Name = "BidResult")] + public partial class BidResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BidResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public BidResult(Order result = default(Order)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for BidResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Order Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BidResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs.meta new file mode 100644 index 00000000..3c5e02f3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/BidResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a39d895eb7a43442b824a1581bb95522 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs b/src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs new file mode 100644 index 00000000..cbeaffab --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs @@ -0,0 +1,133 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The metadata related to blockchain transaction + /// + [DataContract(Name = "BlockchainMetadata")] + public partial class BlockchainMetadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BlockchainMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The transaction hash of the activity (required). + /// EVM block number (uint64 as string) (required). + /// Transaction index in a block (uint32 as string) (required). + /// The log index of activity in a block (uint32 as string) (required). + public BlockchainMetadata(string transactionHash = default(string), string blockNumber = default(string), string transactionIndex = default(string), string logIndex = default(string)) + { + // to ensure "transactionHash" is required (not null) + if (transactionHash == null) + { + throw new ArgumentNullException("transactionHash is a required property for BlockchainMetadata and cannot be null"); + } + this.TransactionHash = transactionHash; + // to ensure "blockNumber" is required (not null) + if (blockNumber == null) + { + throw new ArgumentNullException("blockNumber is a required property for BlockchainMetadata and cannot be null"); + } + this.BlockNumber = blockNumber; + // to ensure "transactionIndex" is required (not null) + if (transactionIndex == null) + { + throw new ArgumentNullException("transactionIndex is a required property for BlockchainMetadata and cannot be null"); + } + this.TransactionIndex = transactionIndex; + // to ensure "logIndex" is required (not null) + if (logIndex == null) + { + throw new ArgumentNullException("logIndex is a required property for BlockchainMetadata and cannot be null"); + } + this.LogIndex = logIndex; + } + + /// + /// The transaction hash of the activity + /// + /// The transaction hash of the activity + /// 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + [DataMember(Name = "transaction_hash", IsRequired = true, EmitDefaultValue = true)] + public string TransactionHash { get; set; } + + /// + /// EVM block number (uint64 as string) + /// + /// EVM block number (uint64 as string) + /// 1 + [DataMember(Name = "block_number", IsRequired = true, EmitDefaultValue = true)] + public string BlockNumber { get; set; } + + /// + /// Transaction index in a block (uint32 as string) + /// + /// Transaction index in a block (uint32 as string) + /// 1 + [DataMember(Name = "transaction_index", IsRequired = true, EmitDefaultValue = true)] + public string TransactionIndex { get; set; } + + /// + /// The log index of activity in a block (uint32 as string) + /// + /// The log index of activity in a block (uint32 as string) + /// 1 + [DataMember(Name = "log_index", IsRequired = true, EmitDefaultValue = true)] + public string LogIndex { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BlockchainMetadata {\n"); + sb.Append(" TransactionHash: ").Append(TransactionHash).Append("\n"); + sb.Append(" BlockNumber: ").Append(BlockNumber).Append("\n"); + sb.Append(" TransactionIndex: ").Append(TransactionIndex).Append("\n"); + sb.Append(" LogIndex: ").Append(LogIndex).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs.meta new file mode 100644 index 00000000..b3ecb96a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/BlockchainMetadata.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 00b6c0207acf248689d17c57a741709e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Burn.cs b/src/Packages/ZkEvmApi/Runtime/Model/Burn.cs new file mode 100644 index 00000000..16d4685c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Burn.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The burn activity details + /// + [DataContract(Name = "Burn")] + public partial class Burn + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Burn() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was transferred from (required). + /// The amount of assets burnt (required). + /// asset (required). + public Burn(string from = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for Burn and cannot be null"); + } + this.From = from; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Burn and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Burn and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was transferred from + /// + /// The account address the asset was transferred from + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The amount of assets burnt + /// + /// The amount of assets burnt + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Burn {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Burn.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Burn.cs.meta new file mode 100644 index 00000000..5da4b48d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Burn.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 267ac161609174160a174789952190a8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Call.cs b/src/Packages/ZkEvmApi/Runtime/Model/Call.cs new file mode 100644 index 00000000..2f22fd6f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Call.cs @@ -0,0 +1,117 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Call + /// + [DataContract(Name = "Call")] + public partial class Call + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Call() { } + /// + /// Initializes a new instance of the class. + /// + /// An Ethereum address (required). + /// The function signature (required). + /// The function arguments (required). + public Call(string targetAddress = default(string), string functionSignature = default(string), List functionArgs = default(List)) + { + // to ensure "targetAddress" is required (not null) + if (targetAddress == null) + { + throw new ArgumentNullException("targetAddress is a required property for Call and cannot be null"); + } + this.TargetAddress = targetAddress; + // to ensure "functionSignature" is required (not null) + if (functionSignature == null) + { + throw new ArgumentNullException("functionSignature is a required property for Call and cannot be null"); + } + this.FunctionSignature = functionSignature; + // to ensure "functionArgs" is required (not null) + if (functionArgs == null) + { + throw new ArgumentNullException("functionArgs is a required property for Call and cannot be null"); + } + this.FunctionArgs = functionArgs; + } + + /// + /// An Ethereum address + /// + /// An Ethereum address + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "target_address", IsRequired = true, EmitDefaultValue = true)] + public string TargetAddress { get; set; } + + /// + /// The function signature + /// + /// The function signature + /// mint(address,uint256) + [DataMember(Name = "function_signature", IsRequired = true, EmitDefaultValue = true)] + public string FunctionSignature { get; set; } + + /// + /// The function arguments + /// + /// The function arguments + /// ["0x8a90cab2b38dba80c64b7734e58ee1db38b8992e","1"] + [DataMember(Name = "function_args", IsRequired = true, EmitDefaultValue = true)] + public List FunctionArgs { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Call {\n"); + sb.Append(" TargetAddress: ").Append(TargetAddress).Append("\n"); + sb.Append(" FunctionSignature: ").Append(FunctionSignature).Append("\n"); + sb.Append(" FunctionArgs: ").Append(FunctionArgs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Call.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Call.cs.meta new file mode 100644 index 00000000..67b2e773 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Call.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac56c570d1d3c40a98afe07fc9aaa7a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs new file mode 100644 index 00000000..d01ef8ab --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs @@ -0,0 +1,116 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CancelOrdersRequestBody + /// + [DataContract(Name = "CancelOrdersRequestBody")] + public partial class CancelOrdersRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelOrdersRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// Address of the user initiating the cancel request (required). + /// List of order ids proposed for cancellation (required). + /// Signature generated by the user for the specific cancellation request (required). + public CancelOrdersRequestBody(string accountAddress = default(string), List orders = default(List), string signature = default(string)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CancelOrdersRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orders" is required (not null) + if (orders == null) + { + throw new ArgumentNullException("orders is a required property for CancelOrdersRequestBody and cannot be null"); + } + this.Orders = orders; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CancelOrdersRequestBody and cannot be null"); + } + this.Signature = signature; + } + + /// + /// Address of the user initiating the cancel request + /// + /// Address of the user initiating the cancel request + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// List of order ids proposed for cancellation + /// + /// List of order ids proposed for cancellation + [DataMember(Name = "orders", IsRequired = true, EmitDefaultValue = true)] + public List Orders { get; set; } + + /// + /// Signature generated by the user for the specific cancellation request + /// + /// Signature generated by the user for the specific cancellation request + /// 0x12345 + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelOrdersRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Orders: ").Append(Orders).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs.meta new file mode 100644 index 00000000..75bf36fe --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersRequestBody.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f6bc5d8afa12429dbff3168af599dcb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs new file mode 100644 index 00000000..0469d7d5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CancelOrdersResult + /// + [DataContract(Name = "CancelOrdersResult")] + public partial class CancelOrdersResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelOrdersResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CancelOrdersResult(CancelOrdersResultData result = default(CancelOrdersResultData)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CancelOrdersResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public CancelOrdersResultData Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelOrdersResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs.meta new file mode 100644 index 00000000..a6c7bbe0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1560b2471e0fa4c8c80d66fccd152cb0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs new file mode 100644 index 00000000..ce2ed73c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs @@ -0,0 +1,114 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CancelOrdersResultData + /// + [DataContract(Name = "CancelOrdersResultData")] + public partial class CancelOrdersResultData + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelOrdersResultData() { } + /// + /// Initializes a new instance of the class. + /// + /// Orders which were successfully cancelled (required). + /// Orders which are marked for cancellation but the cancellation cannot be guaranteed (required). + /// Orders which failed to be cancelled (required). + public CancelOrdersResultData(List successfulCancellations = default(List), List pendingCancellations = default(List), List failedCancellations = default(List)) + { + // to ensure "successfulCancellations" is required (not null) + if (successfulCancellations == null) + { + throw new ArgumentNullException("successfulCancellations is a required property for CancelOrdersResultData and cannot be null"); + } + this.SuccessfulCancellations = successfulCancellations; + // to ensure "pendingCancellations" is required (not null) + if (pendingCancellations == null) + { + throw new ArgumentNullException("pendingCancellations is a required property for CancelOrdersResultData and cannot be null"); + } + this.PendingCancellations = pendingCancellations; + // to ensure "failedCancellations" is required (not null) + if (failedCancellations == null) + { + throw new ArgumentNullException("failedCancellations is a required property for CancelOrdersResultData and cannot be null"); + } + this.FailedCancellations = failedCancellations; + } + + /// + /// Orders which were successfully cancelled + /// + /// Orders which were successfully cancelled + [DataMember(Name = "successful_cancellations", IsRequired = true, EmitDefaultValue = true)] + public List SuccessfulCancellations { get; set; } + + /// + /// Orders which are marked for cancellation but the cancellation cannot be guaranteed + /// + /// Orders which are marked for cancellation but the cancellation cannot be guaranteed + [DataMember(Name = "pending_cancellations", IsRequired = true, EmitDefaultValue = true)] + public List PendingCancellations { get; set; } + + /// + /// Orders which failed to be cancelled + /// + /// Orders which failed to be cancelled + [DataMember(Name = "failed_cancellations", IsRequired = true, EmitDefaultValue = true)] + public List FailedCancellations { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelOrdersResultData {\n"); + sb.Append(" SuccessfulCancellations: ").Append(SuccessfulCancellations).Append("\n"); + sb.Append(" PendingCancellations: ").Append(PendingCancellations).Append("\n"); + sb.Append(" FailedCancellations: ").Append(FailedCancellations).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs.meta new file mode 100644 index 00000000..0b15733d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelOrdersResultData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4e9a857bacd8548faae00914c8759767 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs new file mode 100644 index 00000000..64d79bb4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs @@ -0,0 +1,141 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CancelledOrderStatus + /// + [DataContract(Name = "CancelledOrderStatus")] + public partial class CancelledOrderStatus + { + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 1 + } + + + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + [JsonConverter(typeof(StringEnumConverter))] + public enum CancellationTypeEnum + { + /// + /// Enum ONCHAIN for value: ON_CHAIN + /// + [EnumMember(Value = "ON_CHAIN")] + ONCHAIN = 1, + + /// + /// Enum OFFCHAIN for value: OFF_CHAIN + /// + [EnumMember(Value = "OFF_CHAIN")] + OFFCHAIN = 2, + + /// + /// Enum UNDERFUNDED for value: UNDERFUNDED + /// + [EnumMember(Value = "UNDERFUNDED")] + UNDERFUNDED = 3 + } + + + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + /// + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account + /// ON_CHAIN + [DataMember(Name = "cancellation_type", IsRequired = true, EmitDefaultValue = true)] + public CancellationTypeEnum CancellationType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CancelledOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status indicating a order is has been cancelled or about to be cancelled. (required). + /// Whether the cancellation of the order is pending (required). + /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account (required). + public CancelledOrderStatus(NameEnum name = default(NameEnum), bool pending = default(bool), CancellationTypeEnum cancellationType = default(CancellationTypeEnum)) + { + this.Name = name; + this.Pending = pending; + this.CancellationType = cancellationType; + } + + /// + /// Whether the cancellation of the order is pending + /// + /// Whether the cancellation of the order is pending + /// false + [DataMember(Name = "pending", IsRequired = true, EmitDefaultValue = true)] + public bool Pending { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelledOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Pending: ").Append(Pending).Append("\n"); + sb.Append(" CancellationType: ").Append(CancellationType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs.meta new file mode 100644 index 00000000..18c2e366 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CancelledOrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4bb44944ddcf34c2eae0dc8cba58ff3b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Chain.cs b/src/Packages/ZkEvmApi/Runtime/Model/Chain.cs new file mode 100644 index 00000000..e62ed87d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Chain.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The chain details + /// + [DataContract(Name = "Chain")] + public partial class Chain + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Chain() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of chain (required). + /// The name of chain (required). + public Chain(string id = default(string), string name = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for Chain and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Chain and cannot be null"); + } + this.Name = name; + } + + /// + /// The id of chain + /// + /// The id of chain + /// eip155:13372 + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// The name of chain + /// + /// The name of chain + /// imtbl-zkevm-testnet + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Chain {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Chain.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Chain.cs.meta new file mode 100644 index 00000000..34d7222e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Chain.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bf957477f27df47b49ff31972244efd0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs b/src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs new file mode 100644 index 00000000..90de1036 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs @@ -0,0 +1,116 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ChainWithDetails + /// + [DataContract(Name = "ChainWithDetails")] + public partial class ChainWithDetails + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ChainWithDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of chain (required). + /// The name of chain (required). + /// URL for RPC node (required). + public ChainWithDetails(string id = default(string), string name = default(string), string rpcUrl = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for ChainWithDetails and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for ChainWithDetails and cannot be null"); + } + this.Name = name; + // to ensure "rpcUrl" is required (not null) + if (rpcUrl == null) + { + throw new ArgumentNullException("rpcUrl is a required property for ChainWithDetails and cannot be null"); + } + this.RpcUrl = rpcUrl; + } + + /// + /// The id of chain + /// + /// The id of chain + /// eip155:13372 + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// The name of chain + /// + /// The name of chain + /// imtbl-zkevm-testnet + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// URL for RPC node + /// + /// URL for RPC node + [DataMember(Name = "rpc_url", IsRequired = true, EmitDefaultValue = true)] + public string RpcUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ChainWithDetails {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" RpcUrl: ").Append(RpcUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs.meta new file mode 100644 index 00000000..8a5b13e6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ChainWithDetails.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 357fa9bc5db4847e1890a26f41ff9e70 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Collection.cs b/src/Packages/ZkEvmApi/Runtime/Model/Collection.cs new file mode 100644 index 00000000..21553d26 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Collection.cs @@ -0,0 +1,262 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Collection + /// + [DataContract(Name = "Collection")] + public partial class Collection + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public CollectionContractType ContractType { get; set; } + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name = "verification_status", IsRequired = true, EmitDefaultValue = true)] + public AssetVerificationStatus VerificationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Collection() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The name of the collection (required). + /// The symbol of contract (required). + /// contractType (required). + /// The address of the contract (required). + /// The description of collection (required). + /// The url of the collection image (required). + /// The url of external link (required). + /// The uri for the metadata of the collection. + /// The metadata uri for nft (required). + /// verificationStatus (required). + /// When the collection was first indexed (required). + /// When the collection was last updated (required). + /// When the collection metadata was last synced (required). + public Collection(Chain chain = default(Chain), string name = default(string), string symbol = default(string), CollectionContractType contractType = default(CollectionContractType), string contractAddress = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string contractUri = default(string), string baseUri = default(string), AssetVerificationStatus verificationStatus = default(AssetVerificationStatus), DateTime indexedAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? metadataSyncedAt = default(DateTime?)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Collection and cannot be null"); + } + this.Chain = chain; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Collection and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for Collection and cannot be null"); + } + this.Symbol = symbol; + this.ContractType = contractType; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Collection and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Collection and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for Collection and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for Collection and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "baseUri" is required (not null) + if (baseUri == null) + { + throw new ArgumentNullException("baseUri is a required property for Collection and cannot be null"); + } + this.BaseUri = baseUri; + this.VerificationStatus = verificationStatus; + this.IndexedAt = indexedAt; + this.UpdatedAt = updatedAt; + // to ensure "metadataSyncedAt" is required (not null) + if (metadataSyncedAt == null) + { + throw new ArgumentNullException("metadataSyncedAt is a required property for Collection and cannot be null"); + } + this.MetadataSyncedAt = metadataSyncedAt; + this.ContractUri = contractUri; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The name of the collection + /// + /// The name of the collection + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// BASP + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// Some description + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The url of the collection image + /// + /// The url of the collection image + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The url of external link + /// + /// The url of external link + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + public string ExternalLink { get; set; } + + /// + /// The uri for the metadata of the collection + /// + /// The uri for the metadata of the collection + /// https://some-url + [DataMember(Name = "contract_uri", EmitDefaultValue = true)] + public string ContractUri { get; set; } + + /// + /// The metadata uri for nft + /// + /// The metadata uri for nft + /// https://some-url + [DataMember(Name = "base_uri", IsRequired = true, EmitDefaultValue = true)] + public string BaseUri { get; set; } + + /// + /// When the collection was first indexed + /// + /// When the collection was first indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// When the collection was last updated + /// + /// When the collection was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// When the collection metadata was last synced + /// + /// When the collection metadata was last synced + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "metadata_synced_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? MetadataSyncedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Collection {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" ContractUri: ").Append(ContractUri).Append("\n"); + sb.Append(" BaseUri: ").Append(BaseUri).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" MetadataSyncedAt: ").Append(MetadataSyncedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Collection.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Collection.cs.meta new file mode 100644 index 00000000..f0a06f7d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Collection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 32bc8716b7805420199cca035a397f0c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs new file mode 100644 index 00000000..8f6f6e0d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CollectionBidResult + /// + [DataContract(Name = "CollectionBidResult")] + public partial class CollectionBidResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CollectionBidResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public CollectionBidResult(Order result = default(Order)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for CollectionBidResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Order Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CollectionBidResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs.meta new file mode 100644 index 00000000..43ae46c8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CollectionBidResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec1cf78a65f82413e89659efa07d7b99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs b/src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs new file mode 100644 index 00000000..29fb01b7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The collection contract type + /// + /// The collection contract type + [JsonConverter(typeof(StringEnumConverter))] + public enum CollectionContractType + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 2 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs.meta new file mode 100644 index 00000000..588abbd2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CollectionContractType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aeece8f0fc355476fbac0f563eea04b1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs b/src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs new file mode 100644 index 00000000..281acfd6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs @@ -0,0 +1,181 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CollectionMetadata + /// + [DataContract(Name = "CollectionMetadata")] + public partial class CollectionMetadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CollectionMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the collection (required). + /// The symbol of contract (required). + /// The description of collection (required). + /// The url of the collection image (required). + /// The url of external link (required). + /// The uri for the metadata of the collection (required). + /// The metadata uri for nft (required). + public CollectionMetadata(string name = default(string), string symbol = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string contractUri = default(string), string baseUri = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CollectionMetadata and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for CollectionMetadata and cannot be null"); + } + this.Symbol = symbol; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for CollectionMetadata and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for CollectionMetadata and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for CollectionMetadata and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "contractUri" is required (not null) + if (contractUri == null) + { + throw new ArgumentNullException("contractUri is a required property for CollectionMetadata and cannot be null"); + } + this.ContractUri = contractUri; + // to ensure "baseUri" is required (not null) + if (baseUri == null) + { + throw new ArgumentNullException("baseUri is a required property for CollectionMetadata and cannot be null"); + } + this.BaseUri = baseUri; + } + + /// + /// The name of the collection + /// + /// The name of the collection + /// Gigantic Lizards + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// GLZ + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// This is the Gigantic Lizards collection + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The url of the collection image + /// + /// The url of the collection image + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The url of external link + /// + /// The url of external link + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + public string ExternalLink { get; set; } + + /// + /// The uri for the metadata of the collection + /// + /// The uri for the metadata of the collection + /// https://some-url + [DataMember(Name = "contract_uri", IsRequired = true, EmitDefaultValue = true)] + public string ContractUri { get; set; } + + /// + /// The metadata uri for nft + /// + /// The metadata uri for nft + /// https://some-url + [DataMember(Name = "base_uri", IsRequired = true, EmitDefaultValue = true)] + public string BaseUri { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CollectionMetadata {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" ContractUri: ").Append(ContractUri).Append("\n"); + sb.Append(" BaseUri: ").Append(BaseUri).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs.meta new file mode 100644 index 00000000..1d4c0602 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CollectionMetadata.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d813a3f90e54944218adb41ad8153ff6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs b/src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs new file mode 100644 index 00000000..9f7a9850 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs @@ -0,0 +1,215 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CreateBidRequestBody + /// + [DataContract(Name = "CreateBidRequestBody")] + public partial class CreateBidRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateBidRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// orderHash (required). + /// Buy item for bid should either be ERC721 or ERC1155 item (required). + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. (required). + /// Time after which the Order is considered expired (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// Sell item for bid should be an ERC20 item (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + public CreateBidRequestBody(string accountAddress = default(string), string orderHash = default(string), List buy = default(List), List fees = default(List), DateTime endAt = default(DateTime), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CreateBidRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for CreateBidRequestBody and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for CreateBidRequestBody and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for CreateBidRequestBody and cannot be null"); + } + this.Fees = fees; + this.EndAt = endAt; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for CreateBidRequestBody and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for CreateBidRequestBody and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for CreateBidRequestBody and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CreateBidRequestBody and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Buy item for bid should either be ERC721 or ERC1155 item + /// + /// Buy item for bid should either be ERC721 or ERC1155 item + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Sell item for bid should be an ERC20 item + /// + /// Sell item for bid should be an ERC20 item + /// [{"type":"ERC20","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","amount":"9750000000000000000"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateBidRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs.meta new file mode 100644 index 00000000..f14774a7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateBidRequestBody.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bae2361be06484552bde167d718003c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs b/src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs new file mode 100644 index 00000000..aad163f8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs @@ -0,0 +1,215 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CreateCollectionBidRequestBody + /// + [DataContract(Name = "CreateCollectionBidRequestBody")] + public partial class CreateCollectionBidRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateCollectionBidRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// orderHash (required). + /// Buy item for collection bid should either be ERC721 or ERC1155 collection item (required). + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. (required). + /// Time after which the Order is considered expired (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// Sell item for collection bid should be an ERC20 item (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + public CreateCollectionBidRequestBody(string accountAddress = default(string), string orderHash = default(string), List buy = default(List), List fees = default(List), DateTime endAt = default(DateTime), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Fees = fees; + this.EndAt = endAt; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CreateCollectionBidRequestBody and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Buy item for collection bid should either be ERC721 or ERC1155 collection item + /// + /// Buy item for collection bid should either be ERC721 or ERC1155 collection item + /// [{"type":"ERC721_COLLECTION","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","amount":"1"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Sell item for collection bid should be an ERC20 item + /// + /// Sell item for collection bid should be an ERC20 item + /// [{"type":"ERC20","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","amount":"9750000000000000000"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateCollectionBidRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs.meta new file mode 100644 index 00000000..c1ff255d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateCollectionBidRequestBody.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3f20416614cf14aac876303b1cfefd3b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs b/src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs new file mode 100644 index 00000000..abe61364 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs @@ -0,0 +1,215 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CreateListingRequestBody + /// + [DataContract(Name = "CreateListingRequestBody")] + public partial class CreateListingRequestBody + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateListingRequestBody() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// orderHash (required). + /// Buy item for listing should either be NATIVE or ERC20 item (required). + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. (required). + /// Time after which the Order is considered expired (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// Sell item for listing should be an ERC721 item (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + public CreateListingRequestBody(string accountAddress = default(string), string orderHash = default(string), List buy = default(List), List fees = default(List), DateTime endAt = default(DateTime), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for CreateListingRequestBody and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for CreateListingRequestBody and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for CreateListingRequestBody and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for CreateListingRequestBody and cannot be null"); + } + this.Fees = fees; + this.EndAt = endAt; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for CreateListingRequestBody and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for CreateListingRequestBody and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for CreateListingRequestBody and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for CreateListingRequestBody and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Buy item for listing should either be NATIVE or ERC20 item + /// + /// Buy item for listing should either be NATIVE or ERC20 item + /// [{"type":"NATIVE","amount":"9750000000000000000","contract_address":"0x0165878A594ca255338adfa4d48449f69242Eb8F"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// + /// Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible. + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Sell item for listing should be an ERC721 item + /// + /// Sell item for listing should be an ERC721 item + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateListingRequestBody {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs.meta new file mode 100644 index 00000000..27a74e99 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateListingRequestBody.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3b5fade9f67c24edeabd244278d253d4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs new file mode 100644 index 00000000..b7270d3f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs @@ -0,0 +1,84 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CreateMintRequestRequest + /// + [DataContract(Name = "CreateMintRequestRequest")] + public partial class CreateMintRequestRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateMintRequestRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft to be minted (required). + public CreateMintRequestRequest(List assets = default(List)) + { + // to ensure "assets" is required (not null) + if (assets == null) + { + throw new ArgumentNullException("assets is a required property for CreateMintRequestRequest and cannot be null"); + } + this.Assets = assets; + } + + /// + /// List of nft to be minted + /// + /// List of nft to be minted + [DataMember(Name = "assets", IsRequired = true, EmitDefaultValue = true)] + public List Assets { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateMintRequestRequest {\n"); + sb.Append(" Assets: ").Append(Assets).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs.meta new file mode 100644 index 00000000..425bd24d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 07e35a66bf3674c7fbe28034fa04afdd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs new file mode 100644 index 00000000..32d0abdb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs @@ -0,0 +1,125 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// CreateMintRequestResult + /// + [DataContract(Name = "CreateMintRequestResult")] + public partial class CreateMintRequestResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateMintRequestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// imxMintRequestsLimit (required). + /// imxMintRequestsLimitReset (required). + /// imxRemainingMintRequests (required). + /// imxMintRequestsRetryAfter (required). + public CreateMintRequestResult(string imxMintRequestsLimit = default(string), string imxMintRequestsLimitReset = default(string), string imxRemainingMintRequests = default(string), string imxMintRequestsRetryAfter = default(string)) + { + // to ensure "imxMintRequestsLimit" is required (not null) + if (imxMintRequestsLimit == null) + { + throw new ArgumentNullException("imxMintRequestsLimit is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxMintRequestsLimit = imxMintRequestsLimit; + // to ensure "imxMintRequestsLimitReset" is required (not null) + if (imxMintRequestsLimitReset == null) + { + throw new ArgumentNullException("imxMintRequestsLimitReset is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxMintRequestsLimitReset = imxMintRequestsLimitReset; + // to ensure "imxRemainingMintRequests" is required (not null) + if (imxRemainingMintRequests == null) + { + throw new ArgumentNullException("imxRemainingMintRequests is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxRemainingMintRequests = imxRemainingMintRequests; + // to ensure "imxMintRequestsRetryAfter" is required (not null) + if (imxMintRequestsRetryAfter == null) + { + throw new ArgumentNullException("imxMintRequestsRetryAfter is a required property for CreateMintRequestResult and cannot be null"); + } + this.ImxMintRequestsRetryAfter = imxMintRequestsRetryAfter; + } + + /// + /// Gets or Sets ImxMintRequestsLimit + /// + [DataMember(Name = "imx_mint_requests_limit", IsRequired = true, EmitDefaultValue = true)] + public string ImxMintRequestsLimit { get; set; } + + /// + /// Gets or Sets ImxMintRequestsLimitReset + /// + [DataMember(Name = "imx_mint_requests_limit_reset", IsRequired = true, EmitDefaultValue = true)] + public string ImxMintRequestsLimitReset { get; set; } + + /// + /// Gets or Sets ImxRemainingMintRequests + /// + [DataMember(Name = "imx_remaining_mint_requests", IsRequired = true, EmitDefaultValue = true)] + public string ImxRemainingMintRequests { get; set; } + + /// + /// Gets or Sets ImxMintRequestsRetryAfter + /// + [DataMember(Name = "imx_mint_requests_retry_after", IsRequired = true, EmitDefaultValue = true)] + public string ImxMintRequestsRetryAfter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CreateMintRequestResult {\n"); + sb.Append(" ImxMintRequestsLimit: ").Append(ImxMintRequestsLimit).Append("\n"); + sb.Append(" ImxMintRequestsLimitReset: ").Append(ImxMintRequestsLimitReset).Append("\n"); + sb.Append(" ImxRemainingMintRequests: ").Append(ImxRemainingMintRequests).Append("\n"); + sb.Append(" ImxMintRequestsRetryAfter: ").Append(ImxMintRequestsRetryAfter).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs.meta new file mode 100644 index 00000000..8f919605 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/CreateMintRequestResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ecc031d984f38452f8642fa507efcc5c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs b/src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs new file mode 100644 index 00000000..c82f49a4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The deposit activity details + /// + [DataContract(Name = "Deposit")] + public partial class Deposit + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Deposit() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was deposited to (required). + /// The deposited amount (required). + /// asset (required). + public Deposit(string to = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Deposit and cannot be null"); + } + this.To = to; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Deposit and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Deposit and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was deposited to + /// + /// The account address the asset was deposited to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The deposited amount + /// + /// The deposited amount + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Deposit {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs.meta new file mode 100644 index 00000000..39898fe3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Deposit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 276fd84b7bd9b4c0ba78ec7d7649b9b9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs new file mode 100644 index 00000000..8ac8b049 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ERC1155CollectionItem + /// + [DataContract(Name = "ERC1155CollectionItem")] + public partial class ERC1155CollectionItem + { + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC1155COLLECTION for value: ERC1155_COLLECTION + /// + [EnumMember(Value = "ERC1155_COLLECTION")] + ERC1155COLLECTION = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + /// ERC1155_COLLECTION + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC1155CollectionItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC1155 (required). + /// Address of ERC1155 collection (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC1155CollectionItem(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC1155CollectionItem and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC1155CollectionItem and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC1155 collection + /// + /// Address of ERC1155 collection + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC1155CollectionItem {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs.meta new file mode 100644 index 00000000..76acf234 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155CollectionItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac6f509da4417431fab03bd9f3b40794 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs new file mode 100644 index 00000000..e3ba6ea0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs @@ -0,0 +1,142 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ERC1155Item + /// + [DataContract(Name = "ERC1155Item")] + public partial class ERC1155Item + { + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC1155 + /// + /// Token type user is offering, which in this case is ERC1155 + /// ERC1155 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC1155Item() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC1155 (required). + /// Address of ERC1155 token (required). + /// ID of ERC1155 token (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC1155Item(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string tokenId = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC1155Item and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for ERC1155Item and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC1155Item and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC1155 token + /// + /// Address of ERC1155 token + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// ID of ERC1155 token + /// + /// ID of ERC1155 token + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC1155Item {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs.meta new file mode 100644 index 00000000..a00decd3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC1155Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d8835592bc5a94324a44e71d532d5707 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs b/src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs new file mode 100644 index 00000000..d6838d1c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ERC20Item + /// + [DataContract(Name = "ERC20Item")] + public partial class ERC20Item + { + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + /// ERC20 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC20Item() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC20 (required). + /// Address of ERC20 token (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC20Item(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC20Item and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC20Item and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC20 token + /// + /// Address of ERC20 token + /// 0x0165878A594ca255338adfa4d48449f69242Eb8F + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC20Item {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs.meta new file mode 100644 index 00000000..45448420 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC20Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e5226ab03787a4ce0822076675cfbcad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs b/src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs new file mode 100644 index 00000000..0626dbef --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ERC721CollectionItem + /// + [DataContract(Name = "ERC721CollectionItem")] + public partial class ERC721CollectionItem + { + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC721COLLECTION for value: ERC721_COLLECTION + /// + [EnumMember(Value = "ERC721_COLLECTION")] + ERC721COLLECTION = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + /// ERC721_COLLECTION + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC721CollectionItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC721 (required). + /// Address of ERC721 collection (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public ERC721CollectionItem(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string amount = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC721CollectionItem and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for ERC721CollectionItem and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Address of ERC721 collection + /// + /// Address of ERC721 collection + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC721CollectionItem {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs.meta new file mode 100644 index 00000000..62a2333b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC721CollectionItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9b0d95c7e5e3a4b80a1a11a61e9c6777 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs b/src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs new file mode 100644 index 00000000..af2e3a17 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs @@ -0,0 +1,126 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ERC721Item + /// + [DataContract(Name = "ERC721Item")] + public partial class ERC721Item + { + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC721 + /// + /// Token type user is offering, which in this case is ERC721 + /// ERC721 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ERC721Item() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC721 (required). + /// Address of ERC721 token (required). + /// ID of ERC721 token (required). + public ERC721Item(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string tokenId = default(string)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for ERC721Item and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for ERC721Item and cannot be null"); + } + this.TokenId = tokenId; + } + + /// + /// Address of ERC721 token + /// + /// Address of ERC721 token + /// 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// ID of ERC721 token + /// + /// ID of ERC721 token + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ERC721Item {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs.meta new file mode 100644 index 00000000..3fd455f8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ERC721Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec24ba093b00b41e7bc05d745657929c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs new file mode 100644 index 00000000..735844cc --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs @@ -0,0 +1,93 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ExpiredOrderStatus + /// + [DataContract(Name = "ExpiredOrderStatus")] + public partial class ExpiredOrderStatus + { + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum EXPIRED for value: EXPIRED + /// + [EnumMember(Value = "EXPIRED")] + EXPIRED = 1 + } + + + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ExpiredOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// A terminal order status indicating that an order cannot be fulfilled due to expiry. (required). + public ExpiredOrderStatus(NameEnum name = default(NameEnum)) + { + this.Name = name; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ExpiredOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs.meta new file mode 100644 index 00000000..c1bba8b9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ExpiredOrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3cab68d90731e41b1b09cb3e5d831687 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs b/src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs new file mode 100644 index 00000000..c357c356 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs @@ -0,0 +1,110 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FailedOrderCancellation + /// + [DataContract(Name = "FailedOrderCancellation")] + public partial class FailedOrderCancellation + { + /// + /// Reason code indicating why the order failed to be cancelled + /// + /// Reason code indicating why the order failed to be cancelled + [JsonConverter(typeof(StringEnumConverter))] + public enum ReasonCodeEnum + { + /// + /// Enum FILLED for value: FILLED + /// + [EnumMember(Value = "FILLED")] + FILLED = 1 + } + + + /// + /// Reason code indicating why the order failed to be cancelled + /// + /// Reason code indicating why the order failed to be cancelled + /// FILLED + [DataMember(Name = "reason_code", IsRequired = true, EmitDefaultValue = true)] + public ReasonCodeEnum ReasonCode { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FailedOrderCancellation() { } + /// + /// Initializes a new instance of the class. + /// + /// ID of the order which failed to be cancelled (required). + /// Reason code indicating why the order failed to be cancelled (required). + public FailedOrderCancellation(string order = default(string), ReasonCodeEnum reasonCode = default(ReasonCodeEnum)) + { + // to ensure "order" is required (not null) + if (order == null) + { + throw new ArgumentNullException("order is a required property for FailedOrderCancellation and cannot be null"); + } + this.Order = order; + this.ReasonCode = reasonCode; + } + + /// + /// ID of the order which failed to be cancelled + /// + /// ID of the order which failed to be cancelled + /// 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "order", IsRequired = true, EmitDefaultValue = true)] + public string Order { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FailedOrderCancellation {\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs.meta new file mode 100644 index 00000000..1758f50e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FailedOrderCancellation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 95f1e95934f7447fe8fa385525e9ebbb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Fee.cs b/src/Packages/ZkEvmApi/Runtime/Model/Fee.cs new file mode 100644 index 00000000..b2ef6672 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Fee.cs @@ -0,0 +1,144 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Fee + /// + [DataContract(Name = "Fee")] + public partial class Fee + { + /// + /// Fee type + /// + /// Fee type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ROYALTY for value: ROYALTY + /// + [EnumMember(Value = "ROYALTY")] + ROYALTY = 1, + + /// + /// Enum MAKERECOSYSTEM for value: MAKER_ECOSYSTEM + /// + [EnumMember(Value = "MAKER_ECOSYSTEM")] + MAKERECOSYSTEM = 2, + + /// + /// Enum TAKERECOSYSTEM for value: TAKER_ECOSYSTEM + /// + [EnumMember(Value = "TAKER_ECOSYSTEM")] + TAKERECOSYSTEM = 3, + + /// + /// Enum PROTOCOL for value: PROTOCOL + /// + [EnumMember(Value = "PROTOCOL")] + PROTOCOL = 4 + } + + + /// + /// Fee type + /// + /// Fee type + /// ROYALTY + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Fee() { } + /// + /// Initializes a new instance of the class. + /// + /// Fee payable to recipient upon settlement (required). + /// Fee type (required). + /// Wallet address of fee recipient (required). + public Fee(string amount = default(string), TypeEnum type = default(TypeEnum), string recipientAddress = default(string)) + { + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Fee and cannot be null"); + } + this.Amount = amount; + this.Type = type; + // to ensure "recipientAddress" is required (not null) + if (recipientAddress == null) + { + throw new ArgumentNullException("recipientAddress is a required property for Fee and cannot be null"); + } + this.RecipientAddress = recipientAddress; + } + + /// + /// Fee payable to recipient upon settlement + /// + /// Fee payable to recipient upon settlement + /// 2250000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Wallet address of fee recipient + /// + /// Wallet address of fee recipient + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + [DataMember(Name = "recipient_address", IsRequired = true, EmitDefaultValue = true)] + public string RecipientAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Fee {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" RecipientAddress: ").Append(RecipientAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Fee.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Fee.cs.meta new file mode 100644 index 00000000..881662c1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Fee.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cbf2d3586c167418da47cbb458d17b43 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs new file mode 100644 index 00000000..640c8775 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The ratio of the order that has been filled, an order that has been fully filled will have the same numerator and denominator values. + /// + [DataContract(Name = "FillStatus")] + public partial class FillStatus + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FillStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The numerator of the fill status (required). + /// The denominator of the fill status (required). + public FillStatus(string numerator = default(string), string denominator = default(string)) + { + // to ensure "numerator" is required (not null) + if (numerator == null) + { + throw new ArgumentNullException("numerator is a required property for FillStatus and cannot be null"); + } + this.Numerator = numerator; + // to ensure "denominator" is required (not null) + if (denominator == null) + { + throw new ArgumentNullException("denominator is a required property for FillStatus and cannot be null"); + } + this.Denominator = denominator; + } + + /// + /// The numerator of the fill status + /// + /// The numerator of the fill status + /// 1 + [DataMember(Name = "numerator", IsRequired = true, EmitDefaultValue = true)] + public string Numerator { get; set; } + + /// + /// The denominator of the fill status + /// + /// The denominator of the fill status + /// 2 + [DataMember(Name = "denominator", IsRequired = true, EmitDefaultValue = true)] + public string Denominator { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FillStatus {\n"); + sb.Append(" Numerator: ").Append(Numerator).Append("\n"); + sb.Append(" Denominator: ").Append(Denominator).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs.meta new file mode 100644 index 00000000..fc2e42cf --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FillStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ad6dbb6ec448341589558d835fd888df +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs new file mode 100644 index 00000000..4d5b0971 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs @@ -0,0 +1,93 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FilledOrderStatus + /// + [DataContract(Name = "FilledOrderStatus")] + public partial class FilledOrderStatus + { + /// + /// A terminal order status indicating that an order has been fulfilled. + /// + /// A terminal order status indicating that an order has been fulfilled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum FILLED for value: FILLED + /// + [EnumMember(Value = "FILLED")] + FILLED = 1 + } + + + /// + /// A terminal order status indicating that an order has been fulfilled. + /// + /// A terminal order status indicating that an order has been fulfilled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FilledOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// A terminal order status indicating that an order has been fulfilled. (required). + public FilledOrderStatus(NameEnum name = default(NameEnum)) + { + this.Name = name; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FilledOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs.meta new file mode 100644 index 00000000..8e263579 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FilledOrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b356d2eefa5e3438ebc78e0a59e2bd6d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs b/src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs new file mode 100644 index 00000000..58d65cd4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs @@ -0,0 +1,108 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FulfillableOrder + /// + [DataContract(Name = "FulfillableOrder")] + public partial class FulfillableOrder + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillableOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// order (required). + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order. + /// extraData (required). + public FulfillableOrder(Order order = default(Order), string tokenId = default(string), string extraData = default(string)) + { + // to ensure "order" is required (not null) + if (order == null) + { + throw new ArgumentNullException("order is a required property for FulfillableOrder and cannot be null"); + } + this.Order = order; + // to ensure "extraData" is required (not null) + if (extraData == null) + { + throw new ArgumentNullException("extraData is a required property for FulfillableOrder and cannot be null"); + } + this.ExtraData = extraData; + this.TokenId = tokenId; + } + + /// + /// Gets or Sets Order + /// + [DataMember(Name = "order", IsRequired = true, EmitDefaultValue = true)] + public Order Order { get; set; } + + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// 123 + [DataMember(Name = "token_id", EmitDefaultValue = false)] + public string TokenId { get; set; } + + /// + /// Gets or Sets ExtraData + /// + [DataMember(Name = "extra_data", IsRequired = true, EmitDefaultValue = true)] + public string ExtraData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillableOrder {\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ExtraData: ").Append(ExtraData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs.meta new file mode 100644 index 00000000..0a75ecf6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillableOrder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 11e381e94b90648f9a53b8fd7b411020 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs new file mode 100644 index 00000000..1302d979 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FulfillmentData200Response + /// + [DataContract(Name = "fulfillment_data_200_response")] + public partial class FulfillmentData200Response + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentData200Response() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public FulfillmentData200Response(FulfillmentData200ResponseResult result = default(FulfillmentData200ResponseResult)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for FulfillmentData200Response and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public FulfillmentData200ResponseResult Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillmentData200Response {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs.meta new file mode 100644 index 00000000..d22f2dc0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200Response.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a519dd6bfb955482a849f3482ff550ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs new file mode 100644 index 00000000..cec044f1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FulfillmentData200ResponseResult + /// + [DataContract(Name = "fulfillment_data_200_response_result")] + public partial class FulfillmentData200ResponseResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentData200ResponseResult() { } + /// + /// Initializes a new instance of the class. + /// + /// fulfillableOrders (required). + /// unfulfillableOrders (required). + public FulfillmentData200ResponseResult(List fulfillableOrders = default(List), List unfulfillableOrders = default(List)) + { + // to ensure "fulfillableOrders" is required (not null) + if (fulfillableOrders == null) + { + throw new ArgumentNullException("fulfillableOrders is a required property for FulfillmentData200ResponseResult and cannot be null"); + } + this.FulfillableOrders = fulfillableOrders; + // to ensure "unfulfillableOrders" is required (not null) + if (unfulfillableOrders == null) + { + throw new ArgumentNullException("unfulfillableOrders is a required property for FulfillmentData200ResponseResult and cannot be null"); + } + this.UnfulfillableOrders = unfulfillableOrders; + } + + /// + /// Gets or Sets FulfillableOrders + /// + [DataMember(Name = "fulfillable_orders", IsRequired = true, EmitDefaultValue = true)] + public List FulfillableOrders { get; set; } + + /// + /// Gets or Sets UnfulfillableOrders + /// + [DataMember(Name = "unfulfillable_orders", IsRequired = true, EmitDefaultValue = true)] + public List UnfulfillableOrders { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillmentData200ResponseResult {\n"); + sb.Append(" FulfillableOrders: ").Append(FulfillableOrders).Append("\n"); + sb.Append(" UnfulfillableOrders: ").Append(UnfulfillableOrders).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs.meta new file mode 100644 index 00000000..1db59c60 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentData200ResponseResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 21e845fa32d714c82949b33f6ad1952e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs new file mode 100644 index 00000000..5809a3c1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs @@ -0,0 +1,120 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FulfillmentDataRequest + /// + [DataContract(Name = "FulfillmentDataRequest")] + public partial class FulfillmentDataRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FulfillmentDataRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// orderId (required). + /// Address of the intended account fulfilling the order (required). + /// fees (required). + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order. + public FulfillmentDataRequest(Guid orderId = default(Guid), string takerAddress = default(string), List fees = default(List), string tokenId = default(string)) + { + this.OrderId = orderId; + // to ensure "takerAddress" is required (not null) + if (takerAddress == null) + { + throw new ArgumentNullException("takerAddress is a required property for FulfillmentDataRequest and cannot be null"); + } + this.TakerAddress = takerAddress; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for FulfillmentDataRequest and cannot be null"); + } + this.Fees = fees; + this.TokenId = tokenId; + } + + /// + /// Gets or Sets OrderId + /// + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public Guid OrderId { get; set; } + + /// + /// Address of the intended account fulfilling the order + /// + /// Address of the intended account fulfilling the order + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "taker_address", IsRequired = true, EmitDefaultValue = true)] + public string TakerAddress { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [{"type":"TAKER_ECOSYSTEM","amount":"2250000000000000000","recipient_address":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233"}] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// 123 + [DataMember(Name = "token_id", EmitDefaultValue = false)] + public string TokenId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FulfillmentDataRequest {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" TakerAddress: ").Append(TakerAddress).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs.meta new file mode 100644 index 00000000..a0618c3e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FulfillmentDataRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 48c42d380666b49ec9ff9f968d61f0f9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs new file mode 100644 index 00000000..156082bb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Single activity + /// + [DataContract(Name = "GetActivityResult")] + public partial class GetActivityResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetActivityResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetActivityResult(Activity result = default(Activity)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetActivityResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Activity Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetActivityResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs.meta new file mode 100644 index 00000000..db6de8f1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetActivityResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bde8632ea1f5e42a08cd7a747c908a94 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs new file mode 100644 index 00000000..dfd14386 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Single Collection + /// + [DataContract(Name = "GetCollectionResult")] + public partial class GetCollectionResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetCollectionResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetCollectionResult(Collection result = default(Collection)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetCollectionResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Collection Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetCollectionResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs.meta new file mode 100644 index 00000000..891944c5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetCollectionResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae0c0c472f91543fb8ad1f8fc913c3ed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs new file mode 100644 index 00000000..7a3499f0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs @@ -0,0 +1,84 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// GetLinkedAddressesRes + /// + [DataContract(Name = "GetLinkedAddressesRes")] + public partial class GetLinkedAddressesRes + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetLinkedAddressesRes() { } + /// + /// Initializes a new instance of the class. + /// + /// The user's list of linked addresses (required). + public GetLinkedAddressesRes(List linkedAddresses = default(List)) + { + // to ensure "linkedAddresses" is required (not null) + if (linkedAddresses == null) + { + throw new ArgumentNullException("linkedAddresses is a required property for GetLinkedAddressesRes and cannot be null"); + } + this.LinkedAddresses = linkedAddresses; + } + + /// + /// The user's list of linked addresses + /// + /// The user's list of linked addresses + [DataMember(Name = "linked_addresses", IsRequired = true, EmitDefaultValue = true)] + public List LinkedAddresses { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetLinkedAddressesRes {\n"); + sb.Append(" LinkedAddresses: ").Append(LinkedAddresses).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs.meta new file mode 100644 index 00000000..16544c8b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetLinkedAddressesRes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4fe71c916224b4a13a7f1448c076586b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs new file mode 100644 index 00000000..b5fef25d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Single metadata + /// + [DataContract(Name = "GetMetadataResult")] + public partial class GetMetadataResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetMetadataResult(Metadata result = default(Metadata)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetMetadataResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Metadata Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetMetadataResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs.meta new file mode 100644 index 00000000..472f7434 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetMetadataResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9668e9567fc454d118e83da46dac6f03 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs new file mode 100644 index 00000000..48d37473 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs @@ -0,0 +1,228 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// GetMintRequestResult + /// + [DataContract(Name = "GetMintRequestResult")] + public partial class GetMintRequestResult + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public MintRequestStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetMintRequestResult() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of the contract (required). + /// The reference id of this mint request (required). + /// The address of the owner of the NFT (required). + /// An `uint256` token id as string. Only available when the mint request succeeds (required). + /// An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts. + /// The id of the mint activity associated with this mint request. + /// The transaction hash of the activity (required). + /// When the mint request was created (required). + /// When the mint request was last updated (required). + /// error (required). + /// status (required). + public GetMintRequestResult(Chain chain = default(Chain), string collectionAddress = default(string), string referenceId = default(string), string ownerAddress = default(string), string tokenId = default(string), string amount = default(string), Guid? activityId = default(Guid?), string transactionHash = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), MintRequestErrorMessage error = default(MintRequestErrorMessage), MintRequestStatus status = default(MintRequestStatus)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for GetMintRequestResult and cannot be null"); + } + this.Chain = chain; + // to ensure "collectionAddress" is required (not null) + if (collectionAddress == null) + { + throw new ArgumentNullException("collectionAddress is a required property for GetMintRequestResult and cannot be null"); + } + this.CollectionAddress = collectionAddress; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for GetMintRequestResult and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "ownerAddress" is required (not null) + if (ownerAddress == null) + { + throw new ArgumentNullException("ownerAddress is a required property for GetMintRequestResult and cannot be null"); + } + this.OwnerAddress = ownerAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for GetMintRequestResult and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "transactionHash" is required (not null) + if (transactionHash == null) + { + throw new ArgumentNullException("transactionHash is a required property for GetMintRequestResult and cannot be null"); + } + this.TransactionHash = transactionHash; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "error" is required (not null) + if (error == null) + { + throw new ArgumentNullException("error is a required property for GetMintRequestResult and cannot be null"); + } + this.Error = error; + this.Status = status; + this.Amount = amount; + this.ActivityId = activityId; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "collection_address", IsRequired = true, EmitDefaultValue = true)] + public string CollectionAddress { get; set; } + + /// + /// The reference id of this mint request + /// + /// The reference id of this mint request + [DataMember(Name = "reference_id", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The address of the owner of the NFT + /// + /// The address of the owner of the NFT + [DataMember(Name = "owner_address", IsRequired = true, EmitDefaultValue = true)] + public string OwnerAddress { get; set; } + + /// + /// An `uint256` token id as string. Only available when the mint request succeeds + /// + /// An `uint256` token id as string. Only available when the mint request succeeds + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts + /// + /// An `uint256` amount as string. Only relevant for mint requests on ERC1155 contracts + /// 1 + [DataMember(Name = "amount", EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// The id of the mint activity associated with this mint request + /// + /// The id of the mint activity associated with this mint request + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "activity_id", EmitDefaultValue = true)] + public Guid? ActivityId { get; set; } + + /// + /// The transaction hash of the activity + /// + /// The transaction hash of the activity + /// 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + [DataMember(Name = "transaction_hash", IsRequired = true, EmitDefaultValue = true)] + public string TransactionHash { get; set; } + + /// + /// When the mint request was created + /// + /// When the mint request was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the mint request was last updated + /// + /// When the mint request was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets Error + /// + [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] + public MintRequestErrorMessage Error { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetMintRequestResult {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" CollectionAddress: ").Append(CollectionAddress).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" OwnerAddress: ").Append(OwnerAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ActivityId: ").Append(ActivityId).Append("\n"); + sb.Append(" TransactionHash: ").Append(TransactionHash).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs.meta new file mode 100644 index 00000000..1fdc6765 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetMintRequestResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 71a7d89ced4134691bca0d764a0f3bf5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs new file mode 100644 index 00000000..064996b8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Single NFT + /// + [DataContract(Name = "GetNFTResult")] + public partial class GetNFTResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetNFTResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetNFTResult(NFT result = default(NFT)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetNFTResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public NFT Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetNFTResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs.meta new file mode 100644 index 00000000..7529b2b8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetNFTResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d2a2c85ced6b24798aee091a77f36100 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs new file mode 100644 index 00000000..6efdd63b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Single Token + /// + [DataContract(Name = "GetTokenResult")] + public partial class GetTokenResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GetTokenResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public GetTokenResult(Token result = default(Token)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for GetTokenResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Token Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GetTokenResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs.meta new file mode 100644 index 00000000..55e3d08a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/GetTokenResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6f488577f8d084bdcb1ab864d9c6ee92 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs new file mode 100644 index 00000000..3564f9fc --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// InactiveOrderStatus + /// + [DataContract(Name = "InactiveOrderStatus")] + public partial class InactiveOrderStatus + { + /// + /// The order status that indicates an order cannot be fulfilled. + /// + /// The order status that indicates an order cannot be fulfilled. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum INACTIVE for value: INACTIVE + /// + [EnumMember(Value = "INACTIVE")] + INACTIVE = 1 + } + + + /// + /// The order status that indicates an order cannot be fulfilled. + /// + /// The order status that indicates an order cannot be fulfilled. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InactiveOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status that indicates an order cannot be fulfilled. (required). + /// Whether the order offerer has sufficient approvals (required). + /// Whether the order offerer still has sufficient balance to complete the order (required). + public InactiveOrderStatus(NameEnum name = default(NameEnum), bool sufficientApprovals = default(bool), bool sufficientBalances = default(bool)) + { + this.Name = name; + this.SufficientApprovals = sufficientApprovals; + this.SufficientBalances = sufficientBalances; + } + + /// + /// Whether the order offerer has sufficient approvals + /// + /// Whether the order offerer has sufficient approvals + /// false + [DataMember(Name = "sufficient_approvals", IsRequired = true, EmitDefaultValue = true)] + public bool SufficientApprovals { get; set; } + + /// + /// Whether the order offerer still has sufficient balance to complete the order + /// + /// Whether the order offerer still has sufficient balance to complete the order + /// false + [DataMember(Name = "sufficient_balances", IsRequired = true, EmitDefaultValue = true)] + public bool SufficientBalances { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InactiveOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" SufficientApprovals: ").Append(SufficientApprovals).Append("\n"); + sb.Append(" SufficientBalances: ").Append(SufficientBalances).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs.meta new file mode 100644 index 00000000..1012f8d9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/InactiveOrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5dbf265272308481fa7b8e7785245c54 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Item.cs b/src/Packages/ZkEvmApi/Runtime/Model/Item.cs new file mode 100644 index 00000000..ecfc86b8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Item.cs @@ -0,0 +1,434 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Item + /// + [JsonConverter(typeof(ItemJsonConverter))] + [DataContract(Name = "Item")] + public partial class Item : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of NativeItem. + public Item(NativeItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC20Item. + public Item(ERC20Item actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC721Item. + public Item(ERC721Item actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC1155Item. + public Item(ERC1155Item actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC721CollectionItem. + public Item(ERC721CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ERC1155CollectionItem. + public Item(ERC1155CollectionItem actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ERC1155CollectionItem) || value is ERC1155CollectionItem) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC1155Item) || value is ERC1155Item) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC20Item) || value is ERC20Item) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC721CollectionItem) || value is ERC721CollectionItem) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ERC721Item) || value is ERC721Item) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(NativeItem) || value is NativeItem) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ERC1155CollectionItem, ERC1155Item, ERC20Item, ERC721CollectionItem, ERC721Item, NativeItem"); + } + } + } + + /// + /// Get the actual instance of `NativeItem`. If the actual instance is not `NativeItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of NativeItem + public NativeItem GetNativeItem() + { + return (NativeItem)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC20Item`. If the actual instance is not `ERC20Item`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC20Item + public ERC20Item GetERC20Item() + { + return (ERC20Item)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC721Item`. If the actual instance is not `ERC721Item`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC721Item + public ERC721Item GetERC721Item() + { + return (ERC721Item)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC1155Item`. If the actual instance is not `ERC1155Item`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC1155Item + public ERC1155Item GetERC1155Item() + { + return (ERC1155Item)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC721CollectionItem`. If the actual instance is not `ERC721CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC721CollectionItem + public ERC721CollectionItem GetERC721CollectionItem() + { + return (ERC721CollectionItem)this.ActualInstance; + } + + /// + /// Get the actual instance of `ERC1155CollectionItem`. If the actual instance is not `ERC1155CollectionItem`, + /// the InvalidClassException will be thrown + /// + /// An instance of ERC1155CollectionItem + public ERC1155CollectionItem GetERC1155CollectionItem() + { + return (ERC1155CollectionItem)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Item {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, Item.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of Item + /// + /// JSON string + /// An instance of Item + public static Item FromJson(string jsonString) + { + Item newItem = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newItem; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC1155CollectionItem).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC1155CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC1155CollectionItem: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC1155Item).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC1155Item"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC1155Item: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC20Item).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC20Item"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC20Item: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC721CollectionItem).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC721CollectionItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC721CollectionItem: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ERC721Item).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ERC721Item"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ERC721Item: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(NativeItem).GetProperty("AdditionalProperties") == null) + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.SerializerSettings)); + } + else + { + newItem = new Item(JsonConvert.DeserializeObject(jsonString, Item.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("NativeItem"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into NativeItem: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newItem; + } + + } + + /// + /// Custom JSON converter for Item + /// + public class ItemJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(Item).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return Item.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return Item.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Item.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Item.cs.meta new file mode 100644 index 00000000..fad16ba5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8b8bb8af955604ac79c621a6620ac73c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs b/src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs new file mode 100644 index 00000000..53cc7d20 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs @@ -0,0 +1,154 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Most recent trade + /// + [DataContract(Name = "LastTrade")] + public partial class LastTrade + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LastTrade() { } + /// + /// Initializes a new instance of the class. + /// + /// Trade ID (required). + /// ETH Address of collection that the asset belongs to (required). + /// Token id of the traded asset (uint256 as string) (required). + /// Price details, list of payments involved in this trade (required). + /// Amount of the trade (uint256 as string) (required). + /// When the trade was created (required). + public LastTrade(Guid tradeId = default(Guid), string contractAddress = default(string), string tokenId = default(string), List priceDetails = default(List), string amount = default(string), DateTime createdAt = default(DateTime)) + { + this.TradeId = tradeId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for LastTrade and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for LastTrade and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "priceDetails" is required (not null) + if (priceDetails == null) + { + throw new ArgumentNullException("priceDetails is a required property for LastTrade and cannot be null"); + } + this.PriceDetails = priceDetails; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for LastTrade and cannot be null"); + } + this.Amount = amount; + this.CreatedAt = createdAt; + } + + /// + /// Trade ID + /// + /// Trade ID + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "trade_id", IsRequired = true, EmitDefaultValue = true)] + public Guid TradeId { get; set; } + + /// + /// ETH Address of collection that the asset belongs to + /// + /// ETH Address of collection that the asset belongs to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Token id of the traded asset (uint256 as string) + /// + /// Token id of the traded asset (uint256 as string) + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Price details, list of payments involved in this trade + /// + /// Price details, list of payments involved in this trade + [DataMember(Name = "price_details", IsRequired = true, EmitDefaultValue = true)] + public List PriceDetails { get; set; } + + /// + /// Amount of the trade (uint256 as string) + /// + /// Amount of the trade (uint256 as string) + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// When the trade was created + /// + /// When the trade was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LastTrade {\n"); + sb.Append(" TradeId: ").Append(TradeId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" PriceDetails: ").Append(PriceDetails).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs.meta new file mode 100644 index 00000000..b377ba88 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/LastTrade.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: efa1a2915da0941a9ab07d52e419820d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs b/src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs new file mode 100644 index 00000000..5385bc19 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs @@ -0,0 +1,131 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Link wallet V2 request + /// + [DataContract(Name = "LinkWalletV2Request")] + public partial class LinkWalletV2Request + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkWalletV2Request() { } + /// + /// Initializes a new instance of the class. + /// + /// This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". (required). + /// The address of the external wallet being linked to Passport (required). + /// The EIP-712 signature (required). + /// A unique identifier for the signature (required). + public LinkWalletV2Request(string type = default(string), string walletAddress = default(string), string signature = default(string), string nonce = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for LinkWalletV2Request and cannot be null"); + } + this.Type = type; + // to ensure "walletAddress" is required (not null) + if (walletAddress == null) + { + throw new ArgumentNullException("walletAddress is a required property for LinkWalletV2Request and cannot be null"); + } + this.WalletAddress = walletAddress; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for LinkWalletV2Request and cannot be null"); + } + this.Signature = signature; + // to ensure "nonce" is required (not null) + if (nonce == null) + { + throw new ArgumentNullException("nonce is a required property for LinkWalletV2Request and cannot be null"); + } + this.Nonce = nonce; + } + + /// + /// This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". + /// + /// This should be the EIP-6963 rdns value, if you're unable to get the rdns value you can provide \"External\". If using WalletConnect then provide \"WalletConnect\". + /// io.metamask + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// The address of the external wallet being linked to Passport + /// + /// The address of the external wallet being linked to Passport + /// 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + [DataMember(Name = "wallet_address", IsRequired = true, EmitDefaultValue = true)] + public string WalletAddress { get; set; } + + /// + /// The EIP-712 signature + /// + /// The EIP-712 signature + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// A unique identifier for the signature + /// + /// A unique identifier for the signature + [DataMember(Name = "nonce", IsRequired = true, EmitDefaultValue = true)] + public string Nonce { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinkWalletV2Request {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" WalletAddress: ").Append(WalletAddress).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" Nonce: ").Append(Nonce).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs.meta new file mode 100644 index 00000000..ee7f936a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/LinkWalletV2Request.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d65c8e9fee7f844a7b68adcb59088546 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs new file mode 100644 index 00000000..7e8b1e2d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// List activities response + /// + [DataContract(Name = "ListActivitiesResult")] + public partial class ListActivitiesResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListActivitiesResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of activities (required). + /// page (required). + public ListActivitiesResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListActivitiesResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListActivitiesResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of activities + /// + /// List of activities + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListActivitiesResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs.meta new file mode 100644 index 00000000..58d92a9e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListActivitiesResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ab3d8cf4e6b554757852980ac1afeb3d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs new file mode 100644 index 00000000..c011ec85 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListBidsResult + /// + [DataContract(Name = "ListBidsResult")] + public partial class ListBidsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListBidsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListBidsResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListBidsResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListBidsResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListBidsResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs.meta new file mode 100644 index 00000000..c0f33fc3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListBidsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92b59b2d3377e4145bc9512f71e82e0f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs new file mode 100644 index 00000000..39ad0522 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListChainsResult + /// + [DataContract(Name = "ListChainsResult")] + public partial class ListChainsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListChainsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of chains (required). + /// page (required). + public ListChainsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListChainsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListChainsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of chains + /// + /// List of chains + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListChainsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs.meta new file mode 100644 index 00000000..f54aa2e0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListChainsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4ca2749bb7a5a4f989ff2414099a871c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs new file mode 100644 index 00000000..9ed661f7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListCollectionBidsResult + /// + [DataContract(Name = "ListCollectionBidsResult")] + public partial class ListCollectionBidsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListCollectionBidsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListCollectionBidsResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListCollectionBidsResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListCollectionBidsResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListCollectionBidsResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs.meta new file mode 100644 index 00000000..2161f1aa --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionBidsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e7a36adaf4e16453ebf0f45ddb7714f6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs new file mode 100644 index 00000000..4cacbacc --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListCollectionOwnersResult + /// + [DataContract(Name = "ListCollectionOwnersResult")] + public partial class ListCollectionOwnersResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListCollectionOwnersResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of NFT owners (required). + /// page (required). + public ListCollectionOwnersResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListCollectionOwnersResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListCollectionOwnersResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of NFT owners + /// + /// List of NFT owners + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListCollectionOwnersResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs.meta new file mode 100644 index 00000000..d2cb13d7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionOwnersResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 50b705abc59c942f7ba1c736e06229ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs new file mode 100644 index 00000000..b7eb9956 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListCollectionsResult + /// + [DataContract(Name = "ListCollectionsResult")] + public partial class ListCollectionsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListCollectionsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of collections (required). + /// page (required). + public ListCollectionsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListCollectionsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListCollectionsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of collections + /// + /// List of collections + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListCollectionsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs.meta new file mode 100644 index 00000000..fa5410db --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListCollectionsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f1a2b3e8136645529426a07bd18ecbb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs new file mode 100644 index 00000000..74445394 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListListingsResult + /// + [DataContract(Name = "ListListingsResult")] + public partial class ListListingsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListListingsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListListingsResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListListingsResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListListingsResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListListingsResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs.meta new file mode 100644 index 00000000..e42ac67b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListListingsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 954abd065ae8d49c9843a4a3a1bc6c21 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs new file mode 100644 index 00000000..6bb0d84e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListMetadataResult + /// + [DataContract(Name = "ListMetadataResult")] + public partial class ListMetadataResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of metadata (required). + /// page (required). + public ListMetadataResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListMetadataResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListMetadataResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of metadata + /// + /// List of metadata + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListMetadataResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs.meta new file mode 100644 index 00000000..3651f4ec --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListMetadataResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 43f68a19e6a1f4e84bf3cc088a68cc77 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs new file mode 100644 index 00000000..a5bd55c5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// List mint requests + /// + [DataContract(Name = "ListMintRequestsResult")] + public partial class ListMintRequestsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListMintRequestsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of mint requests (required). + /// page (required). + public ListMintRequestsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListMintRequestsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListMintRequestsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of mint requests + /// + /// List of mint requests + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListMintRequestsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs.meta new file mode 100644 index 00000000..2338a73a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListMintRequestsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 75c8b0280643a4db997de8cb2794844e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs new file mode 100644 index 00000000..25b3a4cc --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListNFTOwnersResult + /// + [DataContract(Name = "ListNFTOwnersResult")] + public partial class ListNFTOwnersResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListNFTOwnersResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft owners (required). + /// page (required). + public ListNFTOwnersResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListNFTOwnersResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListNFTOwnersResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of nft owners + /// + /// List of nft owners + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListNFTOwnersResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs.meta new file mode 100644 index 00000000..9143ddce --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTOwnersResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fab63de5befe743abaab009c12aff7c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs new file mode 100644 index 00000000..ae1d218a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListNFTsByOwnerResult + /// + [DataContract(Name = "ListNFTsByOwnerResult")] + public partial class ListNFTsByOwnerResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListNFTsByOwnerResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of NFTs by owner (required). + /// page (required). + public ListNFTsByOwnerResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListNFTsByOwnerResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListNFTsByOwnerResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of NFTs by owner + /// + /// List of NFTs by owner + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListNFTsByOwnerResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs.meta new file mode 100644 index 00000000..af82aa64 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsByOwnerResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 107cc484c84614e16a4fbd6249864efc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs new file mode 100644 index 00000000..0c15595e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListNFTsResult + /// + [DataContract(Name = "ListNFTsResult")] + public partial class ListNFTsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListNFTsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of NFTs (required). + /// page (required). + public ListNFTsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListNFTsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListNFTsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of NFTs + /// + /// List of NFTs + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListNFTsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs.meta new file mode 100644 index 00000000..72d8f3b5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListNFTsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 22dd87ab95af84013bb11866914c92d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs new file mode 100644 index 00000000..96ba2de5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListTokensResult + /// + [DataContract(Name = "ListTokensResult")] + public partial class ListTokensResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListTokensResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of tokens (required). + /// page (required). + public ListTokensResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListTokensResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListTokensResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of tokens + /// + /// List of tokens + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListTokensResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs.meta new file mode 100644 index 00000000..6a0c1444 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListTokensResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 76613ab7c66e141be86d95ec8dba57c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs new file mode 100644 index 00000000..327be88d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs @@ -0,0 +1,97 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListTradeResult + /// + [DataContract(Name = "ListTradeResult")] + public partial class ListTradeResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListTradeResult() { } + /// + /// Initializes a new instance of the class. + /// + /// page (required). + /// result (required). + public ListTradeResult(Page page = default(Page), List result = default(List)) + { + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for ListTradeResult and cannot be null"); + } + this.Page = page; + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListTradeResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListTradeResult {\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs.meta new file mode 100644 index 00000000..ac06d39f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListTradeResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8c122e786da5e4353b21db54f282e4b8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Listing.cs b/src/Packages/ZkEvmApi/Runtime/Model/Listing.cs new file mode 100644 index 00000000..66db2417 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Listing.cs @@ -0,0 +1,179 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Listing + /// + [DataContract(Name = "Listing")] + public partial class Listing + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Listing() { } + /// + /// Initializes a new instance of the class. + /// + /// Global Order identifier (required). + /// priceDetails (required). + /// A mapping of converted prices for major currencies such as ETH, USD. All converted prices are fee-inclusive. (required). + /// Token ID (required). + /// ETH Address of collection that the asset belongs to (required). + /// ETH Address of listing creator (required). + /// Amount of token included in the listing (required). + public Listing(string listingId = default(string), MarketPriceDetails priceDetails = default(MarketPriceDetails), Dictionary convertedPrices = default(Dictionary), string tokenId = default(string), string contractAddress = default(string), string creator = default(string), string amount = default(string)) + { + // to ensure "listingId" is required (not null) + if (listingId == null) + { + throw new ArgumentNullException("listingId is a required property for Listing and cannot be null"); + } + this.ListingId = listingId; + // to ensure "priceDetails" is required (not null) + if (priceDetails == null) + { + throw new ArgumentNullException("priceDetails is a required property for Listing and cannot be null"); + } + this.PriceDetails = priceDetails; + // to ensure "convertedPrices" is required (not null) + if (convertedPrices == null) + { + throw new ArgumentNullException("convertedPrices is a required property for Listing and cannot be null"); + } + this.ConvertedPrices = convertedPrices; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for Listing and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Listing and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "creator" is required (not null) + if (creator == null) + { + throw new ArgumentNullException("creator is a required property for Listing and cannot be null"); + } + this.Creator = creator; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Listing and cannot be null"); + } + this.Amount = amount; + } + + /// + /// Global Order identifier + /// + /// Global Order identifier + /// 018792C9-4AD7-8EC4-4038-9E05C598534A + [DataMember(Name = "listing_id", IsRequired = true, EmitDefaultValue = true)] + public string ListingId { get; set; } + + /// + /// Gets or Sets PriceDetails + /// + [DataMember(Name = "price_details", IsRequired = true, EmitDefaultValue = true)] + public MarketPriceDetails PriceDetails { get; set; } + + /// + /// A mapping of converted prices for major currencies such as ETH, USD. All converted prices are fee-inclusive. + /// + /// A mapping of converted prices for major currencies such as ETH, USD. All converted prices are fee-inclusive. + /// {"ETH":"0.0058079775","USD":"15.89"} + [DataMember(Name = "converted_prices", IsRequired = true, EmitDefaultValue = true)] + public Dictionary ConvertedPrices { get; set; } + + /// + /// Token ID + /// + /// Token ID + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// ETH Address of collection that the asset belongs to + /// + /// ETH Address of collection that the asset belongs to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// ETH Address of listing creator + /// + /// ETH Address of listing creator + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "creator", IsRequired = true, EmitDefaultValue = true)] + public string Creator { get; set; } + + /// + /// Amount of token included in the listing + /// + /// Amount of token included in the listing + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Listing {\n"); + sb.Append(" ListingId: ").Append(ListingId).Append("\n"); + sb.Append(" PriceDetails: ").Append(PriceDetails).Append("\n"); + sb.Append(" ConvertedPrices: ").Append(ConvertedPrices).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Creator: ").Append(Creator).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Listing.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Listing.cs.meta new file mode 100644 index 00000000..207261b4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Listing.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2cd8f7cb8919b4cdf8be9327919c39af +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs new file mode 100644 index 00000000..dafdb32a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ListingResult + /// + [DataContract(Name = "ListingResult")] + public partial class ListingResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ListingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public ListingResult(Order result = default(Order)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for ListingResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Order Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ListingResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs.meta new file mode 100644 index 00000000..2271b417 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ListingResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aae09b8e24ad2472885435afe3a7ad02 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Market.cs b/src/Packages/ZkEvmApi/Runtime/Model/Market.cs new file mode 100644 index 00000000..526876bd --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Market.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Market data + /// + [DataContract(Name = "Market")] + public partial class Market + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Market() { } + /// + /// Initializes a new instance of the class. + /// + /// Cheapest active listing (required). + /// lastTrade (required). + public Market(Listing floorListing = default(Listing), LastTrade lastTrade = default(LastTrade)) + { + // to ensure "floorListing" is required (not null) + if (floorListing == null) + { + throw new ArgumentNullException("floorListing is a required property for Market and cannot be null"); + } + this.FloorListing = floorListing; + // to ensure "lastTrade" is required (not null) + if (lastTrade == null) + { + throw new ArgumentNullException("lastTrade is a required property for Market and cannot be null"); + } + this.LastTrade = lastTrade; + } + + /// + /// Cheapest active listing + /// + /// Cheapest active listing + [DataMember(Name = "floor_listing", IsRequired = true, EmitDefaultValue = true)] + public Listing FloorListing { get; set; } + + /// + /// Gets or Sets LastTrade + /// + [DataMember(Name = "last_trade", IsRequired = true, EmitDefaultValue = true)] + public LastTrade LastTrade { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Market {\n"); + sb.Append(" FloorListing: ").Append(FloorListing).Append("\n"); + sb.Append(" LastTrade: ").Append(LastTrade).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Market.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Market.cs.meta new file mode 100644 index 00000000..949b65c0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Market.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 52b560b6a8f6f43a0ae3458b5c689aff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs new file mode 100644 index 00000000..a11ce69c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFT market data + /// + [DataContract(Name = "MarketNft")] + public partial class MarketNft + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketNft() { } + /// + /// Initializes a new instance of the class. + /// + /// lastTrade (required). + public MarketNft(LastTrade lastTrade = default(LastTrade)) + { + // to ensure "lastTrade" is required (not null) + if (lastTrade == null) + { + throw new ArgumentNullException("lastTrade is a required property for MarketNft and cannot be null"); + } + this.LastTrade = lastTrade; + } + + /// + /// Gets or Sets LastTrade + /// + [DataMember(Name = "last_trade", IsRequired = true, EmitDefaultValue = true)] + public LastTrade LastTrade { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketNft {\n"); + sb.Append(" LastTrade: ").Append(LastTrade).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs.meta new file mode 100644 index 00000000..74e8b688 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketNft.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 732ff1d38abec4824bab75ea295684d2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs new file mode 100644 index 00000000..326485f7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs @@ -0,0 +1,130 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Market Price details + /// + [DataContract(Name = "MarketPriceDetails")] + public partial class MarketPriceDetails + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketPriceDetails() { } + /// + /// Initializes a new instance of the class. + /// + /// token (required). + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) (required). + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) (required). + /// fees (required). + public MarketPriceDetails(MarketPriceDetailsToken token = default(MarketPriceDetailsToken), string amount = default(string), string feeInclusiveAmount = default(string), List fees = default(List)) + { + // to ensure "token" is required (not null) + if (token == null) + { + throw new ArgumentNullException("token is a required property for MarketPriceDetails and cannot be null"); + } + this.Token = token; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for MarketPriceDetails and cannot be null"); + } + this.Amount = amount; + // to ensure "feeInclusiveAmount" is required (not null) + if (feeInclusiveAmount == null) + { + throw new ArgumentNullException("feeInclusiveAmount is a required property for MarketPriceDetails and cannot be null"); + } + this.FeeInclusiveAmount = feeInclusiveAmount; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for MarketPriceDetails and cannot be null"); + } + this.Fees = fees; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] + public MarketPriceDetailsToken Token { get; set; } + + /// + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) + /// + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) + /// + /// The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) + /// 9750000000000000000 + [DataMember(Name = "fee_inclusive_amount", IsRequired = true, EmitDefaultValue = true)] + public string FeeInclusiveAmount { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [{"type":"TAKER_ECOSYSTEM","recipient_address":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233","amount":"1000000000000000000"}] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketPriceDetails {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" FeeInclusiveAmount: ").Append(FeeInclusiveAmount).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs.meta new file mode 100644 index 00000000..0389ffc0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetails.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6df03a290aecd4a5e903df3d7fa285cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs new file mode 100644 index 00000000..5d1ce780 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Token details + /// + [JsonConverter(typeof(MarketPriceDetailsTokenJsonConverter))] + [DataContract(Name = "MarketPriceDetails_token")] + public partial class MarketPriceDetailsToken : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of MarketPriceNativeToken. + public MarketPriceDetailsToken(MarketPriceNativeToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of MarketPriceERC20Token. + public MarketPriceDetailsToken(MarketPriceERC20Token actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(MarketPriceERC20Token) || value is MarketPriceERC20Token) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(MarketPriceNativeToken) || value is MarketPriceNativeToken) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: MarketPriceERC20Token, MarketPriceNativeToken"); + } + } + } + + /// + /// Get the actual instance of `MarketPriceNativeToken`. If the actual instance is not `MarketPriceNativeToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of MarketPriceNativeToken + public MarketPriceNativeToken GetMarketPriceNativeToken() + { + return (MarketPriceNativeToken)this.ActualInstance; + } + + /// + /// Get the actual instance of `MarketPriceERC20Token`. If the actual instance is not `MarketPriceERC20Token`, + /// the InvalidClassException will be thrown + /// + /// An instance of MarketPriceERC20Token + public MarketPriceERC20Token GetMarketPriceERC20Token() + { + return (MarketPriceERC20Token)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MarketPriceDetailsToken {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, MarketPriceDetailsToken.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of MarketPriceDetailsToken + /// + /// JSON string + /// An instance of MarketPriceDetailsToken + public static MarketPriceDetailsToken FromJson(string jsonString) + { + MarketPriceDetailsToken newMarketPriceDetailsToken = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newMarketPriceDetailsToken; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(MarketPriceERC20Token).GetProperty("AdditionalProperties") == null) + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.SerializerSettings)); + } + else + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("MarketPriceERC20Token"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into MarketPriceERC20Token: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(MarketPriceNativeToken).GetProperty("AdditionalProperties") == null) + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.SerializerSettings)); + } + else + { + newMarketPriceDetailsToken = new MarketPriceDetailsToken(JsonConvert.DeserializeObject(jsonString, MarketPriceDetailsToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("MarketPriceNativeToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into MarketPriceNativeToken: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newMarketPriceDetailsToken; + } + + } + + /// + /// Custom JSON converter for MarketPriceDetailsToken + /// + public class MarketPriceDetailsTokenJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(MarketPriceDetailsToken).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return MarketPriceDetailsToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return MarketPriceDetailsToken.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs.meta new file mode 100644 index 00000000..d016ff95 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceDetailsToken.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f56de31b8893a4e22be8690103f28803 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs new file mode 100644 index 00000000..6f33e38a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs @@ -0,0 +1,142 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// MarketPriceERC20Token + /// + [DataContract(Name = "MarketPriceERC20Token")] + public partial class MarketPriceERC20Token + { + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1 + } + + + /// + /// Token type user is offering, which in this case is ERC20 + /// + /// Token type user is offering, which in this case is ERC20 + /// ERC20 + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketPriceERC20Token() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is ERC20 (required). + /// Address of ERC20 token (required). + /// The symbol of token (required). + /// The decimals of token (required). + public MarketPriceERC20Token(TypeEnum type = default(TypeEnum), string contractAddress = default(string), string symbol = default(string), int? decimals = default(int?)) + { + this.Type = type; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for MarketPriceERC20Token and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for MarketPriceERC20Token and cannot be null"); + } + this.Symbol = symbol; + // to ensure "decimals" is required (not null) + if (decimals == null) + { + throw new ArgumentNullException("decimals is a required property for MarketPriceERC20Token and cannot be null"); + } + this.Decimals = decimals; + } + + /// + /// Address of ERC20 token + /// + /// Address of ERC20 token + /// 0x0165878A594ca255338adfa4d48449f69242Eb8F + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The symbol of token + /// + /// The symbol of token + /// ETH + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The decimals of token + /// + /// The decimals of token + /// 18 + [DataMember(Name = "decimals", IsRequired = true, EmitDefaultValue = true)] + public int? Decimals { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketPriceERC20Token {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Decimals: ").Append(Decimals).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs.meta new file mode 100644 index 00000000..da89839f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceERC20Token.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5cd0ec536de7a4751a147bc4b2b73c01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs new file mode 100644 index 00000000..61b49b20 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs @@ -0,0 +1,144 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// MarketPriceFees + /// + [DataContract(Name = "MarketPriceFees")] + public partial class MarketPriceFees + { + /// + /// Fee type + /// + /// Fee type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ROYALTY for value: ROYALTY + /// + [EnumMember(Value = "ROYALTY")] + ROYALTY = 1, + + /// + /// Enum MAKERECOSYSTEM for value: MAKER_ECOSYSTEM + /// + [EnumMember(Value = "MAKER_ECOSYSTEM")] + MAKERECOSYSTEM = 2, + + /// + /// Enum TAKERECOSYSTEM for value: TAKER_ECOSYSTEM + /// + [EnumMember(Value = "TAKER_ECOSYSTEM")] + TAKERECOSYSTEM = 3, + + /// + /// Enum PROTOCOL for value: PROTOCOL + /// + [EnumMember(Value = "PROTOCOL")] + PROTOCOL = 4 + } + + + /// + /// Fee type + /// + /// Fee type + /// ROYALTY + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketPriceFees() { } + /// + /// Initializes a new instance of the class. + /// + /// Fee in the payment currency (required). + /// Fee type (required). + /// Wallet address of fee recipient (required). + public MarketPriceFees(string amount = default(string), TypeEnum type = default(TypeEnum), string recipientAddress = default(string)) + { + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for MarketPriceFees and cannot be null"); + } + this.Amount = amount; + this.Type = type; + // to ensure "recipientAddress" is required (not null) + if (recipientAddress == null) + { + throw new ArgumentNullException("recipientAddress is a required property for MarketPriceFees and cannot be null"); + } + this.RecipientAddress = recipientAddress; + } + + /// + /// Fee in the payment currency + /// + /// Fee in the payment currency + /// 1000000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Wallet address of fee recipient + /// + /// Wallet address of fee recipient + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + [DataMember(Name = "recipient_address", IsRequired = true, EmitDefaultValue = true)] + public string RecipientAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketPriceFees {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" RecipientAddress: ").Append(RecipientAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs.meta new file mode 100644 index 00000000..eaea0102 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceFees.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 110a60421c4514b8c916b562c63540f7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs new file mode 100644 index 00000000..196efa01 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs @@ -0,0 +1,110 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// MarketPriceNativeToken + /// + [DataContract(Name = "MarketPriceNativeToken")] + public partial class MarketPriceNativeToken + { + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum NATIVE for value: NATIVE + /// + [EnumMember(Value = "NATIVE")] + NATIVE = 1 + } + + + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + /// NATIVE + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MarketPriceNativeToken() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is the native IMX token (required). + /// The symbol of token (required). + public MarketPriceNativeToken(TypeEnum type = default(TypeEnum), string symbol = default(string)) + { + this.Type = type; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for MarketPriceNativeToken and cannot be null"); + } + this.Symbol = symbol; + } + + /// + /// The symbol of token + /// + /// The symbol of token + /// IMX + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MarketPriceNativeToken {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs.meta new file mode 100644 index 00000000..451d175c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketPriceNativeToken.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8c89e75404c2c472cb9fdb36219bca89 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs b/src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs new file mode 100644 index 00000000..57f6b9eb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The contract type for a collection + /// + /// The contract type for a collection + [JsonConverter(typeof(StringEnumConverter))] + public enum MarketplaceContractType + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 2 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs.meta new file mode 100644 index 00000000..506aca99 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MarketplaceContractType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5f1f1686b2ba94a3d8bf5d6fa744645e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs b/src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs new file mode 100644 index 00000000..8d55f8df --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs @@ -0,0 +1,243 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Metadata + /// + [DataContract(Name = "Metadata")] + public partial class Metadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Metadata() { } + /// + /// Initializes a new instance of the class. + /// + /// Metadata id in UUIDv4 format (required). + /// chain (required). + /// The contract address of the metadata (required). + /// When the metadata was created (required). + /// When the metadata was last updated (required). + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT. + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + public Metadata(Guid id = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Metadata and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Metadata and cannot be null"); + } + this.ContractAddress = contractAddress; + this.CreatedAt = createdAt; + // to ensure "updatedAt" is required (not null) + if (updatedAt == null) + { + throw new ArgumentNullException("updatedAt is a required property for Metadata and cannot be null"); + } + this.UpdatedAt = updatedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Metadata and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Metadata and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for Metadata and cannot be null"); + } + this.Image = image; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for Metadata and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for Metadata and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for Metadata and cannot be null"); + } + this.Attributes = attributes; + this.ExternalUrl = externalUrl; + } + + /// + /// Metadata id in UUIDv4 format + /// + /// Metadata id in UUIDv4 format + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The contract address of the metadata + /// + /// The contract address of the metadata + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the metadata was created + /// + /// When the metadata was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the metadata was last updated + /// + /// When the metadata was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Metadata {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs.meta new file mode 100644 index 00000000..78a4ee8d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Metadata.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8332671bd037849669a39a5fae5bbbf6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs new file mode 100644 index 00000000..790cf429 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs @@ -0,0 +1,125 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// MetadataRefreshRateLimitResult + /// + [DataContract(Name = "MetadataRefreshRateLimitResult")] + public partial class MetadataRefreshRateLimitResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MetadataRefreshRateLimitResult() { } + /// + /// Initializes a new instance of the class. + /// + /// imxRefreshesLimit (required). + /// imxRefreshLimitReset (required). + /// imxRemainingRefreshes (required). + /// retryAfter (required). + public MetadataRefreshRateLimitResult(string imxRefreshesLimit = default(string), string imxRefreshLimitReset = default(string), string imxRemainingRefreshes = default(string), string retryAfter = default(string)) + { + // to ensure "imxRefreshesLimit" is required (not null) + if (imxRefreshesLimit == null) + { + throw new ArgumentNullException("imxRefreshesLimit is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.ImxRefreshesLimit = imxRefreshesLimit; + // to ensure "imxRefreshLimitReset" is required (not null) + if (imxRefreshLimitReset == null) + { + throw new ArgumentNullException("imxRefreshLimitReset is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.ImxRefreshLimitReset = imxRefreshLimitReset; + // to ensure "imxRemainingRefreshes" is required (not null) + if (imxRemainingRefreshes == null) + { + throw new ArgumentNullException("imxRemainingRefreshes is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.ImxRemainingRefreshes = imxRemainingRefreshes; + // to ensure "retryAfter" is required (not null) + if (retryAfter == null) + { + throw new ArgumentNullException("retryAfter is a required property for MetadataRefreshRateLimitResult and cannot be null"); + } + this.RetryAfter = retryAfter; + } + + /// + /// Gets or Sets ImxRefreshesLimit + /// + [DataMember(Name = "imx_refreshes_limit", IsRequired = true, EmitDefaultValue = true)] + public string ImxRefreshesLimit { get; set; } + + /// + /// Gets or Sets ImxRefreshLimitReset + /// + [DataMember(Name = "imx_refresh_limit_reset", IsRequired = true, EmitDefaultValue = true)] + public string ImxRefreshLimitReset { get; set; } + + /// + /// Gets or Sets ImxRemainingRefreshes + /// + [DataMember(Name = "imx_remaining_refreshes", IsRequired = true, EmitDefaultValue = true)] + public string ImxRemainingRefreshes { get; set; } + + /// + /// Gets or Sets RetryAfter + /// + [DataMember(Name = "retry_after", IsRequired = true, EmitDefaultValue = true)] + public string RetryAfter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MetadataRefreshRateLimitResult {\n"); + sb.Append(" ImxRefreshesLimit: ").Append(ImxRefreshesLimit).Append("\n"); + sb.Append(" ImxRefreshLimitReset: ").Append(ImxRefreshLimitReset).Append("\n"); + sb.Append(" ImxRemainingRefreshes: ").Append(ImxRemainingRefreshes).Append("\n"); + sb.Append(" RetryAfter: ").Append(RetryAfter).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs.meta new file mode 100644 index 00000000..9732c0f2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MetadataRefreshRateLimitResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 97953f195e8d847c49d2d8cdd389a490 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Mint.cs b/src/Packages/ZkEvmApi/Runtime/Model/Mint.cs new file mode 100644 index 00000000..8ade7483 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Mint.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The mint activity details + /// + [DataContract(Name = "Mint")] + public partial class Mint + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Mint() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was minted to (required). + /// The minted amount (required). + /// asset (required). + public Mint(string to = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Mint and cannot be null"); + } + this.To = to; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Mint and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Mint and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was minted to + /// + /// The account address the asset was minted to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The minted amount + /// + /// The minted amount + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Mint {\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Mint.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Mint.cs.meta new file mode 100644 index 00000000..632d00cc --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Mint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a62055dfb61f5472a8da5684ea970abd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs b/src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs new file mode 100644 index 00000000..0da3b32b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs @@ -0,0 +1,132 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// MintAsset + /// + [DataContract(Name = "MintAsset")] + public partial class MintAsset + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MintAsset() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of this asset in the system that originates the mint request (required). + /// The address of the receiver (required). + /// An optional `uint256` token id as string. Required for ERC1155 collections.. + /// Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1. + /// metadata. + public MintAsset(string referenceId = default(string), string ownerAddress = default(string), string tokenId = default(string), string amount = default(string), NFTMetadataRequest metadata = default(NFTMetadataRequest)) + { + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for MintAsset and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "ownerAddress" is required (not null) + if (ownerAddress == null) + { + throw new ArgumentNullException("ownerAddress is a required property for MintAsset and cannot be null"); + } + this.OwnerAddress = ownerAddress; + this.TokenId = tokenId; + this.Amount = amount; + this.Metadata = metadata; + } + + /// + /// The id of this asset in the system that originates the mint request + /// + /// The id of this asset in the system that originates the mint request + /// 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + [DataMember(Name = "reference_id", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The address of the receiver + /// + /// The address of the receiver + /// 0xc344c05eef8876e517072f879dae8905aa2b956b + [DataMember(Name = "owner_address", IsRequired = true, EmitDefaultValue = true)] + public string OwnerAddress { get; set; } + + /// + /// An optional `uint256` token id as string. Required for ERC1155 collections. + /// + /// An optional `uint256` token id as string. Required for ERC1155 collections. + /// 1 + [DataMember(Name = "token_id", EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1 + /// + /// Optional mount of tokens to mint. Required for ERC1155 collections. ERC712 collections can omit this field or set it to 1 + /// 1 + [DataMember(Name = "amount", EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Metadata + /// + [DataMember(Name = "metadata", EmitDefaultValue = false)] + public NFTMetadataRequest Metadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MintAsset {\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" OwnerAddress: ").Append(OwnerAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs.meta new file mode 100644 index 00000000..ac77763c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MintAsset.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7cf70ef500e704622af72dba23cc1460 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs new file mode 100644 index 00000000..50651892 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs @@ -0,0 +1,74 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The error details in case the mint request fails + /// + [DataContract(Name = "MintRequestErrorMessage")] + public partial class MintRequestErrorMessage + { + /// + /// Initializes a new instance of the class. + /// + /// An error message in case the mint request fails. + public MintRequestErrorMessage(string message = default(string)) + { + this.Message = message; + } + + /// + /// An error message in case the mint request fails + /// + /// An error message in case the mint request fails + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MintRequestErrorMessage {\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs.meta new file mode 100644 index 00000000..92d4edf4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestErrorMessage.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d3a33101eb3a840f29832884327392f4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs new file mode 100644 index 00000000..1bab27bf --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs @@ -0,0 +1,54 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The status of the mint request + /// + /// The status of the mint request + [JsonConverter(typeof(StringEnumConverter))] + public enum MintRequestStatus + { + /// + /// Enum Pending for value: pending + /// + [EnumMember(Value = "pending")] + Pending = 1, + + /// + /// Enum Succeeded for value: succeeded + /// + [EnumMember(Value = "succeeded")] + Succeeded = 2, + + /// + /// Enum Failed for value: failed + /// + [EnumMember(Value = "failed")] + Failed = 3 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs.meta new file mode 100644 index 00000000..de006478 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/MintRequestStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3068c1ac0ed844526a3cd4f56bc033d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFT.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFT.cs new file mode 100644 index 00000000..9bd63f69 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFT.cs @@ -0,0 +1,312 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFT + /// + [DataContract(Name = "NFT")] + public partial class NFT + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public NFTContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFT() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// An `uint256` token id as string (required). + /// The contract address of the NFT (required). + /// contractType (required). + /// When the NFT was first indexed (required). + /// When the NFT owner was last updated (required). + /// When NFT metadata was last synced (required). + /// The id of the metadata of this NFT. + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// (deprecated - use external_url instead) The external website link of NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of NFT Metadata attributes (required). + /// The total supply of NFT. + public NFT(Chain chain = default(Chain), string tokenId = default(string), string contractAddress = default(string), NFTContractType contractType = default(NFTContractType), DateTime indexedAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? metadataSyncedAt = default(DateTime?), Guid? metadataId = default(Guid?), string name = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), string totalSupply = default(string)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFT and cannot be null"); + } + this.Chain = chain; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFT and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFT and cannot be null"); + } + this.ContractAddress = contractAddress; + this.ContractType = contractType; + this.IndexedAt = indexedAt; + this.UpdatedAt = updatedAt; + // to ensure "metadataSyncedAt" is required (not null) + if (metadataSyncedAt == null) + { + throw new ArgumentNullException("metadataSyncedAt is a required property for NFT and cannot be null"); + } + this.MetadataSyncedAt = metadataSyncedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for NFT and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for NFT and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for NFT and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for NFT and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for NFT and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for NFT and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for NFT and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for NFT and cannot be null"); + } + this.Attributes = attributes; + this.MetadataId = metadataId; + this.TotalSupply = totalSupply; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The contract address of the NFT + /// + /// The contract address of the NFT + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the NFT was first indexed + /// + /// When the NFT was first indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// When the NFT owner was last updated + /// + /// When the NFT owner was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// When NFT metadata was last synced + /// + /// When NFT metadata was last synced + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "metadata_synced_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? MetadataSyncedAt { get; set; } + + /// + /// The id of the metadata of this NFT + /// + /// The id of the metadata of this NFT + /// ae83bc80-4dd5-11ee-be56-0242ac120002 + [DataMember(Name = "metadata_id", EmitDefaultValue = true)] + public Guid? MetadataId { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// (deprecated - use external_url instead) The external website link of NFT + /// + /// (deprecated - use external_url instead) The external website link of NFT + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + [Obsolete] + public string ExternalLink { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of NFT Metadata attributes + /// + /// List of NFT Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// The total supply of NFT + /// + /// The total supply of NFT + /// 100 + [DataMember(Name = "total_supply", EmitDefaultValue = true)] + public string TotalSupply { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFT {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" MetadataSyncedAt: ").Append(MetadataSyncedAt).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" TotalSupply: ").Append(TotalSupply).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFT.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFT.cs.meta new file mode 100644 index 00000000..49c4d4df --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFT.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d12e01d5755864c7d8c76025a07b7be0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs new file mode 100644 index 00000000..4bbf1682 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs @@ -0,0 +1,112 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFT bundle includes NFT with stack, markets and listings + /// + [DataContract(Name = "NFTBundle")] + public partial class NFTBundle + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTBundle() { } + /// + /// Initializes a new instance of the class. + /// + /// nftWithStack (required). + /// market (required). + /// List of open listings for the stack. (required). + public NFTBundle(NFTWithStack nftWithStack = default(NFTWithStack), Market market = default(Market), List listings = default(List)) + { + // to ensure "nftWithStack" is required (not null) + if (nftWithStack == null) + { + throw new ArgumentNullException("nftWithStack is a required property for NFTBundle and cannot be null"); + } + this.NftWithStack = nftWithStack; + // to ensure "market" is required (not null) + if (market == null) + { + throw new ArgumentNullException("market is a required property for NFTBundle and cannot be null"); + } + this.Market = market; + // to ensure "listings" is required (not null) + if (listings == null) + { + throw new ArgumentNullException("listings is a required property for NFTBundle and cannot be null"); + } + this.Listings = listings; + } + + /// + /// Gets or Sets NftWithStack + /// + [DataMember(Name = "nft_with_stack", IsRequired = true, EmitDefaultValue = true)] + public NFTWithStack NftWithStack { get; set; } + + /// + /// Gets or Sets Market + /// + [DataMember(Name = "market", IsRequired = true, EmitDefaultValue = true)] + public Market Market { get; set; } + + /// + /// List of open listings for the stack. + /// + /// List of open listings for the stack. + [DataMember(Name = "listings", IsRequired = true, EmitDefaultValue = true)] + public List Listings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTBundle {\n"); + sb.Append(" NftWithStack: ").Append(NftWithStack).Append("\n"); + sb.Append(" Market: ").Append(Market).Append("\n"); + sb.Append(" Listings: ").Append(Listings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs.meta new file mode 100644 index 00000000..aaee98a0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTBundle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 82fb7d90f86e44743b55f02c7035f650 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs new file mode 100644 index 00000000..cdddc2bb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The contract type for an NFT + /// + /// The contract type for an NFT + [JsonConverter(typeof(StringEnumConverter))] + public enum NFTContractType + { + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 1, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 2 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs.meta new file mode 100644 index 00000000..9c5bfa36 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTContractType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b575ad6bf44314efda7fe7fc0f3d6bae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs new file mode 100644 index 00000000..2b911a91 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs @@ -0,0 +1,142 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFTMetadataAttribute + /// + [DataContract(Name = "NFTMetadataAttribute")] + public partial class NFTMetadataAttribute + { + /// + /// Display type for this attribute + /// + /// Display type for this attribute + [JsonConverter(typeof(StringEnumConverter))] + public enum DisplayTypeEnum + { + /// + /// Enum Number for value: number + /// + [EnumMember(Value = "number")] + Number = 1, + + /// + /// Enum BoostPercentage for value: boost_percentage + /// + [EnumMember(Value = "boost_percentage")] + BoostPercentage = 2, + + /// + /// Enum BoostNumber for value: boost_number + /// + [EnumMember(Value = "boost_number")] + BoostNumber = 3, + + /// + /// Enum Date for value: date + /// + [EnumMember(Value = "date")] + Date = 4 + } + + + /// + /// Display type for this attribute + /// + /// Display type for this attribute + /// number + [DataMember(Name = "display_type", EmitDefaultValue = true)] + public DisplayTypeEnum? DisplayType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTMetadataAttribute() { } + /// + /// Initializes a new instance of the class. + /// + /// Display type for this attribute. + /// The metadata trait type (required). + /// value (required). + public NFTMetadataAttribute(DisplayTypeEnum? displayType = default(DisplayTypeEnum?), string traitType = default(string), NFTMetadataAttributeValue value = default(NFTMetadataAttributeValue)) + { + // to ensure "traitType" is required (not null) + if (traitType == null) + { + throw new ArgumentNullException("traitType is a required property for NFTMetadataAttribute and cannot be null"); + } + this.TraitType = traitType; + // to ensure "value" is required (not null) + if (value == null) + { + throw new ArgumentNullException("value is a required property for NFTMetadataAttribute and cannot be null"); + } + this.Value = value; + this.DisplayType = displayType; + } + + /// + /// The metadata trait type + /// + /// The metadata trait type + /// Aqua Power + [DataMember(Name = "trait_type", IsRequired = true, EmitDefaultValue = true)] + public string TraitType { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)] + public NFTMetadataAttributeValue Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTMetadataAttribute {\n"); + sb.Append(" DisplayType: ").Append(DisplayType).Append("\n"); + sb.Append(" TraitType: ").Append(TraitType).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs.meta new file mode 100644 index 00000000..799d83b5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttribute.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea7d88377882b44af94d93ea44029e5c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs new file mode 100644 index 00000000..5f62268a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs @@ -0,0 +1,302 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The metadata trait value + /// + [JsonConverter(typeof(NFTMetadataAttributeValueJsonConverter))] + [DataContract(Name = "NFTMetadataAttribute_value")] + public partial class NFTMetadataAttributeValue : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of string. + public NFTMetadataAttributeValue(string actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of decimal. + public NFTMetadataAttributeValue(decimal actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance; + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of bool. + public NFTMetadataAttributeValue(bool actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance; + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(bool) || value is bool) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(decimal) || value is decimal) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(string) || value is string) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: bool, decimal, string"); + } + } + } + + /// + /// Get the actual instance of `string`. If the actual instance is not `string`, + /// the InvalidClassException will be thrown + /// + /// An instance of string + public string GetString() + { + return (string)this.ActualInstance; + } + + /// + /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// the InvalidClassException will be thrown + /// + /// An instance of decimal + public decimal GetDecimal() + { + return (decimal)this.ActualInstance; + } + + /// + /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// the InvalidClassException will be thrown + /// + /// An instance of bool + public bool GetBool() + { + return (bool)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NFTMetadataAttributeValue {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, NFTMetadataAttributeValue.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of NFTMetadataAttributeValue + /// + /// JSON string + /// An instance of NFTMetadataAttributeValue + public static NFTMetadataAttributeValue FromJson(string jsonString) + { + NFTMetadataAttributeValue newNFTMetadataAttributeValue = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newNFTMetadataAttributeValue; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(bool).GetProperty("AdditionalProperties") == null) + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } + else + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("bool"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(decimal).GetProperty("AdditionalProperties") == null) + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } + else + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("decimal"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(string).GetProperty("AdditionalProperties") == null) + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.SerializerSettings)); + } + else + { + newNFTMetadataAttributeValue = new NFTMetadataAttributeValue(JsonConvert.DeserializeObject(jsonString, NFTMetadataAttributeValue.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("string"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into string: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newNFTMetadataAttributeValue; + } + + } + + /// + /// Custom JSON converter for NFTMetadataAttributeValue + /// + public class NFTMetadataAttributeValueJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(NFTMetadataAttributeValue).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.String: + return new NFTMetadataAttributeValue(Convert.ToString(reader.Value)); + case JsonToken.Float: + return new NFTMetadataAttributeValue(Convert.ToDecimal(reader.Value)); + case JsonToken.Boolean: + return new NFTMetadataAttributeValue(Convert.ToBoolean(reader.Value)); + case JsonToken.StartObject: + return NFTMetadataAttributeValue.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return NFTMetadataAttributeValue.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs.meta new file mode 100644 index 00000000..426ecc72 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataAttributeValue.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cf8db7b045bcb4d798d612b53cf34b29 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs new file mode 100644 index 00000000..e04f1fe8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs @@ -0,0 +1,140 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The NFT metadata. Total size of this object should not exceed 16 KiB + /// + [DataContract(Name = "NFTMetadataRequest")] + public partial class NFTMetadataRequest + { + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT. + /// The description of the NFT. + /// The image url of the NFT. + /// The external link of the NFT. + /// The animation url of the NFT. + /// The youtube link of the NFT. + /// List of Metadata attributes. + public NFTMetadataRequest(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + this.Name = name; + this.Description = description; + this.Image = image; + this.ExternalUrl = externalUrl; + this.AnimationUrl = animationUrl; + this.YoutubeUrl = youtubeUrl; + this.Attributes = attributes; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTMetadataRequest {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs.meta new file mode 100644 index 00000000..73c91c88 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTMetadataRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1b237adb72a54448b9e0068291dcde39 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs new file mode 100644 index 00000000..8257c21e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs @@ -0,0 +1,158 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFTOwner + /// + [DataContract(Name = "NFTOwner")] + public partial class NFTOwner + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTOwner() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of NFT contract (required). + /// An `uint256` token id as string (required). + /// The account address of the owner of the NFT (required). + /// The amount of owned tokens (uint256 as string) (required). + /// When the NFT owner was last updated. + public NFTOwner(Chain chain = default(Chain), string contractAddress = default(string), string tokenId = default(string), string accountAddress = default(string), string balance = default(string), DateTime updatedAt = default(DateTime)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTOwner and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTOwner and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTOwner and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for NFTOwner and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTOwner and cannot be null"); + } + this.Balance = balance; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of NFT contract + /// + /// The address of NFT contract + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The account address of the owner of the NFT + /// + /// The account address of the owner of the NFT + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// The amount of owned tokens (uint256 as string) + /// + /// The amount of owned tokens (uint256 as string) + /// 1 + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public string Balance { get; set; } + + /// + /// When the NFT owner was last updated + /// + /// When the NFT owner was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", EmitDefaultValue = false)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTOwner {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs.meta new file mode 100644 index 00000000..08a27c65 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTOwner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c75b7da90ef414182a7894ed1de90eb5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs new file mode 100644 index 00000000..6ebb116f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs @@ -0,0 +1,140 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFT quote result + /// + [DataContract(Name = "NFTQuoteResult")] + public partial class NFTQuoteResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTQuoteResult() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// Token id of NFT (uint256 as string) (required). + /// marketStack (required). + /// marketNft (required). + /// marketCollection (required). + public NFTQuoteResult(Chain chain = default(Chain), string tokenId = default(string), Market marketStack = default(Market), MarketNft marketNft = default(MarketNft), Market marketCollection = default(Market)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTQuoteResult and cannot be null"); + } + this.Chain = chain; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTQuoteResult and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "marketStack" is required (not null) + if (marketStack == null) + { + throw new ArgumentNullException("marketStack is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketStack = marketStack; + // to ensure "marketNft" is required (not null) + if (marketNft == null) + { + throw new ArgumentNullException("marketNft is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketNft = marketNft; + // to ensure "marketCollection" is required (not null) + if (marketCollection == null) + { + throw new ArgumentNullException("marketCollection is a required property for NFTQuoteResult and cannot be null"); + } + this.MarketCollection = marketCollection; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Token id of NFT (uint256 as string) + /// + /// Token id of NFT (uint256 as string) + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Gets or Sets MarketStack + /// + [DataMember(Name = "market_stack", IsRequired = true, EmitDefaultValue = true)] + public Market MarketStack { get; set; } + + /// + /// Gets or Sets MarketNft + /// + [DataMember(Name = "market_nft", IsRequired = true, EmitDefaultValue = true)] + public MarketNft MarketNft { get; set; } + + /// + /// Gets or Sets MarketCollection + /// + [DataMember(Name = "market_collection", IsRequired = true, EmitDefaultValue = true)] + public Market MarketCollection { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTQuoteResult {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" MarketStack: ").Append(MarketStack).Append("\n"); + sb.Append(" MarketNft: ").Append(MarketNft).Append("\n"); + sb.Append(" MarketCollection: ").Append(MarketCollection).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs.meta new file mode 100644 index 00000000..270ec9ec --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTQuoteResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 52868d2d2ba8f4ccfba1a38b917403a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs new file mode 100644 index 00000000..9eb1f0ea --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs @@ -0,0 +1,145 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The NFT Sale activity details + /// + [DataContract(Name = "NFTSale")] + public partial class NFTSale + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTSale() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of order (required). + /// The account address of buyer (required). + /// The account address of seller (required). + /// asset (required). + /// payment (required). + public NFTSale(string orderId = default(string), string to = default(string), string from = default(string), List asset = default(List), SalePayment payment = default(SalePayment)) + { + // to ensure "orderId" is required (not null) + if (orderId == null) + { + throw new ArgumentNullException("orderId is a required property for NFTSale and cannot be null"); + } + this.OrderId = orderId; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for NFTSale and cannot be null"); + } + this.To = to; + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for NFTSale and cannot be null"); + } + this.From = from; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for NFTSale and cannot be null"); + } + this.Asset = asset; + // to ensure "payment" is required (not null) + if (payment == null) + { + throw new ArgumentNullException("payment is a required property for NFTSale and cannot be null"); + } + this.Payment = payment; + } + + /// + /// The id of order + /// + /// The id of order + /// ARZ3NDEKTSV4RRFFQ69G5FAV + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } + + /// + /// The account address of buyer + /// + /// The account address of buyer + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The account address of seller + /// + /// The account address of seller + /// 0xbD6cFcf93474De653d7B42b346c7c25d1F9c559C + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public List Asset { get; set; } + + /// + /// Gets or Sets Payment + /// + [DataMember(Name = "payment", IsRequired = true, EmitDefaultValue = true)] + public SalePayment Payment { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTSale {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append(" Payment: ").Append(Payment).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs.meta new file mode 100644 index 00000000..97ae813a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTSale.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1be9fe22dab1f41608b7eba794301b0f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs new file mode 100644 index 00000000..de88dee7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs @@ -0,0 +1,300 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFTWithBalance + /// + [DataContract(Name = "NFTWithBalance")] + public partial class NFTWithBalance + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public NFTContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTWithBalance() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// An `uint256` token id as string (required). + /// The contract address of the NFT (required). + /// contractType (required). + /// When the NFT was first indexed (required). + /// When the NFT owner was last updated (required). + /// When NFT metadata was last synced (required). + /// The id of the metadata of this NFT. + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + /// The amount of this NFT this account owns (required). + public NFTWithBalance(Chain chain = default(Chain), string tokenId = default(string), string contractAddress = default(string), NFTContractType contractType = default(NFTContractType), DateTime indexedAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? metadataSyncedAt = default(DateTime?), Guid? metadataId = default(Guid?), string name = default(string), string description = default(string), string image = default(string), string externalLink = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), string balance = default(string)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTWithBalance and cannot be null"); + } + this.Chain = chain; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTWithBalance and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTWithBalance and cannot be null"); + } + this.ContractAddress = contractAddress; + this.ContractType = contractType; + this.IndexedAt = indexedAt; + this.UpdatedAt = updatedAt; + // to ensure "metadataSyncedAt" is required (not null) + if (metadataSyncedAt == null) + { + throw new ArgumentNullException("metadataSyncedAt is a required property for NFTWithBalance and cannot be null"); + } + this.MetadataSyncedAt = metadataSyncedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for NFTWithBalance and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for NFTWithBalance and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for NFTWithBalance and cannot be null"); + } + this.Image = image; + // to ensure "externalLink" is required (not null) + if (externalLink == null) + { + throw new ArgumentNullException("externalLink is a required property for NFTWithBalance and cannot be null"); + } + this.ExternalLink = externalLink; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for NFTWithBalance and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for NFTWithBalance and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for NFTWithBalance and cannot be null"); + } + this.Attributes = attributes; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTWithBalance and cannot be null"); + } + this.Balance = balance; + this.MetadataId = metadataId; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The contract address of the NFT + /// + /// The contract address of the NFT + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the NFT was first indexed + /// + /// When the NFT was first indexed + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// When the NFT owner was last updated + /// + /// When the NFT owner was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// When NFT metadata was last synced + /// + /// When NFT metadata was last synced + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "metadata_synced_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime? MetadataSyncedAt { get; set; } + + /// + /// The id of the metadata of this NFT + /// + /// The id of the metadata of this NFT + /// ae83bc80-4dd5-11ee-be56-0242ac120002 + [DataMember(Name = "metadata_id", EmitDefaultValue = true)] + public Guid? MetadataId { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// This is a super awesome sword + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_link", IsRequired = true, EmitDefaultValue = true)] + public string ExternalLink { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// The amount of this NFT this account owns + /// + /// The amount of this NFT this account owns + /// 11 + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public string Balance { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTWithBalance {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" MetadataSyncedAt: ").Append(MetadataSyncedAt).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalLink: ").Append(ExternalLink).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs.meta new file mode 100644 index 00000000..8df7f89e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithBalance.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8184dde9676694473ae1ba512c0031fc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs new file mode 100644 index 00000000..11a5412e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs @@ -0,0 +1,158 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NFTWithOwner + /// + [DataContract(Name = "NFTWithOwner")] + public partial class NFTWithOwner + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTWithOwner() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of NFT contract (required). + /// An `uint256` token id as string (required). + /// The account address of the owner of the NFT (required). + /// The amount of owned tokens (uint256 as string) (required). + /// When the owner last changed for the given NFT (required). + public NFTWithOwner(Chain chain = default(Chain), string contractAddress = default(string), string tokenId = default(string), string accountAddress = default(string), string balance = default(string), DateTime updatedAt = default(DateTime)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTWithOwner and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTWithOwner and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTWithOwner and cannot be null"); + } + this.TokenId = tokenId; + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for NFTWithOwner and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTWithOwner and cannot be null"); + } + this.Balance = balance; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of NFT contract + /// + /// The address of NFT contract + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// The account address of the owner of the NFT + /// + /// The account address of the owner of the NFT + /// 0x5a019874f4fae314b0eaa4606be746366e661306 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// The amount of owned tokens (uint256 as string) + /// + /// The amount of owned tokens (uint256 as string) + /// 1 + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public string Balance { get; set; } + + /// + /// When the owner last changed for the given NFT + /// + /// When the owner last changed for the given NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTWithOwner {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs.meta new file mode 100644 index 00000000..d37a3083 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithOwner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 62cfbf2dec402455a9722b3958eebaa0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs new file mode 100644 index 00000000..b33fda54 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs @@ -0,0 +1,280 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Stack + /// + [DataContract(Name = "NFTWithStack")] + public partial class NFTWithStack + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public MarketplaceContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NFTWithStack() { } + /// + /// Initializes a new instance of the class. + /// + /// Token id of NFT (uint256 as string) (required). + /// Stack ID (required). + /// chain (required). + /// Contract address (required). + /// contractType (required). + /// When the metadata was created (required). + /// When the metadata was last updated (required). + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + /// Balance of NFT (required). + public NFTWithStack(string tokenId = default(string), Guid stackId = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), MarketplaceContractType contractType = default(MarketplaceContractType), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), int? balance = default(int?)) + { + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for NFTWithStack and cannot be null"); + } + this.TokenId = tokenId; + this.StackId = stackId; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for NFTWithStack and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for NFTWithStack and cannot be null"); + } + this.ContractAddress = contractAddress; + this.ContractType = contractType; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for NFTWithStack and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for NFTWithStack and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for NFTWithStack and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for NFTWithStack and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for NFTWithStack and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for NFTWithStack and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for NFTWithStack and cannot be null"); + } + this.Attributes = attributes; + // to ensure "balance" is required (not null) + if (balance == null) + { + throw new ArgumentNullException("balance is a required property for NFTWithStack and cannot be null"); + } + this.Balance = balance; + } + + /// + /// Token id of NFT (uint256 as string) + /// + /// Token id of NFT (uint256 as string) + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Stack ID + /// + /// Stack ID + [DataMember(Name = "stack_id", IsRequired = true, EmitDefaultValue = true)] + public Guid StackId { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Contract address + /// + /// Contract address + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the metadata was created + /// + /// When the metadata was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the metadata was last updated + /// + /// When the metadata was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Balance of NFT + /// + /// Balance of NFT + [DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)] + public int? Balance { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NFTWithStack {\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" StackId: ").Append(StackId).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" Balance: ").Append(Balance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs.meta new file mode 100644 index 00000000..bf3a3e0e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NFTWithStack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 511d2ba474b864c8e94a762a05c2e4e9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs b/src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs new file mode 100644 index 00000000..b2045f5b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs @@ -0,0 +1,110 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// NativeItem + /// + [DataContract(Name = "NativeItem")] + public partial class NativeItem + { + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum NATIVE for value: NATIVE + /// + [EnumMember(Value = "NATIVE")] + NATIVE = 1 + } + + + /// + /// Token type user is offering, which in this case is the native IMX token + /// + /// Token type user is offering, which in this case is the native IMX token + /// NATIVE + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NativeItem() { } + /// + /// Initializes a new instance of the class. + /// + /// Token type user is offering, which in this case is the native IMX token (required). + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). (required). + public NativeItem(TypeEnum type = default(TypeEnum), string amount = default(string)) + { + this.Type = type; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for NativeItem and cannot be null"); + } + this.Amount = amount; + } + + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// + /// A string representing the price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum). + /// 9750000000000000000 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class NativeItem {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs.meta new file mode 100644 index 00000000..f78f6099 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/NativeItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 35b8225ce509b4251b803ad5a0d5f46b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs new file mode 100644 index 00000000..3f04802b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs @@ -0,0 +1,149 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// OperatorAllowlistContractStatus + /// + [DataContract(Name = "OperatorAllowlistContractStatus")] + public partial class OperatorAllowlistContractStatus + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistContractStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of the contract (required). + /// status (required). + /// details (required). + /// When the contract status was created (required). + /// Who created the status (required). + public OperatorAllowlistContractStatus(Chain chain = default(Chain), string contractAddress = default(string), OperatorAllowlistStatus status = default(OperatorAllowlistStatus), OperatorAllowlistStatusDetails details = default(OperatorAllowlistStatusDetails), DateTime createdAt = default(DateTime), string createdBy = default(string)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.ContractAddress = contractAddress; + this.Status = status; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.Details = details; + this.CreatedAt = createdAt; + // to ensure "createdBy" is required (not null) + if (createdBy == null) + { + throw new ArgumentNullException("createdBy is a required property for OperatorAllowlistContractStatus and cannot be null"); + } + this.CreatedBy = createdBy; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatusDetails Details { get; set; } + + /// + /// When the contract status was created + /// + /// When the contract status was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Who created the status + /// + /// Who created the status + /// user@immutable.com + [DataMember(Name = "created_by", IsRequired = true, EmitDefaultValue = true)] + public string CreatedBy { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistContractStatus {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs.meta new file mode 100644 index 00000000..2666439f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0b336b7857c1a4131b3b7276c012ce88 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs new file mode 100644 index 00000000..95bdf703 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs @@ -0,0 +1,174 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// OperatorAllowlistContractStatusInternal + /// + [DataContract(Name = "OperatorAllowlistContractStatusInternal")] + public partial class OperatorAllowlistContractStatusInternal + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatus Status { get; set; } + + /// + /// Gets or Sets OrgTier + /// + [DataMember(Name = "org_tier", IsRequired = true, EmitDefaultValue = true)] + public OrganisationTier OrgTier { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistContractStatusInternal() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of the contract (required). + /// status (required). + /// details (required). + /// When the contract status was created (required). + /// Who created the status (required). + /// The name of the organisation associated with this contract (required). + /// orgTier (required). + public OperatorAllowlistContractStatusInternal(Chain chain = default(Chain), string contractAddress = default(string), OperatorAllowlistStatus status = default(OperatorAllowlistStatus), OperatorAllowlistStatusDetails details = default(OperatorAllowlistStatusDetails), DateTime createdAt = default(DateTime), string createdBy = default(string), string orgName = default(string), OrganisationTier orgTier = default(OrganisationTier)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.ContractAddress = contractAddress; + this.Status = status; + // to ensure "details" is required (not null) + if (details == null) + { + throw new ArgumentNullException("details is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.Details = details; + this.CreatedAt = createdAt; + // to ensure "createdBy" is required (not null) + if (createdBy == null) + { + throw new ArgumentNullException("createdBy is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.CreatedBy = createdBy; + // to ensure "orgName" is required (not null) + if (orgName == null) + { + throw new ArgumentNullException("orgName is a required property for OperatorAllowlistContractStatusInternal and cannot be null"); + } + this.OrgName = orgName; + this.OrgTier = orgTier; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of the contract + /// + /// The address of the contract + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Gets or Sets Details + /// + [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] + public OperatorAllowlistStatusDetails Details { get; set; } + + /// + /// When the contract status was created + /// + /// When the contract status was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Who created the status + /// + /// Who created the status + /// user@immutable.com + [DataMember(Name = "created_by", IsRequired = true, EmitDefaultValue = true)] + public string CreatedBy { get; set; } + + /// + /// The name of the organisation associated with this contract + /// + /// The name of the organisation associated with this contract + /// Immutable + [DataMember(Name = "org_name", IsRequired = true, EmitDefaultValue = true)] + public string OrgName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistContractStatusInternal {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n"); + sb.Append(" OrgName: ").Append(OrgName).Append("\n"); + sb.Append(" OrgTier: ").Append(OrgTier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs.meta new file mode 100644 index 00000000..29b1333a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistContractStatusInternal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4807d110fe4b746d98ff51472f8ad4ef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs new file mode 100644 index 00000000..2bcbaf3d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs @@ -0,0 +1,66 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The status of a contract on the operator allowlist + /// + /// The status of a contract on the operator allowlist + [JsonConverter(typeof(StringEnumConverter))] + public enum OperatorAllowlistStatus + { + /// + /// Enum Requested for value: requested + /// + [EnumMember(Value = "requested")] + Requested = 1, + + /// + /// Enum Approved for value: approved + /// + [EnumMember(Value = "approved")] + Approved = 2, + + /// + /// Enum Rejected for value: rejected + /// + [EnumMember(Value = "rejected")] + Rejected = 3, + + /// + /// Enum Removed for value: removed + /// + [EnumMember(Value = "removed")] + Removed = 4, + + /// + /// Enum Added for value: added + /// + [EnumMember(Value = "added")] + Added = 5 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs.meta new file mode 100644 index 00000000..15ec2b4b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6e710b3622090482fb6c9ba1d8009358 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs new file mode 100644 index 00000000..1b868f5f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The operator allowlist status details + /// + [JsonConverter(typeof(OperatorAllowlistStatusDetailsJsonConverter))] + [DataContract(Name = "OperatorAllowlistStatusDetails")] + public partial class OperatorAllowlistStatusDetails : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of OperatorAllowlistStatusRequested. + public OperatorAllowlistStatusDetails(OperatorAllowlistStatusRequested actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of OperatorAllowlistStatusUpdated. + public OperatorAllowlistStatusDetails(OperatorAllowlistStatusUpdated actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(OperatorAllowlistStatusRequested) || value is OperatorAllowlistStatusRequested) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(OperatorAllowlistStatusUpdated) || value is OperatorAllowlistStatusUpdated) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: OperatorAllowlistStatusRequested, OperatorAllowlistStatusUpdated"); + } + } + } + + /// + /// Get the actual instance of `OperatorAllowlistStatusRequested`. If the actual instance is not `OperatorAllowlistStatusRequested`, + /// the InvalidClassException will be thrown + /// + /// An instance of OperatorAllowlistStatusRequested + public OperatorAllowlistStatusRequested GetOperatorAllowlistStatusRequested() + { + return (OperatorAllowlistStatusRequested)this.ActualInstance; + } + + /// + /// Get the actual instance of `OperatorAllowlistStatusUpdated`. If the actual instance is not `OperatorAllowlistStatusUpdated`, + /// the InvalidClassException will be thrown + /// + /// An instance of OperatorAllowlistStatusUpdated + public OperatorAllowlistStatusUpdated GetOperatorAllowlistStatusUpdated() + { + return (OperatorAllowlistStatusUpdated)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OperatorAllowlistStatusDetails {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OperatorAllowlistStatusDetails.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OperatorAllowlistStatusDetails + /// + /// JSON string + /// An instance of OperatorAllowlistStatusDetails + public static OperatorAllowlistStatusDetails FromJson(string jsonString) + { + OperatorAllowlistStatusDetails newOperatorAllowlistStatusDetails = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOperatorAllowlistStatusDetails; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(OperatorAllowlistStatusRequested).GetProperty("AdditionalProperties") == null) + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.SerializerSettings)); + } + else + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("OperatorAllowlistStatusRequested"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into OperatorAllowlistStatusRequested: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(OperatorAllowlistStatusUpdated).GetProperty("AdditionalProperties") == null) + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.SerializerSettings)); + } + else + { + newOperatorAllowlistStatusDetails = new OperatorAllowlistStatusDetails(JsonConvert.DeserializeObject(jsonString, OperatorAllowlistStatusDetails.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("OperatorAllowlistStatusUpdated"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into OperatorAllowlistStatusUpdated: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOperatorAllowlistStatusDetails; + } + + } + + /// + /// Custom JSON converter for OperatorAllowlistStatusDetails + /// + public class OperatorAllowlistStatusDetailsJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OperatorAllowlistStatusDetails).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return OperatorAllowlistStatusDetails.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return OperatorAllowlistStatusDetails.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs.meta new file mode 100644 index 00000000..316277bf --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusDetails.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90203c16bb12c43a2aff3ebfe6068499 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs new file mode 100644 index 00000000..bc57737a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs @@ -0,0 +1,96 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The request details + /// + [DataContract(Name = "OperatorAllowlistStatusRequested")] + public partial class OperatorAllowlistStatusRequested + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistStatusRequested() { } + /// + /// Initializes a new instance of the class. + /// + /// Reason this contract needs to be added (required). + /// Attestation of whether this contract is a settlement contract (required). + public OperatorAllowlistStatusRequested(string purpose = default(string), bool isSettlementContract = default(bool)) + { + // to ensure "purpose" is required (not null) + if (purpose == null) + { + throw new ArgumentNullException("purpose is a required property for OperatorAllowlistStatusRequested and cannot be null"); + } + this.Purpose = purpose; + this.IsSettlementContract = isSettlementContract; + } + + /// + /// Reason this contract needs to be added + /// + /// Reason this contract needs to be added + /// Custom crafting contract + [DataMember(Name = "purpose", IsRequired = true, EmitDefaultValue = true)] + public string Purpose { get; set; } + + /// + /// Attestation of whether this contract is a settlement contract + /// + /// Attestation of whether this contract is a settlement contract + /// false + [DataMember(Name = "is_settlement_contract", IsRequired = true, EmitDefaultValue = true)] + public bool IsSettlementContract { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistStatusRequested {\n"); + sb.Append(" Purpose: ").Append(Purpose).Append("\n"); + sb.Append(" IsSettlementContract: ").Append(IsSettlementContract).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs.meta new file mode 100644 index 00000000..4f674527 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusRequested.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 19e70b847c18e4a22a97630385ce1ef5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs new file mode 100644 index 00000000..c3831c85 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs @@ -0,0 +1,85 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The update details + /// + [DataContract(Name = "OperatorAllowlistStatusUpdated")] + public partial class OperatorAllowlistStatusUpdated + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected OperatorAllowlistStatusUpdated() { } + /// + /// Initializes a new instance of the class. + /// + /// Why this action was performed (required). + public OperatorAllowlistStatusUpdated(string reason = default(string)) + { + // to ensure "reason" is required (not null) + if (reason == null) + { + throw new ArgumentNullException("reason is a required property for OperatorAllowlistStatusUpdated and cannot be null"); + } + this.Reason = reason; + } + + /// + /// Why this action was performed + /// + /// Why this action was performed + /// Contract meets expectations + [DataMember(Name = "reason", IsRequired = true, EmitDefaultValue = true)] + public string Reason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class OperatorAllowlistStatusUpdated {\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs.meta new file mode 100644 index 00000000..56bc21f3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OperatorAllowlistStatusUpdated.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5749dc46fa87f48ee90cdfeb6edc7cc1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Order.cs b/src/Packages/ZkEvmApi/Runtime/Model/Order.cs new file mode 100644 index 00000000..103031f6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Order.cs @@ -0,0 +1,329 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Order + /// + [DataContract(Name = "Order")] + public partial class Order + { + /// + /// Order type + /// + /// Order type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum LISTING for value: LISTING + /// + [EnumMember(Value = "LISTING")] + LISTING = 1, + + /// + /// Enum BID for value: BID + /// + [EnumMember(Value = "BID")] + BID = 2, + + /// + /// Enum COLLECTIONBID for value: COLLECTION_BID + /// + [EnumMember(Value = "COLLECTION_BID")] + COLLECTIONBID = 3 + } + + + /// + /// Order type + /// + /// Order type + /// LISTING + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Order() { } + /// + /// Initializes a new instance of the class. + /// + /// accountAddress (required). + /// buy (required). + /// fees (required). + /// chain (required). + /// Time the Order is created (required). + /// Time after which the Order is considered expired (required). + /// Global Order identifier (required). + /// orderHash (required). + /// protocolData (required). + /// A random value added to the create Order request (required). + /// sell (required). + /// Digital signature generated by the user for the specific Order (required). + /// Time after which Order is considered active (required). + /// status (required). + /// Order type (required). + /// Time the Order is last updated (required). + /// fillStatus (required). + public Order(string accountAddress = default(string), List buy = default(List), List fees = default(List), Chain chain = default(Chain), DateTime createdAt = default(DateTime), DateTime endAt = default(DateTime), string id = default(string), string orderHash = default(string), ProtocolData protocolData = default(ProtocolData), string salt = default(string), List sell = default(List), string signature = default(string), DateTime startAt = default(DateTime), OrderStatus status = default(OrderStatus), TypeEnum type = default(TypeEnum), DateTime updatedAt = default(DateTime), FillStatus fillStatus = default(FillStatus)) + { + // to ensure "accountAddress" is required (not null) + if (accountAddress == null) + { + throw new ArgumentNullException("accountAddress is a required property for Order and cannot be null"); + } + this.AccountAddress = accountAddress; + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for Order and cannot be null"); + } + this.Buy = buy; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for Order and cannot be null"); + } + this.Fees = fees; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Order and cannot be null"); + } + this.Chain = chain; + this.CreatedAt = createdAt; + this.EndAt = endAt; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for Order and cannot be null"); + } + this.Id = id; + // to ensure "orderHash" is required (not null) + if (orderHash == null) + { + throw new ArgumentNullException("orderHash is a required property for Order and cannot be null"); + } + this.OrderHash = orderHash; + // to ensure "protocolData" is required (not null) + if (protocolData == null) + { + throw new ArgumentNullException("protocolData is a required property for Order and cannot be null"); + } + this.ProtocolData = protocolData; + // to ensure "salt" is required (not null) + if (salt == null) + { + throw new ArgumentNullException("salt is a required property for Order and cannot be null"); + } + this.Salt = salt; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for Order and cannot be null"); + } + this.Sell = sell; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for Order and cannot be null"); + } + this.Signature = signature; + this.StartAt = startAt; + // to ensure "status" is required (not null) + if (status == null) + { + throw new ArgumentNullException("status is a required property for Order and cannot be null"); + } + this.Status = status; + this.Type = type; + this.UpdatedAt = updatedAt; + // to ensure "fillStatus" is required (not null) + if (fillStatus == null) + { + throw new ArgumentNullException("fillStatus is a required property for Order and cannot be null"); + } + this.FillStatus = fillStatus; + } + + /// + /// Gets or Sets AccountAddress + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "account_address", IsRequired = true, EmitDefaultValue = true)] + public string AccountAddress { get; set; } + + /// + /// Gets or Sets Buy + /// + /// [{"type":"NATIVE","amount":"9750000000000000000","contract_address":"0x0165878A594ca255338adfa4d48449f69242Eb8F"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Time the Order is created + /// + /// Time the Order is created + /// 2022-03-07T07:20:50.520Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Time after which the Order is considered expired + /// + /// Time after which the Order is considered expired + /// 2022-03-10T05:00:50.520Z + [DataMember(Name = "end_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime EndAt { get; set; } + + /// + /// Global Order identifier + /// + /// Global Order identifier + /// 018792C9-4AD7-8EC4-4038-9E05C598534A + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets OrderHash + /// + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + [DataMember(Name = "order_hash", IsRequired = true, EmitDefaultValue = true)] + public string OrderHash { get; set; } + + /// + /// Gets or Sets ProtocolData + /// + [DataMember(Name = "protocol_data", IsRequired = true, EmitDefaultValue = true)] + public ProtocolData ProtocolData { get; set; } + + /// + /// A random value added to the create Order request + /// + /// A random value added to the create Order request + /// 12686911856931635052326433555881236148 + [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] + public string Salt { get; set; } + + /// + /// Gets or Sets Sell + /// + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Digital signature generated by the user for the specific Order + /// + /// Digital signature generated by the user for the specific Order + /// 0x + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Time after which Order is considered active + /// + /// Time after which Order is considered active + /// 2022-03-09T05:00:50.520Z + [DataMember(Name = "start_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartAt { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public OrderStatus Status { get; set; } + + /// + /// Time the Order is last updated + /// + /// Time the Order is last updated + /// 2022-03-07T07:20:50.520Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets FillStatus + /// + [DataMember(Name = "fill_status", IsRequired = true, EmitDefaultValue = true)] + public FillStatus FillStatus { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Order {\n"); + sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" EndAt: ").Append(EndAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); + sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); + sb.Append(" Salt: ").Append(Salt).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" StartAt: ").Append(StartAt).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" FillStatus: ").Append(FillStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Order.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Order.cs.meta new file mode 100644 index 00000000..ad605bfa --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Order.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2c3bfe491afd54d2cab2b4ad87d57fdc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs new file mode 100644 index 00000000..15217a1b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs @@ -0,0 +1,434 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The Order status + /// + [JsonConverter(typeof(OrderStatusJsonConverter))] + [DataContract(Name = "OrderStatus")] + public partial class OrderStatus : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of CancelledOrderStatus. + public OrderStatus(CancelledOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of PendingOrderStatus. + public OrderStatus(PendingOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActiveOrderStatus. + public OrderStatus(ActiveOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of InactiveOrderStatus. + public OrderStatus(InactiveOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of FilledOrderStatus. + public OrderStatus(FilledOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ExpiredOrderStatus. + public OrderStatus(ExpiredOrderStatus actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ActiveOrderStatus) || value is ActiveOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(CancelledOrderStatus) || value is CancelledOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ExpiredOrderStatus) || value is ExpiredOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(FilledOrderStatus) || value is FilledOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(InactiveOrderStatus) || value is InactiveOrderStatus) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(PendingOrderStatus) || value is PendingOrderStatus) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ActiveOrderStatus, CancelledOrderStatus, ExpiredOrderStatus, FilledOrderStatus, InactiveOrderStatus, PendingOrderStatus"); + } + } + } + + /// + /// Get the actual instance of `CancelledOrderStatus`. If the actual instance is not `CancelledOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of CancelledOrderStatus + public CancelledOrderStatus GetCancelledOrderStatus() + { + return (CancelledOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `PendingOrderStatus`. If the actual instance is not `PendingOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of PendingOrderStatus + public PendingOrderStatus GetPendingOrderStatus() + { + return (PendingOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `ActiveOrderStatus`. If the actual instance is not `ActiveOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActiveOrderStatus + public ActiveOrderStatus GetActiveOrderStatus() + { + return (ActiveOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `InactiveOrderStatus`. If the actual instance is not `InactiveOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of InactiveOrderStatus + public InactiveOrderStatus GetInactiveOrderStatus() + { + return (InactiveOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `FilledOrderStatus`. If the actual instance is not `FilledOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of FilledOrderStatus + public FilledOrderStatus GetFilledOrderStatus() + { + return (FilledOrderStatus)this.ActualInstance; + } + + /// + /// Get the actual instance of `ExpiredOrderStatus`. If the actual instance is not `ExpiredOrderStatus`, + /// the InvalidClassException will be thrown + /// + /// An instance of ExpiredOrderStatus + public ExpiredOrderStatus GetExpiredOrderStatus() + { + return (ExpiredOrderStatus)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OrderStatus {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OrderStatus.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OrderStatus + /// + /// JSON string + /// An instance of OrderStatus + public static OrderStatus FromJson(string jsonString) + { + OrderStatus newOrderStatus = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOrderStatus; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActiveOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActiveOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActiveOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(CancelledOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("CancelledOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into CancelledOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ExpiredOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ExpiredOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ExpiredOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(FilledOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("FilledOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into FilledOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(InactiveOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("InactiveOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into InactiveOrderStatus: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(PendingOrderStatus).GetProperty("AdditionalProperties") == null) + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.SerializerSettings)); + } + else + { + newOrderStatus = new OrderStatus(JsonConvert.DeserializeObject(jsonString, OrderStatus.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("PendingOrderStatus"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into PendingOrderStatus: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOrderStatus; + } + + } + + /// + /// Custom JSON converter for OrderStatus + /// + public class OrderStatusJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OrderStatus).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return OrderStatus.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return OrderStatus.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs.meta new file mode 100644 index 00000000..19b92f2a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8203660b1d3544701b56b06fb2021c82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs new file mode 100644 index 00000000..30002d6a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs @@ -0,0 +1,72 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The Order status + /// + /// The Order status + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderStatusName + { + /// + /// Enum PENDING for value: PENDING + /// + [EnumMember(Value = "PENDING")] + PENDING = 1, + + /// + /// Enum ACTIVE for value: ACTIVE + /// + [EnumMember(Value = "ACTIVE")] + ACTIVE = 2, + + /// + /// Enum INACTIVE for value: INACTIVE + /// + [EnumMember(Value = "INACTIVE")] + INACTIVE = 3, + + /// + /// Enum FILLED for value: FILLED + /// + [EnumMember(Value = "FILLED")] + FILLED = 4, + + /// + /// Enum EXPIRED for value: EXPIRED + /// + [EnumMember(Value = "EXPIRED")] + EXPIRED = 5, + + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 6 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs.meta new file mode 100644 index 00000000..a453dd14 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OrderStatusName.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ee1ee2d7f59114fb78154bdefbb9338b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs b/src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs new file mode 100644 index 00000000..0efba7f2 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs @@ -0,0 +1,66 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The tier of the organisation + /// + /// The tier of the organisation + [JsonConverter(typeof(StringEnumConverter))] + public enum OrganisationTier + { + /// + /// Enum Common for value: common + /// + [EnumMember(Value = "common")] + Common = 1, + + /// + /// Enum Uncommon for value: uncommon + /// + [EnumMember(Value = "uncommon")] + Uncommon = 2, + + /// + /// Enum Rare for value: rare + /// + [EnumMember(Value = "rare")] + Rare = 3, + + /// + /// Enum Epic for value: epic + /// + [EnumMember(Value = "epic")] + Epic = 4, + + /// + /// Enum Legendary for value: legendary + /// + [EnumMember(Value = "legendary")] + Legendary = 5 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs.meta new file mode 100644 index 00000000..1ad69b0e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/OrganisationTier.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bad5e7cbcf4eb4e59b1485e14a937217 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Page.cs b/src/Packages/ZkEvmApi/Runtime/Model/Page.cs new file mode 100644 index 00000000..f6f7b6b6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Page.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Pagination properties + /// + [DataContract(Name = "Page")] + public partial class Page + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Page() { } + /// + /// Initializes a new instance of the class. + /// + /// First item as an encoded string (required). + /// Last item as an encoded string (required). + public Page(string previousCursor = default(string), string nextCursor = default(string)) + { + // to ensure "previousCursor" is required (not null) + if (previousCursor == null) + { + throw new ArgumentNullException("previousCursor is a required property for Page and cannot be null"); + } + this.PreviousCursor = previousCursor; + // to ensure "nextCursor" is required (not null) + if (nextCursor == null) + { + throw new ArgumentNullException("nextCursor is a required property for Page and cannot be null"); + } + this.NextCursor = nextCursor; + } + + /// + /// First item as an encoded string + /// + /// First item as an encoded string + /// ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + [DataMember(Name = "previous_cursor", IsRequired = true, EmitDefaultValue = true)] + public string PreviousCursor { get; set; } + + /// + /// Last item as an encoded string + /// + /// Last item as an encoded string + /// ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + [DataMember(Name = "next_cursor", IsRequired = true, EmitDefaultValue = true)] + public string NextCursor { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Page {\n"); + sb.Append(" PreviousCursor: ").Append(PreviousCursor).Append("\n"); + sb.Append(" NextCursor: ").Append(NextCursor).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Page.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Page.cs.meta new file mode 100644 index 00000000..4845f08d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Page.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8253f39d7820d40d294030c739b2ec10 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs new file mode 100644 index 00000000..65ea7d75 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// PendingOrderStatus + /// + [DataContract(Name = "PendingOrderStatus")] + public partial class PendingOrderStatus + { + /// + /// The order status that indicates the order is yet to be active due to various reasons. + /// + /// The order status that indicates the order is yet to be active due to various reasons. + [JsonConverter(typeof(StringEnumConverter))] + public enum NameEnum + { + /// + /// Enum PENDING for value: PENDING + /// + [EnumMember(Value = "PENDING")] + PENDING = 1 + } + + + /// + /// The order status that indicates the order is yet to be active due to various reasons. + /// + /// The order status that indicates the order is yet to be active due to various reasons. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public NameEnum Name { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PendingOrderStatus() { } + /// + /// Initializes a new instance of the class. + /// + /// The order status that indicates the order is yet to be active due to various reasons. (required). + /// Whether the order has been evaluated after its creation (required). + /// Whether the order has reached its specified start time (required). + public PendingOrderStatus(NameEnum name = default(NameEnum), bool evaluated = default(bool), bool started = default(bool)) + { + this.Name = name; + this.Evaluated = evaluated; + this.Started = started; + } + + /// + /// Whether the order has been evaluated after its creation + /// + /// Whether the order has been evaluated after its creation + /// false + [DataMember(Name = "evaluated", IsRequired = true, EmitDefaultValue = true)] + public bool Evaluated { get; set; } + + /// + /// Whether the order has reached its specified start time + /// + /// Whether the order has reached its specified start time + /// false + [DataMember(Name = "started", IsRequired = true, EmitDefaultValue = true)] + public bool Started { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PendingOrderStatus {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Evaluated: ").Append(Evaluated).Append("\n"); + sb.Append(" Started: ").Append(Started).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs.meta new file mode 100644 index 00000000..5e98dce1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/PendingOrderStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe14441a4351549f58228f21cccf005d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs b/src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs new file mode 100644 index 00000000..7b1550c7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs @@ -0,0 +1,164 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// ProtocolData + /// + [DataContract(Name = "ProtocolData")] + public partial class ProtocolData + { + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderTypeEnum + { + /// + /// Enum FULLRESTRICTED for value: FULL_RESTRICTED + /// + [EnumMember(Value = "FULL_RESTRICTED")] + FULLRESTRICTED = 1, + + /// + /// Enum PARTIALRESTRICTED for value: PARTIAL_RESTRICTED + /// + [EnumMember(Value = "PARTIAL_RESTRICTED")] + PARTIALRESTRICTED = 2 + } + + + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED + /// FULL_RESTRICTED + [DataMember(Name = "order_type", IsRequired = true, EmitDefaultValue = true)] + public OrderTypeEnum OrderType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ProtocolData() { } + /// + /// Initializes a new instance of the class. + /// + /// Seaport order type. Orders containing ERC721 tokens will need to pass in the order type as FULL_RESTRICTED while orders with ERC1155 tokens will need to pass in the order_type as PARTIAL_RESTRICTED (required). + /// big.Int or uint256 string for order counter (required). + /// Immutable zone address (required). + /// Immutable Seaport contract address (required). + /// Immutable Seaport contract version (required). + public ProtocolData(OrderTypeEnum orderType = default(OrderTypeEnum), string counter = default(string), string zoneAddress = default(string), string seaportAddress = default(string), string seaportVersion = default(string)) + { + this.OrderType = orderType; + // to ensure "counter" is required (not null) + if (counter == null) + { + throw new ArgumentNullException("counter is a required property for ProtocolData and cannot be null"); + } + this.Counter = counter; + // to ensure "zoneAddress" is required (not null) + if (zoneAddress == null) + { + throw new ArgumentNullException("zoneAddress is a required property for ProtocolData and cannot be null"); + } + this.ZoneAddress = zoneAddress; + // to ensure "seaportAddress" is required (not null) + if (seaportAddress == null) + { + throw new ArgumentNullException("seaportAddress is a required property for ProtocolData and cannot be null"); + } + this.SeaportAddress = seaportAddress; + // to ensure "seaportVersion" is required (not null) + if (seaportVersion == null) + { + throw new ArgumentNullException("seaportVersion is a required property for ProtocolData and cannot be null"); + } + this.SeaportVersion = seaportVersion; + } + + /// + /// big.Int or uint256 string for order counter + /// + /// big.Int or uint256 string for order counter + /// 92315562 + [DataMember(Name = "counter", IsRequired = true, EmitDefaultValue = true)] + public string Counter { get; set; } + + /// + /// Immutable zone address + /// + /// Immutable zone address + /// 0x12 + [DataMember(Name = "zone_address", IsRequired = true, EmitDefaultValue = true)] + public string ZoneAddress { get; set; } + + /// + /// Immutable Seaport contract address + /// + /// Immutable Seaport contract address + /// 0x12 + [DataMember(Name = "seaport_address", IsRequired = true, EmitDefaultValue = true)] + public string SeaportAddress { get; set; } + + /// + /// Immutable Seaport contract version + /// + /// Immutable Seaport contract version + /// 1.5 + [DataMember(Name = "seaport_version", IsRequired = true, EmitDefaultValue = true)] + public string SeaportVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ProtocolData {\n"); + sb.Append(" OrderType: ").Append(OrderType).Append("\n"); + sb.Append(" Counter: ").Append(Counter).Append("\n"); + sb.Append(" ZoneAddress: ").Append(ZoneAddress).Append("\n"); + sb.Append(" SeaportAddress: ").Append(SeaportAddress).Append("\n"); + sb.Append(" SeaportVersion: ").Append(SeaportVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs.meta new file mode 100644 index 00000000..cbefc9cb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/ProtocolData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1549f8330c05c4fdd894fc04e4560fb8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs new file mode 100644 index 00000000..d07afb94 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Quotes for NFTs result + /// + [DataContract(Name = "QuotesForNFTsResult")] + public partial class QuotesForNFTsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuotesForNFTsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of quotes (required). + /// page (required). + public QuotesForNFTsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for QuotesForNFTsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for QuotesForNFTsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of quotes + /// + /// List of quotes + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class QuotesForNFTsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs.meta new file mode 100644 index 00000000..a802b2f3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForNFTsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4fddf8ce314884699a45d1b47e1e4923 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs new file mode 100644 index 00000000..9d1bc114 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Quotes for stacks result + /// + [DataContract(Name = "QuotesForStacksResult")] + public partial class QuotesForStacksResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuotesForStacksResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of quotes (required). + /// page (required). + public QuotesForStacksResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for QuotesForStacksResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for QuotesForStacksResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of quotes + /// + /// List of quotes + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class QuotesForStacksResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs.meta new file mode 100644 index 00000000..09832e30 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/QuotesForStacksResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8288cdfe686e949adbab3d6bbc2b159f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs new file mode 100644 index 00000000..dbde3b00 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// RefreshCollectionMetadataRequest + /// + [DataContract(Name = "RefreshCollectionMetadataRequest")] + public partial class RefreshCollectionMetadataRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshCollectionMetadataRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// collectionMetadata (required). + public RefreshCollectionMetadataRequest(CollectionMetadata collectionMetadata = default(CollectionMetadata)) + { + // to ensure "collectionMetadata" is required (not null) + if (collectionMetadata == null) + { + throw new ArgumentNullException("collectionMetadata is a required property for RefreshCollectionMetadataRequest and cannot be null"); + } + this.CollectionMetadata = collectionMetadata; + } + + /// + /// Gets or Sets CollectionMetadata + /// + [DataMember(Name = "collection_metadata", IsRequired = true, EmitDefaultValue = true)] + public CollectionMetadata CollectionMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshCollectionMetadataRequest {\n"); + sb.Append(" CollectionMetadata: ").Append(CollectionMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs.meta new file mode 100644 index 00000000..1ce33ccb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2b5d3460672f34768a2f4b18e34595ba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs new file mode 100644 index 00000000..ffe5b9a4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs @@ -0,0 +1,111 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// RefreshCollectionMetadataResult + /// + [DataContract(Name = "RefreshCollectionMetadataResult")] + public partial class RefreshCollectionMetadataResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshCollectionMetadataResult() { } + /// + /// Initializes a new instance of the class. + /// + /// contractAddress (required). + /// chain (required). + /// collectionMetadata (required). + public RefreshCollectionMetadataResult(string contractAddress = default(string), Chain chain = default(Chain), CollectionMetadata collectionMetadata = default(CollectionMetadata)) + { + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for RefreshCollectionMetadataResult and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for RefreshCollectionMetadataResult and cannot be null"); + } + this.Chain = chain; + // to ensure "collectionMetadata" is required (not null) + if (collectionMetadata == null) + { + throw new ArgumentNullException("collectionMetadata is a required property for RefreshCollectionMetadataResult and cannot be null"); + } + this.CollectionMetadata = collectionMetadata; + } + + /// + /// Gets or Sets ContractAddress + /// + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets CollectionMetadata + /// + [DataMember(Name = "collection_metadata", IsRequired = true, EmitDefaultValue = true)] + public CollectionMetadata CollectionMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshCollectionMetadataResult {\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" CollectionMetadata: ").Append(CollectionMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs.meta new file mode 100644 index 00000000..e4ceca33 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshCollectionMetadataResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7797ff67fa5d94ff991886aac9f94e2a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs new file mode 100644 index 00000000..a1f303e3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs @@ -0,0 +1,191 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// RefreshMetadataByID + /// + [DataContract(Name = "RefreshMetadataByID")] + public partial class RefreshMetadataByID + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshMetadataByID() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external link of the NFT (required). + /// The animation url of the NFT (required). + /// The youtube link of the NFT (required). + /// List of Metadata attributes (required). + /// Metadata id in UUIDv4 format (required). + public RefreshMetadataByID(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), Guid metadataId = default(Guid)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for RefreshMetadataByID and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for RefreshMetadataByID and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for RefreshMetadataByID and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for RefreshMetadataByID and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for RefreshMetadataByID and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for RefreshMetadataByID and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for RefreshMetadataByID and cannot be null"); + } + this.Attributes = attributes; + this.MetadataId = metadataId; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Metadata id in UUIDv4 format + /// + /// Metadata id in UUIDv4 format + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "metadata_id", IsRequired = true, EmitDefaultValue = true)] + public Guid MetadataId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshMetadataByID {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" MetadataId: ").Append(MetadataId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs.meta new file mode 100644 index 00000000..be866523 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByID.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 486f5fc37e641453ead82d28bec454ff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs new file mode 100644 index 00000000..2e121d30 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB + /// + [DataContract(Name = "RefreshMetadataByIDRequest")] + public partial class RefreshMetadataByIDRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshMetadataByIDRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// metadata (required). + public RefreshMetadataByIDRequest(List metadata = default(List)) + { + // to ensure "metadata" is required (not null) + if (metadata == null) + { + throw new ArgumentNullException("metadata is a required property for RefreshMetadataByIDRequest and cannot be null"); + } + this.Metadata = metadata; + } + + /// + /// Gets or Sets Metadata + /// + [DataMember(Name = "metadata", IsRequired = true, EmitDefaultValue = true)] + public List Metadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshMetadataByIDRequest {\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs.meta new file mode 100644 index 00000000..d0bd6315 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByIDRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b078ed8d0c96441a947c63407f294e7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs new file mode 100644 index 00000000..53fd975e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs @@ -0,0 +1,196 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// RefreshMetadataByTokenID + /// + [DataContract(Name = "RefreshMetadataByTokenID")] + public partial class RefreshMetadataByTokenID + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshMetadataByTokenID() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external link of the NFT (required). + /// The animation url of the NFT (required). + /// The youtube link of the NFT (required). + /// List of Metadata attributes (required). + /// An `uint256` token id as string (required). + public RefreshMetadataByTokenID(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List), string tokenId = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.Attributes = attributes; + // to ensure "tokenId" is required (not null) + if (tokenId == null) + { + throw new ArgumentNullException("tokenId is a required property for RefreshMetadataByTokenID and cannot be null"); + } + this.TokenId = tokenId; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// An `uint256` token id as string + /// + /// An `uint256` token id as string + /// 1 + [DataMember(Name = "token_id", IsRequired = true, EmitDefaultValue = true)] + public string TokenId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshMetadataByTokenID {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs.meta new file mode 100644 index 00000000..5666e71d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshMetadataByTokenID.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec1a63ef2fd374e3c9102d458b7f055d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs new file mode 100644 index 00000000..d7a271d4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs @@ -0,0 +1,84 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// RefreshNFTMetadataByTokenIDRequest + /// + [DataContract(Name = "RefreshNFTMetadataByTokenIDRequest")] + public partial class RefreshNFTMetadataByTokenIDRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshNFTMetadataByTokenIDRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB (required). + public RefreshNFTMetadataByTokenIDRequest(List nftMetadata = default(List)) + { + // to ensure "nftMetadata" is required (not null) + if (nftMetadata == null) + { + throw new ArgumentNullException("nftMetadata is a required property for RefreshNFTMetadataByTokenIDRequest and cannot be null"); + } + this.NftMetadata = nftMetadata; + } + + /// + /// List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB + /// + /// List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB + [DataMember(Name = "nft_metadata", IsRequired = true, EmitDefaultValue = true)] + public List NftMetadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshNFTMetadataByTokenIDRequest {\n"); + sb.Append(" NftMetadata: ").Append(NftMetadata).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs.meta new file mode 100644 index 00000000..0da74f64 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshNFTMetadataByTokenIDRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fc493bb6a51ac47c2b656eebb4802187 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs b/src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs new file mode 100644 index 00000000..8121bc57 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs @@ -0,0 +1,180 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// RefreshableNFTAttributes + /// + [DataContract(Name = "RefreshableNFTAttributes")] + public partial class RefreshableNFTAttributes + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefreshableNFTAttributes() { } + /// + /// Initializes a new instance of the class. + /// + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external link of the NFT (required). + /// The animation url of the NFT (required). + /// The youtube link of the NFT (required). + /// List of Metadata attributes (required). + public RefreshableNFTAttributes(string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for RefreshableNFTAttributes and cannot be null"); + } + this.Attributes = attributes; + } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external link of the NFT + /// + /// The external link of the NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube link of the NFT + /// + /// The youtube link of the NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefreshableNFTAttributes {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs.meta new file mode 100644 index 00000000..8b3c03d7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/RefreshableNFTAttributes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 94350e527c50541039748a2b75ab73e6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs b/src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs new file mode 100644 index 00000000..874cc87a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs @@ -0,0 +1,111 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// SaleFee + /// + [DataContract(Name = "SaleFee")] + public partial class SaleFee + { + /// + /// Fee type + /// + /// Fee type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum ROYALTY for value: ROYALTY + /// + [EnumMember(Value = "ROYALTY")] + ROYALTY = 1 + } + + + /// + /// Fee type + /// + /// Fee type + /// ROYALTY + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Fee payable to recipient upon settlement. + /// Fee type. + /// Wallet address of fee recipient. + public SaleFee(string amount = default(string), TypeEnum? type = default(TypeEnum?), string recipient = default(string)) + { + this.Amount = amount; + this.Type = type; + this.Recipient = recipient; + } + + /// + /// Fee payable to recipient upon settlement + /// + /// Fee payable to recipient upon settlement + /// 200 + [DataMember(Name = "amount", EmitDefaultValue = false)] + public string Amount { get; set; } + + /// + /// Wallet address of fee recipient + /// + /// Wallet address of fee recipient + /// 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + [DataMember(Name = "recipient", EmitDefaultValue = false)] + public string Recipient { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SaleFee {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Recipient: ").Append(Recipient).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs.meta new file mode 100644 index 00000000..a8976eb9 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SaleFee.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3e9935eba43f24d609dbe28e48e7936b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs b/src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs new file mode 100644 index 00000000..70260c54 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs @@ -0,0 +1,131 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// SalePayment + /// + [DataContract(Name = "SalePayment")] + public partial class SalePayment + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SalePayment() { } + /// + /// Initializes a new instance of the class. + /// + /// token (required). + /// The base price of the sale not including any fees (required). + /// The total price of the sale. Includes the sum of all fees (required). + /// The fees associated with this sale (required). + public SalePayment(SalePaymentToken token = default(SalePaymentToken), string priceExcludingFees = default(string), string priceIncludingFees = default(string), List fees = default(List)) + { + // to ensure "token" is required (not null) + if (token == null) + { + throw new ArgumentNullException("token is a required property for SalePayment and cannot be null"); + } + this.Token = token; + // to ensure "priceExcludingFees" is required (not null) + if (priceExcludingFees == null) + { + throw new ArgumentNullException("priceExcludingFees is a required property for SalePayment and cannot be null"); + } + this.PriceExcludingFees = priceExcludingFees; + // to ensure "priceIncludingFees" is required (not null) + if (priceIncludingFees == null) + { + throw new ArgumentNullException("priceIncludingFees is a required property for SalePayment and cannot be null"); + } + this.PriceIncludingFees = priceIncludingFees; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for SalePayment and cannot be null"); + } + this.Fees = fees; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] + public SalePaymentToken Token { get; set; } + + /// + /// The base price of the sale not including any fees + /// + /// The base price of the sale not including any fees + /// 180 + [DataMember(Name = "price_excluding_fees", IsRequired = true, EmitDefaultValue = true)] + public string PriceExcludingFees { get; set; } + + /// + /// The total price of the sale. Includes the sum of all fees + /// + /// The total price of the sale. Includes the sum of all fees + /// 200 + [DataMember(Name = "price_including_fees", IsRequired = true, EmitDefaultValue = true)] + public string PriceIncludingFees { get; set; } + + /// + /// The fees associated with this sale + /// + /// The fees associated with this sale + /// [{"address":"0xB0F3749458169B7Ad51B5503CC3649DE55c2D0D2","amount":"20","type":"ROYALTY"}] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SalePayment {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" PriceExcludingFees: ").Append(PriceExcludingFees).Append("\n"); + sb.Append(" PriceIncludingFees: ").Append(PriceIncludingFees).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs.meta new file mode 100644 index 00000000..2100aa80 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SalePayment.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 521eb7a0cf1bc4f42ba4d394cfba0c31 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs b/src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs new file mode 100644 index 00000000..553dd621 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The type of payment token + /// + [JsonConverter(typeof(SalePaymentTokenJsonConverter))] + [DataContract(Name = "SalePayment_token")] + public partial class SalePaymentToken : AbstractOpenAPISchema + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActivityToken. + public SalePaymentToken(ActivityToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of ActivityNativeToken. + public SalePaymentToken(ActivityNativeToken actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(ActivityNativeToken) || value is ActivityNativeToken) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ActivityToken) || value is ActivityToken) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: ActivityNativeToken, ActivityToken"); + } + } + } + + /// + /// Get the actual instance of `ActivityToken`. If the actual instance is not `ActivityToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActivityToken + public ActivityToken GetActivityToken() + { + return (ActivityToken)this.ActualInstance; + } + + /// + /// Get the actual instance of `ActivityNativeToken`. If the actual instance is not `ActivityNativeToken`, + /// the InvalidClassException will be thrown + /// + /// An instance of ActivityNativeToken + public ActivityNativeToken GetActivityNativeToken() + { + return (ActivityNativeToken)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SalePaymentToken {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, SalePaymentToken.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of SalePaymentToken + /// + /// JSON string + /// An instance of SalePaymentToken + public static SalePaymentToken FromJson(string jsonString) + { + SalePaymentToken newSalePaymentToken = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newSalePaymentToken; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActivityNativeToken).GetProperty("AdditionalProperties") == null) + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.SerializerSettings)); + } + else + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActivityNativeToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityNativeToken: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ActivityToken).GetProperty("AdditionalProperties") == null) + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.SerializerSettings)); + } + else + { + newSalePaymentToken = new SalePaymentToken(JsonConvert.DeserializeObject(jsonString, SalePaymentToken.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("ActivityToken"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ActivityToken: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newSalePaymentToken; + } + + } + + /// + /// Custom JSON converter for SalePaymentToken + /// + public class SalePaymentTokenJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(SalePaymentToken).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return SalePaymentToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return SalePaymentToken.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs.meta new file mode 100644 index 00000000..2f7a0717 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SalePaymentToken.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 022b245dcbb9247309b66861c28f8828 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs new file mode 100644 index 00000000..85b2fa5f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Search NFTs result + /// + [DataContract(Name = "SearchNFTsResult")] + public partial class SearchNFTsResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SearchNFTsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of nft bundles (required). + /// page (required). + public SearchNFTsResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for SearchNFTsResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for SearchNFTsResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of nft bundles + /// + /// List of nft bundles + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SearchNFTsResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs.meta new file mode 100644 index 00000000..d9581092 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SearchNFTsResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2068848d76f8b4bc59d69e77bb973e75 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs new file mode 100644 index 00000000..f0483be6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs @@ -0,0 +1,98 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Search stacks result + /// + [DataContract(Name = "SearchStacksResult")] + public partial class SearchStacksResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SearchStacksResult() { } + /// + /// Initializes a new instance of the class. + /// + /// List of stack bundles (required). + /// page (required). + public SearchStacksResult(List result = default(List), Page page = default(Page)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for SearchStacksResult and cannot be null"); + } + this.Result = result; + // to ensure "page" is required (not null) + if (page == null) + { + throw new ArgumentNullException("page is a required property for SearchStacksResult and cannot be null"); + } + this.Page = page; + } + + /// + /// List of stack bundles + /// + /// List of stack bundles + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public List Result { get; set; } + + /// + /// Gets or Sets Page + /// + [DataMember(Name = "page", IsRequired = true, EmitDefaultValue = true)] + public Page Page { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SearchStacksResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append(" Page: ").Append(Page).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs.meta new file mode 100644 index 00000000..72625650 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SearchStacksResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bdcf094c8a8ea411f8b544f3807c889f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs new file mode 100644 index 00000000..747f609e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs @@ -0,0 +1,125 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// SignCraftingRequest + /// + [DataContract(Name = "SignCraftingRequest")] + public partial class SignCraftingRequest + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SignCraftingRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// multiCaller (required). + /// The id of this request in the system that originates the crafting request, specified as a 32 byte hex string (required). + /// The calls to be signed (required). + /// The expiration time of the request (required). + public SignCraftingRequest(SignCraftingRequestMultiCaller multiCaller = default(SignCraftingRequestMultiCaller), string referenceId = default(string), List calls = default(List), DateTime expiresAt = default(DateTime)) + { + // to ensure "multiCaller" is required (not null) + if (multiCaller == null) + { + throw new ArgumentNullException("multiCaller is a required property for SignCraftingRequest and cannot be null"); + } + this.MultiCaller = multiCaller; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for SignCraftingRequest and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "calls" is required (not null) + if (calls == null) + { + throw new ArgumentNullException("calls is a required property for SignCraftingRequest and cannot be null"); + } + this.Calls = calls; + this.ExpiresAt = expiresAt; + } + + /// + /// Gets or Sets MultiCaller + /// + [DataMember(Name = "multi_caller", IsRequired = true, EmitDefaultValue = true)] + public SignCraftingRequestMultiCaller MultiCaller { get; set; } + + /// + /// The id of this request in the system that originates the crafting request, specified as a 32 byte hex string + /// + /// The id of this request in the system that originates the crafting request, specified as a 32 byte hex string + /// 67f7d464b8f04f6a9a3b8d3cb4a21af0 + [DataMember(Name = "reference_id", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The calls to be signed + /// + /// The calls to be signed + [DataMember(Name = "calls", IsRequired = true, EmitDefaultValue = true)] + public List Calls { get; set; } + + /// + /// The expiration time of the request + /// + /// The expiration time of the request + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "expires_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime ExpiresAt { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SignCraftingRequest {\n"); + sb.Append(" MultiCaller: ").Append(MultiCaller).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" Calls: ").Append(Calls).Append("\n"); + sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs.meta new file mode 100644 index 00000000..180f7439 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1454c22b4b9104a628ebc337c8cd2b46 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs new file mode 100644 index 00000000..9153c572 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs @@ -0,0 +1,117 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// SignCraftingRequestMultiCaller + /// + [DataContract(Name = "SignCraftingRequest_multi_caller")] + public partial class SignCraftingRequestMultiCaller + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SignCraftingRequestMultiCaller() { } + /// + /// Initializes a new instance of the class. + /// + /// An Ethereum address (required). + /// The name of the multicaller contract (required). + /// The version of the multicaller contract (required). + public SignCraftingRequestMultiCaller(string address = default(string), string name = default(string), string varVersion = default(string)) + { + // to ensure "address" is required (not null) + if (address == null) + { + throw new ArgumentNullException("address is a required property for SignCraftingRequestMultiCaller and cannot be null"); + } + this.Address = address; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for SignCraftingRequestMultiCaller and cannot be null"); + } + this.Name = name; + // to ensure "varVersion" is required (not null) + if (varVersion == null) + { + throw new ArgumentNullException("varVersion is a required property for SignCraftingRequestMultiCaller and cannot be null"); + } + this.VarVersion = varVersion; + } + + /// + /// An Ethereum address + /// + /// An Ethereum address + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "address", IsRequired = true, EmitDefaultValue = true)] + public string Address { get; set; } + + /// + /// The name of the multicaller contract + /// + /// The name of the multicaller contract + /// Multicaller + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The version of the multicaller contract + /// + /// The version of the multicaller contract + /// 1 + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public string VarVersion { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SignCraftingRequestMultiCaller {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs.meta new file mode 100644 index 00000000..865253c6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingRequestMultiCaller.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bb40263502564b8384b58bb89621da6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs new file mode 100644 index 00000000..4369e9ee --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs @@ -0,0 +1,101 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// SignCraftingResult + /// + [DataContract(Name = "SignCraftingResult")] + public partial class SignCraftingResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SignCraftingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// An Ethereum address (required). + /// The signature of the request (required). + public SignCraftingResult(string signerAddress = default(string), string signature = default(string)) + { + // to ensure "signerAddress" is required (not null) + if (signerAddress == null) + { + throw new ArgumentNullException("signerAddress is a required property for SignCraftingResult and cannot be null"); + } + this.SignerAddress = signerAddress; + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new ArgumentNullException("signature is a required property for SignCraftingResult and cannot be null"); + } + this.Signature = signature; + } + + /// + /// An Ethereum address + /// + /// An Ethereum address + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "signer_address", IsRequired = true, EmitDefaultValue = true)] + public string SignerAddress { get; set; } + + /// + /// The signature of the request + /// + /// The signature of the request + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SignCraftingResult {\n"); + sb.Append(" SignerAddress: ").Append(SignerAddress).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs.meta new file mode 100644 index 00000000..df91c081 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/SignCraftingResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cc82814d5b3de4624870b9c9fecf4f79 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Stack.cs b/src/Packages/ZkEvmApi/Runtime/Model/Stack.cs new file mode 100644 index 00000000..3acb745e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Stack.cs @@ -0,0 +1,250 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Stack + /// + [DataContract(Name = "Stack")] + public partial class Stack + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public MarketplaceContractType ContractType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Stack() { } + /// + /// Initializes a new instance of the class. + /// + /// Stack ID (required). + /// chain (required). + /// Contract address (required). + /// contractType (required). + /// When the metadata was created (required). + /// When the metadata was last updated (required). + /// The name of the NFT (required). + /// The description of the NFT (required). + /// The image url of the NFT (required). + /// The external website link of NFT (required). + /// The animation url of the NFT (required). + /// The youtube URL of NFT (required). + /// List of Metadata attributes (required). + public Stack(Guid stackId = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), MarketplaceContractType contractType = default(MarketplaceContractType), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string description = default(string), string image = default(string), string externalUrl = default(string), string animationUrl = default(string), string youtubeUrl = default(string), List attributes = default(List)) + { + this.StackId = stackId; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Stack and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Stack and cannot be null"); + } + this.ContractAddress = contractAddress; + this.ContractType = contractType; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Stack and cannot be null"); + } + this.Name = name; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Stack and cannot be null"); + } + this.Description = description; + // to ensure "image" is required (not null) + if (image == null) + { + throw new ArgumentNullException("image is a required property for Stack and cannot be null"); + } + this.Image = image; + // to ensure "externalUrl" is required (not null) + if (externalUrl == null) + { + throw new ArgumentNullException("externalUrl is a required property for Stack and cannot be null"); + } + this.ExternalUrl = externalUrl; + // to ensure "animationUrl" is required (not null) + if (animationUrl == null) + { + throw new ArgumentNullException("animationUrl is a required property for Stack and cannot be null"); + } + this.AnimationUrl = animationUrl; + // to ensure "youtubeUrl" is required (not null) + if (youtubeUrl == null) + { + throw new ArgumentNullException("youtubeUrl is a required property for Stack and cannot be null"); + } + this.YoutubeUrl = youtubeUrl; + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new ArgumentNullException("attributes is a required property for Stack and cannot be null"); + } + this.Attributes = attributes; + } + + /// + /// Stack ID + /// + /// Stack ID + [DataMember(Name = "stack_id", IsRequired = true, EmitDefaultValue = true)] + public Guid StackId { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Contract address + /// + /// Contract address + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// When the metadata was created + /// + /// When the metadata was created + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// When the metadata was last updated + /// + /// When the metadata was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// The name of the NFT + /// + /// The name of the NFT + /// Sword + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The description of the NFT + /// + /// The description of the NFT + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The image url of the NFT + /// + /// The image url of the NFT + /// https://some-url + [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] + public string Image { get; set; } + + /// + /// The external website link of NFT + /// + /// The external website link of NFT + /// https://some-url + [DataMember(Name = "external_url", IsRequired = true, EmitDefaultValue = true)] + public string ExternalUrl { get; set; } + + /// + /// The animation url of the NFT + /// + /// The animation url of the NFT + /// https://some-url + [DataMember(Name = "animation_url", IsRequired = true, EmitDefaultValue = true)] + public string AnimationUrl { get; set; } + + /// + /// The youtube URL of NFT + /// + /// The youtube URL of NFT + /// https://some-url + [DataMember(Name = "youtube_url", IsRequired = true, EmitDefaultValue = true)] + public string YoutubeUrl { get; set; } + + /// + /// List of Metadata attributes + /// + /// List of Metadata attributes + [DataMember(Name = "attributes", IsRequired = true, EmitDefaultValue = true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Stack {\n"); + sb.Append(" StackId: ").Append(StackId).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); + sb.Append(" ExternalUrl: ").Append(ExternalUrl).Append("\n"); + sb.Append(" AnimationUrl: ").Append(AnimationUrl).Append("\n"); + sb.Append(" YoutubeUrl: ").Append(YoutubeUrl).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Stack.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Stack.cs.meta new file mode 100644 index 00000000..c76e87f6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Stack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 285d3e1dd0a974ee1b538eeafc4f6055 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs b/src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs new file mode 100644 index 00000000..489dd8fe --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs @@ -0,0 +1,123 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Stack bundle includes stacks, markets and listings + /// + [DataContract(Name = "StackBundle")] + public partial class StackBundle + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected StackBundle() { } + /// + /// Initializes a new instance of the class. + /// + /// stack (required). + /// Total count of NFTs in the stack matching the filter params (required). + /// market (required). + /// List of open listings for the stack. (required). + public StackBundle(Stack stack = default(Stack), int stackCount = default(int), Market market = default(Market), List listings = default(List)) + { + // to ensure "stack" is required (not null) + if (stack == null) + { + throw new ArgumentNullException("stack is a required property for StackBundle and cannot be null"); + } + this.Stack = stack; + this.StackCount = stackCount; + // to ensure "market" is required (not null) + if (market == null) + { + throw new ArgumentNullException("market is a required property for StackBundle and cannot be null"); + } + this.Market = market; + // to ensure "listings" is required (not null) + if (listings == null) + { + throw new ArgumentNullException("listings is a required property for StackBundle and cannot be null"); + } + this.Listings = listings; + } + + /// + /// Gets or Sets Stack + /// + [DataMember(Name = "stack", IsRequired = true, EmitDefaultValue = true)] + public Stack Stack { get; set; } + + /// + /// Total count of NFTs in the stack matching the filter params + /// + /// Total count of NFTs in the stack matching the filter params + /// 1 + [DataMember(Name = "stack_count", IsRequired = true, EmitDefaultValue = true)] + public int StackCount { get; set; } + + /// + /// Gets or Sets Market + /// + [DataMember(Name = "market", IsRequired = true, EmitDefaultValue = true)] + public Market Market { get; set; } + + /// + /// List of open listings for the stack. + /// + /// List of open listings for the stack. + [DataMember(Name = "listings", IsRequired = true, EmitDefaultValue = true)] + public List Listings { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class StackBundle {\n"); + sb.Append(" Stack: ").Append(Stack).Append("\n"); + sb.Append(" StackCount: ").Append(StackCount).Append("\n"); + sb.Append(" Market: ").Append(Market).Append("\n"); + sb.Append(" Listings: ").Append(Listings).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs.meta new file mode 100644 index 00000000..aa5ab0c8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 45fe36f3ba6414d39be15ca2de5f186e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs new file mode 100644 index 00000000..24666fcf --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs @@ -0,0 +1,120 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Stack quote result + /// + [DataContract(Name = "StackQuoteResult")] + public partial class StackQuoteResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected StackQuoteResult() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// stackId (required). + /// marketStack (required). + /// marketCollection (required). + public StackQuoteResult(Chain chain = default(Chain), Guid stackId = default(Guid), Market marketStack = default(Market), Market marketCollection = default(Market)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for StackQuoteResult and cannot be null"); + } + this.Chain = chain; + this.StackId = stackId; + // to ensure "marketStack" is required (not null) + if (marketStack == null) + { + throw new ArgumentNullException("marketStack is a required property for StackQuoteResult and cannot be null"); + } + this.MarketStack = marketStack; + // to ensure "marketCollection" is required (not null) + if (marketCollection == null) + { + throw new ArgumentNullException("marketCollection is a required property for StackQuoteResult and cannot be null"); + } + this.MarketCollection = marketCollection; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets StackId + /// + [DataMember(Name = "stack_id", IsRequired = true, EmitDefaultValue = true)] + public Guid StackId { get; set; } + + /// + /// Gets or Sets MarketStack + /// + [DataMember(Name = "market_stack", IsRequired = true, EmitDefaultValue = true)] + public Market MarketStack { get; set; } + + /// + /// Gets or Sets MarketCollection + /// + [DataMember(Name = "market_collection", IsRequired = true, EmitDefaultValue = true)] + public Market MarketCollection { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class StackQuoteResult {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" StackId: ").Append(StackId).Append("\n"); + sb.Append(" MarketStack: ").Append(MarketStack).Append("\n"); + sb.Append(" MarketCollection: ").Append(MarketCollection).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs.meta new file mode 100644 index 00000000..0dd0c886 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/StackQuoteResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a63d3312cc961421ba5edbf3d0f94d9c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Token.cs b/src/Packages/ZkEvmApi/Runtime/Model/Token.cs new file mode 100644 index 00000000..df34b476 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Token.cs @@ -0,0 +1,232 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Token + /// + [DataContract(Name = "Token")] + public partial class Token + { + + /// + /// Gets or Sets VerificationStatus + /// + [DataMember(Name = "verification_status", IsRequired = true, EmitDefaultValue = true)] + public AssetVerificationStatus VerificationStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Token() { } + /// + /// Initializes a new instance of the class. + /// + /// chain (required). + /// The address of token contract (required). + /// The address of root token contract (required). + /// The id of the root chain for a bridged token. + /// The name of the bridge, for bridged tokens only. + /// The symbol of token (required). + /// The decimals of token (required). + /// The image url of token (required). + /// The name of token (required). + /// verificationStatus (required). + /// When the collection was last updated (required). + /// Indicates whether the token is canonical or not (required). + public Token(Chain chain = default(Chain), string contractAddress = default(string), string rootContractAddress = default(string), string rootChainId = default(string), string bridgeUsed = default(string), string symbol = default(string), int? decimals = default(int?), string imageUrl = default(string), string name = default(string), AssetVerificationStatus verificationStatus = default(AssetVerificationStatus), DateTime updatedAt = default(DateTime), bool isCanonical = default(bool)) + { + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Token and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for Token and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "rootContractAddress" is required (not null) + if (rootContractAddress == null) + { + throw new ArgumentNullException("rootContractAddress is a required property for Token and cannot be null"); + } + this.RootContractAddress = rootContractAddress; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for Token and cannot be null"); + } + this.Symbol = symbol; + // to ensure "decimals" is required (not null) + if (decimals == null) + { + throw new ArgumentNullException("decimals is a required property for Token and cannot be null"); + } + this.Decimals = decimals; + // to ensure "imageUrl" is required (not null) + if (imageUrl == null) + { + throw new ArgumentNullException("imageUrl is a required property for Token and cannot be null"); + } + this.ImageUrl = imageUrl; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for Token and cannot be null"); + } + this.Name = name; + this.VerificationStatus = verificationStatus; + this.UpdatedAt = updatedAt; + this.IsCanonical = isCanonical; + this.RootChainId = rootChainId; + this.BridgeUsed = bridgeUsed; + } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The address of token contract + /// + /// The address of token contract + /// 0xc344c05eef8876e517072f879dae8905aa2b956b + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The address of root token contract + /// + /// The address of root token contract + /// 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + [DataMember(Name = "root_contract_address", IsRequired = true, EmitDefaultValue = true)] + public string RootContractAddress { get; set; } + + /// + /// The id of the root chain for a bridged token + /// + /// The id of the root chain for a bridged token + /// eip155:1 + [DataMember(Name = "root_chain_id", EmitDefaultValue = true)] + public string RootChainId { get; set; } + + /// + /// The name of the bridge, for bridged tokens only + /// + /// The name of the bridge, for bridged tokens only + /// axelar + [DataMember(Name = "bridge_used", EmitDefaultValue = true)] + public string BridgeUsed { get; set; } + + /// + /// The symbol of token + /// + /// The symbol of token + /// AAA + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The decimals of token + /// + /// The decimals of token + /// 18 + [DataMember(Name = "decimals", IsRequired = true, EmitDefaultValue = true)] + public int? Decimals { get; set; } + + /// + /// The image url of token + /// + /// The image url of token + /// https://some-url + [DataMember(Name = "image_url", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } + + /// + /// The name of token + /// + /// The name of token + /// Token A + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// When the collection was last updated + /// + /// When the collection was last updated + /// 2022-08-16T17:43:26.991388Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Indicates whether the token is canonical or not + /// + /// Indicates whether the token is canonical or not + /// true + [DataMember(Name = "is_canonical", IsRequired = true, EmitDefaultValue = true)] + public bool IsCanonical { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Token {\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" RootContractAddress: ").Append(RootContractAddress).Append("\n"); + sb.Append(" RootChainId: ").Append(RootChainId).Append("\n"); + sb.Append(" BridgeUsed: ").Append(BridgeUsed).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Decimals: ").Append(Decimals).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" IsCanonical: ").Append(IsCanonical).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Token.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Token.cs.meta new file mode 100644 index 00000000..5a2e6740 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Token.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f4b7078a988643f39bc26995d18de17 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs b/src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs new file mode 100644 index 00000000..32e7b3d5 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs @@ -0,0 +1,42 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The contract type for a token + /// + /// The contract type for a token + [JsonConverter(typeof(StringEnumConverter))] + public enum TokenContractType + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs.meta new file mode 100644 index 00000000..7f58b16d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/TokenContractType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 68dbc11fd4fb54da3a3eba1c5b1cf846 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Trade.cs b/src/Packages/ZkEvmApi/Runtime/Model/Trade.cs new file mode 100644 index 00000000..7f3ad3ab --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Trade.cs @@ -0,0 +1,264 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Trade + /// + [DataContract(Name = "Trade")] + public partial class Trade + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Trade() { } + /// + /// Initializes a new instance of the class. + /// + /// Buy items are transferred from the taker to the maker. (required). + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. (required). + /// Deprecated. Use fees instead. The taker always pays the fees. (required). + /// fees (required). + /// chain (required). + /// orderId (required). + /// blockchainMetadata (required). + /// Time the on-chain trade event is indexed by the order book system (required). + /// Global Trade identifier (required). + /// Sell items are transferred from the maker to the taker. (required). + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. (required). + /// makerAddress (required). + /// takerAddress (required). + public Trade(List buy = default(List), string buyerAddress = default(string), List buyerFees = default(List), List fees = default(List), Chain chain = default(Chain), string orderId = default(string), TradeBlockchainMetadata blockchainMetadata = default(TradeBlockchainMetadata), DateTime indexedAt = default(DateTime), string id = default(string), List sell = default(List), string sellerAddress = default(string), string makerAddress = default(string), string takerAddress = default(string)) + { + // to ensure "buy" is required (not null) + if (buy == null) + { + throw new ArgumentNullException("buy is a required property for Trade and cannot be null"); + } + this.Buy = buy; + // to ensure "buyerAddress" is required (not null) + if (buyerAddress == null) + { + throw new ArgumentNullException("buyerAddress is a required property for Trade and cannot be null"); + } + this.BuyerAddress = buyerAddress; + // to ensure "buyerFees" is required (not null) + if (buyerFees == null) + { + throw new ArgumentNullException("buyerFees is a required property for Trade and cannot be null"); + } + this.BuyerFees = buyerFees; + // to ensure "fees" is required (not null) + if (fees == null) + { + throw new ArgumentNullException("fees is a required property for Trade and cannot be null"); + } + this.Fees = fees; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for Trade and cannot be null"); + } + this.Chain = chain; + // to ensure "orderId" is required (not null) + if (orderId == null) + { + throw new ArgumentNullException("orderId is a required property for Trade and cannot be null"); + } + this.OrderId = orderId; + // to ensure "blockchainMetadata" is required (not null) + if (blockchainMetadata == null) + { + throw new ArgumentNullException("blockchainMetadata is a required property for Trade and cannot be null"); + } + this.BlockchainMetadata = blockchainMetadata; + this.IndexedAt = indexedAt; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for Trade and cannot be null"); + } + this.Id = id; + // to ensure "sell" is required (not null) + if (sell == null) + { + throw new ArgumentNullException("sell is a required property for Trade and cannot be null"); + } + this.Sell = sell; + // to ensure "sellerAddress" is required (not null) + if (sellerAddress == null) + { + throw new ArgumentNullException("sellerAddress is a required property for Trade and cannot be null"); + } + this.SellerAddress = sellerAddress; + // to ensure "makerAddress" is required (not null) + if (makerAddress == null) + { + throw new ArgumentNullException("makerAddress is a required property for Trade and cannot be null"); + } + this.MakerAddress = makerAddress; + // to ensure "takerAddress" is required (not null) + if (takerAddress == null) + { + throw new ArgumentNullException("takerAddress is a required property for Trade and cannot be null"); + } + this.TakerAddress = takerAddress; + } + + /// + /// Buy items are transferred from the taker to the maker. + /// + /// Buy items are transferred from the taker to the maker. + /// [{"type":"NATIVE","amount":"9750000000000000000","contract_address":"0x0165878A594ca255338adfa4d48449f69242Eb8F"}] + [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] + public List Buy { get; set; } + + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + [DataMember(Name = "buyer_address", IsRequired = true, EmitDefaultValue = true)] + public string BuyerAddress { get; set; } + + /// + /// Deprecated. Use fees instead. The taker always pays the fees. + /// + /// Deprecated. Use fees instead. The taker always pays the fees. + /// [] + [DataMember(Name = "buyer_fees", IsRequired = true, EmitDefaultValue = true)] + public List BuyerFees { get; set; } + + /// + /// Gets or Sets Fees + /// + /// [] + [DataMember(Name = "fees", IsRequired = true, EmitDefaultValue = true)] + public List Fees { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// Gets or Sets OrderId + /// + /// 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } + + /// + /// Gets or Sets BlockchainMetadata + /// + [DataMember(Name = "blockchain_metadata", IsRequired = true, EmitDefaultValue = true)] + public TradeBlockchainMetadata BlockchainMetadata { get; set; } + + /// + /// Time the on-chain trade event is indexed by the order book system + /// + /// Time the on-chain trade event is indexed by the order book system + /// 2022-03-07T07:20:50.520Z + [DataMember(Name = "indexed_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime IndexedAt { get; set; } + + /// + /// Global Trade identifier + /// + /// Global Trade identifier + /// 018792C9-4AD7-8EC4-4038-9E05C598534A + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Sell items are transferred from the maker to the taker. + /// + /// Sell items are transferred from the maker to the taker. + /// [{"type":"ERC721","contract_address":"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E","token_id":"1"}] + [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] + public List Sell { get; set; } + + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// + /// Deprecated. Use maker and taker addresses instead of buyer and seller addresses. + /// 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + [DataMember(Name = "seller_address", IsRequired = true, EmitDefaultValue = true)] + public string SellerAddress { get; set; } + + /// + /// Gets or Sets MakerAddress + /// + /// 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + [DataMember(Name = "maker_address", IsRequired = true, EmitDefaultValue = true)] + public string MakerAddress { get; set; } + + /// + /// Gets or Sets TakerAddress + /// + /// 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + [DataMember(Name = "taker_address", IsRequired = true, EmitDefaultValue = true)] + public string TakerAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Trade {\n"); + sb.Append(" Buy: ").Append(Buy).Append("\n"); + sb.Append(" BuyerAddress: ").Append(BuyerAddress).Append("\n"); + sb.Append(" BuyerFees: ").Append(BuyerFees).Append("\n"); + sb.Append(" Fees: ").Append(Fees).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" BlockchainMetadata: ").Append(BlockchainMetadata).Append("\n"); + sb.Append(" IndexedAt: ").Append(IndexedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Sell: ").Append(Sell).Append("\n"); + sb.Append(" SellerAddress: ").Append(SellerAddress).Append("\n"); + sb.Append(" MakerAddress: ").Append(MakerAddress).Append("\n"); + sb.Append(" TakerAddress: ").Append(TakerAddress).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Trade.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Trade.cs.meta new file mode 100644 index 00000000..7fefb70a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Trade.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b003428813f2e494fa215b453bc0726d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs b/src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs new file mode 100644 index 00000000..6ff820b6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs @@ -0,0 +1,133 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The metadata related to the transaction in which the activity occurred + /// + [DataContract(Name = "TradeBlockchainMetadata")] + public partial class TradeBlockchainMetadata + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TradeBlockchainMetadata() { } + /// + /// Initializes a new instance of the class. + /// + /// The transaction hash of the trade (required). + /// EVM block number (uint64 as string) (required). + /// Transaction index in a block (uint32 as string) (required). + /// The log index of the fulfillment event in a block (uint32 as string) (required). + public TradeBlockchainMetadata(string transactionHash = default(string), string blockNumber = default(string), string transactionIndex = default(string), string logIndex = default(string)) + { + // to ensure "transactionHash" is required (not null) + if (transactionHash == null) + { + throw new ArgumentNullException("transactionHash is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.TransactionHash = transactionHash; + // to ensure "blockNumber" is required (not null) + if (blockNumber == null) + { + throw new ArgumentNullException("blockNumber is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.BlockNumber = blockNumber; + // to ensure "transactionIndex" is required (not null) + if (transactionIndex == null) + { + throw new ArgumentNullException("transactionIndex is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.TransactionIndex = transactionIndex; + // to ensure "logIndex" is required (not null) + if (logIndex == null) + { + throw new ArgumentNullException("logIndex is a required property for TradeBlockchainMetadata and cannot be null"); + } + this.LogIndex = logIndex; + } + + /// + /// The transaction hash of the trade + /// + /// The transaction hash of the trade + /// 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + [DataMember(Name = "transaction_hash", IsRequired = true, EmitDefaultValue = true)] + public string TransactionHash { get; set; } + + /// + /// EVM block number (uint64 as string) + /// + /// EVM block number (uint64 as string) + /// 1 + [DataMember(Name = "block_number", IsRequired = true, EmitDefaultValue = true)] + public string BlockNumber { get; set; } + + /// + /// Transaction index in a block (uint32 as string) + /// + /// Transaction index in a block (uint32 as string) + /// 1 + [DataMember(Name = "transaction_index", IsRequired = true, EmitDefaultValue = true)] + public string TransactionIndex { get; set; } + + /// + /// The log index of the fulfillment event in a block (uint32 as string) + /// + /// The log index of the fulfillment event in a block (uint32 as string) + /// 1 + [DataMember(Name = "log_index", IsRequired = true, EmitDefaultValue = true)] + public string LogIndex { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TradeBlockchainMetadata {\n"); + sb.Append(" TransactionHash: ").Append(TransactionHash).Append("\n"); + sb.Append(" BlockNumber: ").Append(BlockNumber).Append("\n"); + sb.Append(" TransactionIndex: ").Append(TransactionIndex).Append("\n"); + sb.Append(" LogIndex: ").Append(LogIndex).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs.meta new file mode 100644 index 00000000..9072707b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/TradeBlockchainMetadata.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 987d56b3e5eb743b5929f939d41ac217 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs b/src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs new file mode 100644 index 00000000..5362e871 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs @@ -0,0 +1,83 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// TradeResult + /// + [DataContract(Name = "TradeResult")] + public partial class TradeResult + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TradeResult() { } + /// + /// Initializes a new instance of the class. + /// + /// result (required). + public TradeResult(Trade result = default(Trade)) + { + // to ensure "result" is required (not null) + if (result == null) + { + throw new ArgumentNullException("result is a required property for TradeResult and cannot be null"); + } + this.Result = result; + } + + /// + /// Gets or Sets Result + /// + [DataMember(Name = "result", IsRequired = true, EmitDefaultValue = true)] + public Trade Result { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TradeResult {\n"); + sb.Append(" Result: ").Append(Result).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs.meta new file mode 100644 index 00000000..d5d256fe --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/TradeResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2ad637261bead4dcd92d8046aa958d5a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs b/src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs new file mode 100644 index 00000000..a411afb8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs @@ -0,0 +1,131 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The transfer activity details + /// + [DataContract(Name = "Transfer")] + public partial class Transfer + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Transfer() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was transferred from (required). + /// The account address the asset was transferred to (required). + /// The amount of assets transferred (required). + /// asset (required). + public Transfer(string from = default(string), string to = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for Transfer and cannot be null"); + } + this.From = from; + // to ensure "to" is required (not null) + if (to == null) + { + throw new ArgumentNullException("to is a required property for Transfer and cannot be null"); + } + this.To = to; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Transfer and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Transfer and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was transferred from + /// + /// The account address the asset was transferred from + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The account address the asset was transferred to + /// + /// The account address the asset was transferred to + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)] + public string To { get; set; } + + /// + /// The amount of assets transferred + /// + /// The amount of assets transferred + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Transfer {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" To: ").Append(To).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs.meta new file mode 100644 index 00000000..81c6fedd --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Transfer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b7768ac70e1174c6f961b4bf650a20c6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs b/src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs new file mode 100644 index 00000000..8cd473c6 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs @@ -0,0 +1,112 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// UnfulfillableOrder + /// + [DataContract(Name = "UnfulfillableOrder")] + public partial class UnfulfillableOrder + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnfulfillableOrder() { } + /// + /// Initializes a new instance of the class. + /// + /// OrderID for the requested but unfulfillable order (required). + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order. + /// Nullable string containing error reason if the signing is unsuccessful for the order (required). + public UnfulfillableOrder(string orderId = default(string), string tokenId = default(string), string reason = default(string)) + { + // to ensure "orderId" is required (not null) + if (orderId == null) + { + throw new ArgumentNullException("orderId is a required property for UnfulfillableOrder and cannot be null"); + } + this.OrderId = orderId; + // to ensure "reason" is required (not null) + if (reason == null) + { + throw new ArgumentNullException("reason is a required property for UnfulfillableOrder and cannot be null"); + } + this.Reason = reason; + this.TokenId = tokenId; + } + + /// + /// OrderID for the requested but unfulfillable order + /// + /// OrderID for the requested but unfulfillable order + /// 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "order_id", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } + + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// + /// Token ID for the ERC721 or ERC1155 token when fulfilling a collection order + /// 123 + [DataMember(Name = "token_id", EmitDefaultValue = false)] + public string TokenId { get; set; } + + /// + /// Nullable string containing error reason if the signing is unsuccessful for the order + /// + /// Nullable string containing error reason if the signing is unsuccessful for the order + /// Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + [DataMember(Name = "reason", IsRequired = true, EmitDefaultValue = true)] + public string Reason { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnfulfillableOrder {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" TokenId: ").Append(TokenId).Append("\n"); + sb.Append(" Reason: ").Append(Reason).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs.meta new file mode 100644 index 00000000..622ead46 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/UnfulfillableOrder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe22394d849d0412f982ced4618f36e1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs b/src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs new file mode 100644 index 00000000..f5a30eab --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs @@ -0,0 +1,119 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// UserInfo + /// + [DataContract(Name = "UserInfo")] + public partial class UserInfo + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UserInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// The user's id (required). + /// The user's email address. + /// The user's Passport address if it has been registered. + /// The user's list of linked addresses (required). + public UserInfo(string sub = default(string), string email = default(string), string passportAddress = default(string), List linkedAddresses = default(List)) + { + // to ensure "sub" is required (not null) + if (sub == null) + { + throw new ArgumentNullException("sub is a required property for UserInfo and cannot be null"); + } + this.Sub = sub; + // to ensure "linkedAddresses" is required (not null) + if (linkedAddresses == null) + { + throw new ArgumentNullException("linkedAddresses is a required property for UserInfo and cannot be null"); + } + this.LinkedAddresses = linkedAddresses; + this.Email = email; + this.PassportAddress = passportAddress; + } + + /// + /// The user's id + /// + /// The user's id + [DataMember(Name = "sub", IsRequired = true, EmitDefaultValue = true)] + public string Sub { get; set; } + + /// + /// The user's email address + /// + /// The user's email address + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// The user's Passport address if it has been registered + /// + /// The user's Passport address if it has been registered + [DataMember(Name = "passport_address", EmitDefaultValue = false)] + public string PassportAddress { get; set; } + + /// + /// The user's list of linked addresses + /// + /// The user's list of linked addresses + [DataMember(Name = "linked_addresses", IsRequired = true, EmitDefaultValue = true)] + public List LinkedAddresses { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UserInfo {\n"); + sb.Append(" Sub: ").Append(Sub).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PassportAddress: ").Append(PassportAddress).Append("\n"); + sb.Append(" LinkedAddresses: ").Append(LinkedAddresses).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs.meta new file mode 100644 index 00000000..390c7b43 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/UserInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 30b714971d9a1432b89466ef67a05e18 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs new file mode 100644 index 00000000..7330f820 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs @@ -0,0 +1,224 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The verification request + /// + [DataContract(Name = "VerificationRequest")] + public partial class VerificationRequest + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestContractType ContractType { get; set; } + + /// + /// Gets or Sets VerificationRequestStatus + /// + [DataMember(Name = "verification_request_status", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestStatus VerificationRequestStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerificationRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the verification request (required). + /// chain (required). + /// The contract address (required). + /// The name of the organisation associated with this contract (required). + /// The name of the collection (required). + /// The symbol of contract (required). + /// The description of collection (required). + /// The id of the organisation associated with this contract (required). + /// The email address of the user who requested the contract to be verified (required). + /// contractType (required). + /// verificationRequestStatus (required). + public VerificationRequest(Guid id = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), string orgName = default(string), string name = default(string), string symbol = default(string), string description = default(string), string orgId = default(string), string requesterEmail = default(string), VerificationRequestContractType contractType = default(VerificationRequestContractType), VerificationRequestStatus verificationRequestStatus = default(VerificationRequestStatus)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for VerificationRequest and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for VerificationRequest and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "orgName" is required (not null) + if (orgName == null) + { + throw new ArgumentNullException("orgName is a required property for VerificationRequest and cannot be null"); + } + this.OrgName = orgName; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for VerificationRequest and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for VerificationRequest and cannot be null"); + } + this.Symbol = symbol; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for VerificationRequest and cannot be null"); + } + this.Description = description; + // to ensure "orgId" is required (not null) + if (orgId == null) + { + throw new ArgumentNullException("orgId is a required property for VerificationRequest and cannot be null"); + } + this.OrgId = orgId; + // to ensure "requesterEmail" is required (not null) + if (requesterEmail == null) + { + throw new ArgumentNullException("requesterEmail is a required property for VerificationRequest and cannot be null"); + } + this.RequesterEmail = requesterEmail; + this.ContractType = contractType; + this.VerificationRequestStatus = verificationRequestStatus; + } + + /// + /// The id of the verification request + /// + /// The id of the verification request + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The contract address + /// + /// The contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The name of the organisation associated with this contract + /// + /// The name of the organisation associated with this contract + /// Immutable + [DataMember(Name = "org_name", IsRequired = true, EmitDefaultValue = true)] + public string OrgName { get; set; } + + /// + /// The name of the collection + /// + /// The name of the collection + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// BASP + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// Some description + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The id of the organisation associated with this contract + /// + /// The id of the organisation associated with this contract + /// 753da67a-5d3b-42c7-b87a-eba3d17a6362 + [DataMember(Name = "org_id", IsRequired = true, EmitDefaultValue = true)] + public string OrgId { get; set; } + + /// + /// The email address of the user who requested the contract to be verified + /// + /// The email address of the user who requested the contract to be verified + /// user@immutable.com + [DataMember(Name = "requester_email", IsRequired = true, EmitDefaultValue = true)] + public string RequesterEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerificationRequest {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" OrgName: ").Append(OrgName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" RequesterEmail: ").Append(RequesterEmail).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" VerificationRequestStatus: ").Append(VerificationRequestStatus).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs.meta new file mode 100644 index 00000000..0986c0c8 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 02f424e6157964d16aea71909f446293 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs new file mode 100644 index 00000000..eddd9465 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs @@ -0,0 +1,54 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The contract type associated with the given request + /// + /// The contract type associated with the given request + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationRequestContractType + { + /// + /// Enum ERC20 for value: ERC20 + /// + [EnumMember(Value = "ERC20")] + ERC20 = 1, + + /// + /// Enum ERC721 for value: ERC721 + /// + [EnumMember(Value = "ERC721")] + ERC721 = 2, + + /// + /// Enum ERC1155 for value: ERC1155 + /// + [EnumMember(Value = "ERC1155")] + ERC1155 = 3 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs.meta new file mode 100644 index 00000000..e711a6ca --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestContractType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: abd12f3166b9c4870aff717dfbbdd582 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs new file mode 100644 index 00000000..c0bca8cd --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs @@ -0,0 +1,233 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The verification request (internal) + /// + [DataContract(Name = "VerificationRequestInternal")] + public partial class VerificationRequestInternal + { + + /// + /// Gets or Sets ContractType + /// + [DataMember(Name = "contract_type", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestContractType ContractType { get; set; } + + /// + /// Gets or Sets VerificationRequestStatus + /// + [DataMember(Name = "verification_request_status", IsRequired = true, EmitDefaultValue = true)] + public VerificationRequestStatus VerificationRequestStatus { get; set; } + + /// + /// Gets or Sets OrgTier + /// + [DataMember(Name = "org_tier", IsRequired = true, EmitDefaultValue = true)] + public OrganisationTier OrgTier { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerificationRequestInternal() { } + /// + /// Initializes a new instance of the class. + /// + /// The id of the verification request (required). + /// chain (required). + /// The contract address (required). + /// The name of the organisation associated with this contract (required). + /// The name of the collection (required). + /// The symbol of contract (required). + /// The description of collection (required). + /// The id of the organisation associated with this contract (required). + /// The email address of the user who requested the contract to be verified (required). + /// contractType (required). + /// verificationRequestStatus (required). + /// orgTier (required). + public VerificationRequestInternal(Guid id = default(Guid), Chain chain = default(Chain), string contractAddress = default(string), string orgName = default(string), string name = default(string), string symbol = default(string), string description = default(string), string orgId = default(string), string requesterEmail = default(string), VerificationRequestContractType contractType = default(VerificationRequestContractType), VerificationRequestStatus verificationRequestStatus = default(VerificationRequestStatus), OrganisationTier orgTier = default(OrganisationTier)) + { + this.Id = id; + // to ensure "chain" is required (not null) + if (chain == null) + { + throw new ArgumentNullException("chain is a required property for VerificationRequestInternal and cannot be null"); + } + this.Chain = chain; + // to ensure "contractAddress" is required (not null) + if (contractAddress == null) + { + throw new ArgumentNullException("contractAddress is a required property for VerificationRequestInternal and cannot be null"); + } + this.ContractAddress = contractAddress; + // to ensure "orgName" is required (not null) + if (orgName == null) + { + throw new ArgumentNullException("orgName is a required property for VerificationRequestInternal and cannot be null"); + } + this.OrgName = orgName; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for VerificationRequestInternal and cannot be null"); + } + this.Name = name; + // to ensure "symbol" is required (not null) + if (symbol == null) + { + throw new ArgumentNullException("symbol is a required property for VerificationRequestInternal and cannot be null"); + } + this.Symbol = symbol; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for VerificationRequestInternal and cannot be null"); + } + this.Description = description; + // to ensure "orgId" is required (not null) + if (orgId == null) + { + throw new ArgumentNullException("orgId is a required property for VerificationRequestInternal and cannot be null"); + } + this.OrgId = orgId; + // to ensure "requesterEmail" is required (not null) + if (requesterEmail == null) + { + throw new ArgumentNullException("requesterEmail is a required property for VerificationRequestInternal and cannot be null"); + } + this.RequesterEmail = requesterEmail; + this.ContractType = contractType; + this.VerificationRequestStatus = verificationRequestStatus; + this.OrgTier = orgTier; + } + + /// + /// The id of the verification request + /// + /// The id of the verification request + /// 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Chain + /// + [DataMember(Name = "chain", IsRequired = true, EmitDefaultValue = true)] + public Chain Chain { get; set; } + + /// + /// The contract address + /// + /// The contract address + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "contract_address", IsRequired = true, EmitDefaultValue = true)] + public string ContractAddress { get; set; } + + /// + /// The name of the organisation associated with this contract + /// + /// The name of the organisation associated with this contract + /// Immutable + [DataMember(Name = "org_name", IsRequired = true, EmitDefaultValue = true)] + public string OrgName { get; set; } + + /// + /// The name of the collection + /// + /// The name of the collection + /// 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// The symbol of contract + /// + /// The symbol of contract + /// BASP + [DataMember(Name = "symbol", IsRequired = true, EmitDefaultValue = true)] + public string Symbol { get; set; } + + /// + /// The description of collection + /// + /// The description of collection + /// Some description + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// The id of the organisation associated with this contract + /// + /// The id of the organisation associated with this contract + /// 753da67a-5d3b-42c7-b87a-eba3d17a6362 + [DataMember(Name = "org_id", IsRequired = true, EmitDefaultValue = true)] + public string OrgId { get; set; } + + /// + /// The email address of the user who requested the contract to be verified + /// + /// The email address of the user who requested the contract to be verified + /// user@immutable.com + [DataMember(Name = "requester_email", IsRequired = true, EmitDefaultValue = true)] + public string RequesterEmail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerificationRequestInternal {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Chain: ").Append(Chain).Append("\n"); + sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); + sb.Append(" OrgName: ").Append(OrgName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Symbol: ").Append(Symbol).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" OrgId: ").Append(OrgId).Append("\n"); + sb.Append(" RequesterEmail: ").Append(RequesterEmail).Append("\n"); + sb.Append(" ContractType: ").Append(ContractType).Append("\n"); + sb.Append(" VerificationRequestStatus: ").Append(VerificationRequestStatus).Append("\n"); + sb.Append(" OrgTier: ").Append(OrgTier).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs.meta new file mode 100644 index 00000000..9a97153c --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestInternal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 308fa1d06902c40259fa5d842b0083cd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs new file mode 100644 index 00000000..14a5b446 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs @@ -0,0 +1,48 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The status of the verification request + /// + /// The status of the verification request + [JsonConverter(typeof(StringEnumConverter))] + public enum VerificationRequestStatus + { + /// + /// Enum Completed for value: completed + /// + [EnumMember(Value = "completed")] + Completed = 1, + + /// + /// Enum Pending for value: pending + /// + [EnumMember(Value = "pending")] + Pending = 2 + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs.meta new file mode 100644 index 00000000..b7a7f927 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/VerificationRequestStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae2b7769d70fd4f59a791dbef3965b1d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs b/src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs new file mode 100644 index 00000000..431a39ca --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs @@ -0,0 +1,150 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// Linked wallet + /// + [DataContract(Name = "Wallet")] + public partial class Wallet + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Wallet() { } + /// + /// Initializes a new instance of the class. + /// + /// Ethereum address (required). + /// Wallet type (required). + /// Created at (required). + /// Created at (required). + /// Name. + /// Name of client that linked the wallet (required). + public Wallet(string address = default(string), string type = default(string), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string clientName = default(string)) + { + // to ensure "address" is required (not null) + if (address == null) + { + throw new ArgumentNullException("address is a required property for Wallet and cannot be null"); + } + this.Address = address; + // to ensure "type" is required (not null) + if (type == null) + { + throw new ArgumentNullException("type is a required property for Wallet and cannot be null"); + } + this.Type = type; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + // to ensure "clientName" is required (not null) + if (clientName == null) + { + throw new ArgumentNullException("clientName is a required property for Wallet and cannot be null"); + } + this.ClientName = clientName; + this.Name = name; + } + + /// + /// Ethereum address + /// + /// Ethereum address + /// 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + [DataMember(Name = "address", IsRequired = true, EmitDefaultValue = true)] + public string Address { get; set; } + + /// + /// Wallet type + /// + /// Wallet type + /// MetaMask + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Created at + /// + /// Created at + /// 2021-08-31T00:00Z + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Created at + /// + /// Created at + /// 2021-08-31T00:00Z + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Name + /// + /// Name + /// Test + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Name of client that linked the wallet + /// + /// Name of client that linked the wallet + /// Passport Dashboard + [DataMember(Name = "clientName", IsRequired = true, EmitDefaultValue = true)] + public string ClientName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Wallet {\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ClientName: ").Append(ClientName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs.meta new file mode 100644 index 00000000..aa449673 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Wallet.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d6eb9c37089944d7798d88fddfb68f73 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs b/src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs new file mode 100644 index 00000000..2acf175b --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs @@ -0,0 +1,115 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// The withdrawal activity details + /// + [DataContract(Name = "Withdrawal")] + public partial class Withdrawal + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Withdrawal() { } + /// + /// Initializes a new instance of the class. + /// + /// The account address the asset was withdrawn from (required). + /// The amount of assets withdrawn (required). + /// asset (required). + public Withdrawal(string from = default(string), string amount = default(string), ActivityAsset asset = default(ActivityAsset)) + { + // to ensure "from" is required (not null) + if (from == null) + { + throw new ArgumentNullException("from is a required property for Withdrawal and cannot be null"); + } + this.From = from; + // to ensure "amount" is required (not null) + if (amount == null) + { + throw new ArgumentNullException("amount is a required property for Withdrawal and cannot be null"); + } + this.Amount = amount; + // to ensure "asset" is required (not null) + if (asset == null) + { + throw new ArgumentNullException("asset is a required property for Withdrawal and cannot be null"); + } + this.Asset = asset; + } + + /// + /// The account address the asset was withdrawn from + /// + /// The account address the asset was withdrawn from + /// 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + [DataMember(Name = "from", IsRequired = true, EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// The amount of assets withdrawn + /// + /// The amount of assets withdrawn + /// 1 + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public string Amount { get; set; } + + /// + /// Gets or Sets Asset + /// + [DataMember(Name = "asset", IsRequired = true, EmitDefaultValue = true)] + public ActivityAsset Asset { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Withdrawal {\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Asset: ").Append(Asset).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs.meta new file mode 100644 index 00000000..ab6403fe --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/Withdrawal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2c52199c86bab494590f0b4842395400 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/api~/openapi.yaml b/src/Packages/ZkEvmApi/api~/openapi.yaml new file mode 100644 index 00000000..32f090e1 --- /dev/null +++ b/src/Packages/ZkEvmApi/api~/openapi.yaml @@ -0,0 +1,10701 @@ +openapi: 3.0.3 +info: + contact: + email: support@immutable.com + name: Immutable API Support + url: https://support.immutable.com + description: Immutable Multi Rollup API + title: Immutable zkEVM API + version: 1.0.0 +servers: +- url: https://api.sandbox.immutable.com +tags: +- description: Activities Endpoints + name: activities + x-displayName: activities +- description: Chains Endpoints + name: chains + x-displayName: chains +- description: Collections Endpoints + name: collections + x-displayName: collections +- description: NFTs Endpoints + name: nfts + x-displayName: nfts +- description: NFT Owner Endpoints + name: nft owners + x-displayName: nft owners +- description: NFT Metadata Endpoints + name: metadata + x-displayName: metadata +- description: ERC20 Token Endpoints + name: tokens + x-displayName: tokens +- description: Temporary HTML endpoint for demo purposes + name: demopage + x-displayName: demopage +- name: verification + x-displayName: verification +- name: operatorallowlist + x-displayName: operatorallowlist +- name: crafting + x-displayName: crafting +- description: Listings Endpoints + name: listings + x-displayName: listings +- name: orders + x-displayName: orders +- description: Passport operations + name: passport + x-displayName: passport +- description: Passport Profile endpoints + name: passport profile + x-displayName: passport profile +- description: Guardian endpoints + name: guardian + x-displayName: guardian +- description: Pricing Endpoints + name: pricing + x-displayName: pricing +- description: Stacks Endpoints + name: stacks + x-displayName: stacks +paths: + /v1/chains/{chain_name}/activity-history: + get: + description: "List activities sorted by updated_at timestamp ascending, useful\ + \ for time based data replication" + operationId: ListActivityHistory + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: From indexed at including given date + explode: true + in: query + name: from_updated_at + required: true + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: To indexed at including given date + explode: true + in: query + name: to_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: The contract address of the collection + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: true + in: query + name: contract_address + required: false + schema: + type: string + style: form + - description: The activity type + example: burn + explode: true + in: query + name: activity_type + required: false + schema: + $ref: '#/components/schemas/ActivityType' + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListActivitiesResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List history of activities + tags: + - activities + /v1/chains/{chain_name}/activities: + get: + description: List all activities + operationId: ListActivities + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The contract address of NFT or ERC20 Token + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: true + in: query + name: contract_address + required: false + schema: + type: string + style: form + - description: An `uint256` token id as string + example: "1" + explode: true + in: query + name: token_id + required: false + schema: + type: string + style: form + - description: The account address activity contains + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: true + in: query + name: account_address + required: false + schema: + type: string + style: form + - description: The activity type + example: burn + explode: true + in: query + name: activity_type + required: false + schema: + $ref: '#/components/schemas/ActivityType' + style: form + - description: The transaction hash of activity + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + explode: true + in: query + name: transaction_hash + required: false + schema: + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListActivitiesResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all activities + tags: + - activities + /v1/chains/{chain_name}/activities/{activity_id}: + get: + description: Get a single activity by ID + operationId: GetActivity + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The id of activity + explode: false + in: path + name: activity_id + required: true + schema: + $ref: '#/components/schemas/ActivityID' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetActivityResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single activity by ID + tags: + - activities + /v1/chains/{chain_name}/collections: + get: + description: List all collections + operationId: ListCollections + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of contract addresses to filter by + explode: true + in: query + name: contract_address + required: false + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + type: array + style: form + - description: List of verification status to filter by + explode: true + in: query + name: verification_status + required: false + schema: + items: + $ref: '#/components/schemas/AssetVerificationStatus' + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all collections + tags: + - collections + /v1/chains/{chain_name}/collections/{contract_address}: + get: + description: Get collection by contract address + operationId: GetCollection + parameters: + - description: The address contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetCollectionResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get collection by contract address + tags: + - collections + /v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata: + post: + description: Refresh collection metadata + operationId: RefreshCollectionMetadata + parameters: + - description: The address contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshCollectionMetadataRequest' + description: The request body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshCollectionMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - refresh:metadata + - BearerAuth: + - refresh:metadata + summary: Refresh collection metadata + tags: + - collections + /v1/chains/{chain_name}/accounts/{account_address}/collections: + get: + description: List collections by NFT owner account address + operationId: ListCollectionsByNFTOwner + parameters: + - description: Account address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: account_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List collections by NFT owner + tags: + - collections + /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}: + get: + description: Get NFT by token ID + operationId: GetNFT + parameters: + - description: The address of NFT contract + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: An `uint256` token id as string + example: "1" + explode: false + in: path + name: token_id + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetNFTResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get NFT by token ID + tags: + - nfts + /v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}: + get: + description: Get metadata by ID + operationId: GetMetadata + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The address of metadata contract + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The id of the metadata + explode: false + in: path + name: metadata_id + required: true + schema: + $ref: '#/components/schemas/MetadataID' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get metadata by ID + tags: + - metadata + /v1/chains/{chain_name}/collections/{contract_address}/metadata: + get: + description: Get a list of metadata from the given contract + operationId: ListMetadata + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The address of metadata contract + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a list of metadata from the given contract + tags: + - metadata + /v1/chains/{chain_name}/metadata: + get: + description: Get a list of metadata from the given chain + operationId: ListMetadataForChain + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMetadataResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a list of metadata from the given chain + tags: + - metadata + /v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata: + post: + description: Refresh stacked metadata + operationId: RefreshMetadataByID + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Contract address + explode: false + in: path + name: contract_address + required: true + schema: + $ref: '#/components/schemas/Address' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshMetadataByIDRequest' + description: NFT Metadata Refresh Request + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataRefreshRateLimitResult' + description: Accepted + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + retry-after: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Metadata refreshes (429) + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + Retry-After: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - refresh:metadata + summary: Refresh stacked metadata + tags: + - metadata + x-go-name: RefreshMetadataByID + /v1/chains/{chain_name}/collections/{contract_address}/nfts: + get: + description: List NFTs by contract address + operationId: ListNFTs + parameters: + - description: Contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of token IDs to filter by + explode: true + in: query + name: token_id + required: false + schema: + items: + example: "1" + type: string + maxItems: 30 + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List NFTs by contract address + tags: + - nfts + /v1/chains/{chain_name}/accounts/{account_address}/nfts: + get: + description: List NFTs by account address + operationId: ListNFTsByAccountAddress + parameters: + - description: Account address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + explode: false + in: path + name: account_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: true + in: query + name: contract_address + required: false + schema: + type: string + style: form + - description: List of token IDs to filter by + explode: true + in: query + name: token_id + required: false + schema: + items: + example: "1" + type: string + maxItems: 30 + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTsByOwnerResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List NFTs by account address + tags: + - nfts + /v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners: + get: + description: List NFT owners by token ID + operationId: ListNFTOwners + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: An `uint256` token id as string + example: "1" + explode: false + in: path + name: token_id + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTOwnersResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List NFT owners by token ID + tags: + - nft owners + /v1/chains/{chain_name}/nfts: + get: + description: List all NFTs on a chain + operationId: ListAllNFTs + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all NFTs + tags: + - nfts + /v1/chains/{chain_name}/nft-owners: + get: + description: List all NFT owners on a chain + operationId: ListAllNFTOwners + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListNFTOwnersResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all NFT owners + tags: + - nft owners + /v1/chains/{chain_name}/collections/{contract_address}/owners: + get: + description: List owners by contract address + operationId: ListOwnersByContractAddress + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of account addresses to filter by + explode: true + in: query + name: account_address + required: false + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + maxItems: 30 + type: array + style: form + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionOwnersResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List owners by contract address + tags: + - nft owners + /v1/chains/{chain_name}/tokens: + get: + description: List ERC20 tokens + operationId: ListERC20Tokens + parameters: + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Datetime to use as the oldest updated timestamp + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + style: form + - description: List of verification status to filter by + explode: true + in: query + name: verification_status + required: false + schema: + items: + $ref: '#/components/schemas/AssetVerificationStatus' + type: array + style: form + - description: "[Experimental - Canonical token data may be updated] Filter\ + \ by canonical or non-canonical tokens." + explode: true + in: query + name: is_canonical + required: false + schema: + type: boolean + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListTokensResult' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List ERC20 tokens + tags: + - tokens + /v1/chains/{chain_name}/tokens/{contract_address}: + get: + description: Get single ERC20 token + operationId: GetERC20Token + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetTokenResult' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get single ERC20 token + tags: + - tokens + /v1/chains: + get: + description: List supported chains + operationId: ListChains + parameters: + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListChainsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List supported chains + tags: + - chains + /v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata: + post: + description: Refresh NFT metadata + operationId: RefreshNFTMetadataByTokenID + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RefreshNFTMetadataByTokenIDRequest' + description: the request body + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/MetadataRefreshRateLimitResult' + description: Accepted + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + retry-after: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Metadata refreshes (429) + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + Retry-After: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - refresh:metadata + summary: Refresh NFT metadata + tags: + - metadata + /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests: + get: + description: Retrieve the status of all mints for a given contract address + operationId: ListMintRequests + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + - description: Maximum number of items to return + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: The status of the mint request + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/MintRequestStatus' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMintRequestsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - write:mint-request + summary: List mint requests + tags: + - nfts + post: + description: Create a mint request to mint a set of NFTs for a given collection + operationId: CreateMintRequest + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMintRequestRequest' + description: Create Mint Request Body + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/CreateMintRequestResult' + description: Accepted + headers: + imx-mint-requests-limit: + $ref: '#/components/headers/MintRequestsLimit' + imx-mint-requests-limit-reset: + $ref: '#/components/headers/MintRequestsLimitReset' + imx-remaining-mint-requests: + $ref: '#/components/headers/MintRequestsLimitRemaining' + imx-mint-requests-retry-after: + $ref: '#/components/headers/MintRequestsRetryAfter' + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError409' + description: Conflict (409) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many mint requests (429) + headers: + imx-mint-requests-limit: + $ref: '#/components/headers/MintRequestsLimit' + imx-mint-requests-limit-reset: + $ref: '#/components/headers/MintRequestsLimitReset' + imx-remaining-mint-requests: + $ref: '#/components/headers/MintRequestsLimitRemaining' + imx-mint-requests-retry-after: + $ref: '#/components/headers/MintRequestsRetryAfter' + Retry-After: + $ref: '#/components/headers/MintRequestsRetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - write:mint-request + summary: Mint NFTs + tags: + - nfts + /v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}: + get: + description: Retrieve the status of a mint request identified by its reference_id + operationId: GetMintRequest + parameters: + - description: The address of contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + explode: false + in: path + name: contract_address + required: true + schema: + type: string + style: simple + - description: The name of chain + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: The id of the mint request + example: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + explode: false + in: path + name: reference_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListMintRequestsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - write:mint-request + summary: Get mint request by reference ID + tags: + - nfts + /v1/chains/{chain_name}/crafting/sign: + post: + description: Sign a crafting payload + operationId: SignCraftingPayload + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SignCraftingRequest' + description: The request body + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SignCraftingResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + security: + - ImmutableApiKey: + - create:collections + summary: Sign a crafting payload + tags: + - crafting + /v1/chains/{chain_name}/orders/cancel: + post: + description: Cancel one or more orders + operationId: CancelOrders + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancelOrdersRequestBody' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CancelOrdersResult' + description: Orders cancellation response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + summary: Cancel one or more orders + tags: + - orders + /v1/chains/{chain_name}/orders/listings: + get: + description: List all listings + operationId: ListListings + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Order status to filter by + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/OrderStatusName' + style: form + - description: Sell item contract address to filter by + explode: true + in: query + name: sell_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Buy item type to filter by + explode: true + in: query + name: buy_item_type + required: false + schema: + enum: + - NATIVE + - ERC20 + example: NATIVE + type: string + style: form + - description: Buy item contract address to filter by + explode: true + in: query + name: buy_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The account address of the user who created the listing + explode: true + in: query + name: account_address + required: false + schema: + example: 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The metadata_id of the sell item + explode: true + in: query + name: sell_item_metadata_id + required: false + schema: + example: 020792c9-4ad7-8ec4-4038-9e05c598535b + format: uuid + type: string + style: form + - description: Sell item token identifier to filter by + explode: true + in: query + name: sell_item_token_id + required: false + schema: + example: "1" + pattern: \d+ + type: string + style: form + - description: From updated at including given date + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of orders to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: "Order field to sort by. `buy_item_amount` sorts by per token\ + \ price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as\ + \ 2eth for `buy_item_amount`." + example: created_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Order field to sort by + enum: + - created_at + - updated_at + - buy_item_amount + example: created_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListListingsResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all listings + tags: + - orders + post: + description: Create a listing + operationId: CreateListing + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateListingRequestBody' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ListingResult' + description: Created response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Create a listing + tags: + - orders + /v1/chains/{chain_name}/orders/bids: + get: + description: List all bids + operationId: ListBids + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Order status to filter by + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/OrderStatusName' + style: form + - description: Buy item contract address to filter by + explode: true + in: query + name: buy_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Sell item contract address to filter by + explode: true + in: query + name: sell_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The account address of the user who created the bid + explode: true + in: query + name: account_address + required: false + schema: + example: 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The metadata_id of the buy item + explode: true + in: query + name: buy_item_metadata_id + required: false + schema: + example: 020792c9-4ad7-8ec4-4038-9e05c598535b + format: uuid + type: string + style: form + - description: buy item token identifier to filter by + explode: true + in: query + name: buy_item_token_id + required: false + schema: + example: "1" + pattern: \d+ + type: string + style: form + - description: From updated at including given date + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of orders to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: "Order field to sort by. `sell_item_amount` sorts by per token\ + \ price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted\ + \ as 2eth for `sell_item_amount`." + example: created_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Order field to sort by + enum: + - created_at + - updated_at + - sell_item_amount + example: created_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListBidsResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all bids + tags: + - orders + post: + description: Create a bid + operationId: CreateBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBidRequestBody' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/BidResult' + description: Created response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + summary: Create a bid + tags: + - orders + /v1/chains/{chain_name}/orders/collection-bids: + get: + description: List all collection bids + operationId: ListCollectionBids + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Order status to filter by + explode: true + in: query + name: status + required: false + schema: + $ref: '#/components/schemas/OrderStatusName' + style: form + - description: Buy item contract address to filter by + explode: true + in: query + name: buy_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Sell item contract address to filter by + explode: true + in: query + name: sell_item_contract_address + required: false + schema: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: The account address of the user who created the bid + explode: true + in: query + name: account_address + required: false + schema: + example: 0xc49Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: From updated at including given date + explode: true + in: query + name: from_updated_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of orders to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: "Order field to sort by. `sell_item_amount` sorts by per token\ + \ price, for example if 10eth is offered for 5 ERC1155 items, it’s sorted\ + \ as 2eth for `sell_item_amount`." + example: created_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Order field to sort by + enum: + - created_at + - updated_at + - sell_item_amount + example: created_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionBidsResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all collection bids + tags: + - orders + post: + description: Create a collection bid + operationId: CreateCollectionBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCollectionBidRequestBody' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionBidResult' + description: Created response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + "501": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + summary: Create a collection bid + tags: + - orders + /v1/chains/{chain_name}/orders/listings/{listing_id}: + get: + description: Get a single listing by ID + operationId: GetListing + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Order identifier + explode: false + in: path + name: listing_id + required: true + schema: + description: Global Order identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListingResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single listing by ID + tags: + - orders + /v1/chains/{chain_name}/orders/bids/{bid_id}: + get: + description: Get a single bid by ID + operationId: GetBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Bid identifier + explode: false + in: path + name: bid_id + required: true + schema: + description: Global Bid identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/BidResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single bid by ID + tags: + - orders + /v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}: + get: + description: Get a single collection bid by ID + operationId: GetCollectionBid + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Collection Bid identifier + explode: false + in: path + name: collection_bid_id + required: true + schema: + description: Global Collection Bid identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CollectionBidResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single collection bid by ID + tags: + - orders + /v1/chains/{chain_name}/orders/fulfillment-data: + post: + description: Retrieve signed fulfillment data based on the list of order IDs + and corresponding fees. + operationId: fulfillment_data + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + requestBody: + content: + application/json: + schema: + items: + $ref: '#/components/schemas/FulfillmentDataRequest' + type: array + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/fulfillment_data_200_response' + description: Successful response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Retrieve fulfillment data for orders + tags: + - orders + /v1/chains/{chain_name}/trades: + get: + description: List all trades + operationId: ListTrades + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - explode: true + in: query + name: account_address + required: false + schema: + description: Account address to filter trades by (includes buy and sell + wallet address) + example: 0x784578949A4A50DeA641Fb15dd2B11C72E76919a + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - explode: true + in: query + name: sell_item_contract_address + required: false + schema: + description: Sell item contract address to filter by + example: 0x784578949A4A50DeA641Fb15dd2B11C72E76919a + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: From indexed at including given date + explode: true + in: query + name: from_indexed_at + required: false + schema: + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + style: form + - description: Maximum number of trades to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: Trade field to sort by + example: indexed_at + explode: true + in: query + name: sort_by + required: false + schema: + description: Trade field to sort by + enum: + - indexed_at + example: indexed_at + type: string + style: form + - description: Ascending or descending direction for sort + example: asc + explode: true + in: query + name: sort_direction + required: false + schema: + description: Ascending or descending direction for sort + enum: + - asc + - desc + example: asc + type: string + style: form + - description: Page cursor to retrieve previous or next page. Use the value + returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListTradeResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: List all trades + tags: + - orders + /v1/chains/{chain_name}/trades/{trade_id}: + get: + description: Get a single trade by ID + operationId: GetTrade + parameters: + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Global Trade identifier + explode: false + in: path + name: trade_id + required: true + schema: + description: Global Trade identifier + example: 018792c9-4ad7-8ec4-4038-9e05c598534a + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TradeResult' + description: OK response. + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: Get a single trade by ID + tags: + - orders + /v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses: + get: + deprecated: true + description: "This API has been deprecated, please use https://docs.immutable.com/zkevm/api/reference/#/operations/getUserInfo\ + \ instead to get a list of linked addresses." + operationId: getLinkedAddresses + parameters: + - description: The user's userId + explode: false + in: path + name: user_id + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetLinkedAddressesRes' + description: User's list of linked addresses response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: BadRequestError + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: UnauthorizedError + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: ForbiddenError + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: TooManyRequestsError + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: InternalServerError + default: + content: + application/json: + schema: + $ref: '#/components/schemas/BasicAPIError' + description: unexpected error + security: + - BearerAuth: + - openid + summary: Get Ethereum linked addresses for a user + tags: + - passport + /passport-profile/v2/linked-wallets: + post: + description: Link an external EOA wallet to an Immutable Passport account by + providing an EIP-712 signature. + operationId: link-wallet-v2 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LinkWalletV2Request' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Wallet' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: BadRequestError + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: UnauthorizedError + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: ForbiddenError + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: InternalServerError + security: + - BearerAuth: + - openid + summary: Link wallet v2 + tags: + - passport profile + /passport-profile/v1/user/info: + get: + description: Get all the info for an authenticated Passport user + operationId: getUserInfo + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/UserInfo' + description: Passport user's info + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: UnauthorizedError + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: InternalServerError + default: + content: + application/json: + schema: + $ref: '#/components/schemas/BasicAPIError' + description: unexpected error + security: + - BearerAuth: + - openid + summary: Get all info for a Passport user + tags: + - passport profile + /experimental/chains/{chain_name}/search/nfts: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Search NFTs" + operationId: SearchNFTs + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of contract addresses to filter by + explode: true + in: query + name: contract_address + required: true + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Account address to filter by + explode: true + in: query + name: account_address + required: false + schema: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Filters NFTs that belong to any of these stacks + explode: true + in: query + name: stack_id + required: false + schema: + items: + example: 7053e765-c119-4efb-b5cf-405ccccaf6c4 + format: uuid + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Whether the listings should include only the owner created listings + explode: true + in: query + name: only_include_owner_listings + required: false + schema: + example: true + type: boolean + style: form + - description: Number of results to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SearchNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Search NFTs" + tags: + - stacks + x-hide-from-sdk: true + /experimental/chains/{chain_name}/search/stacks: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Search NFT stacks" + operationId: SearchStacks + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: List of contract addresses to filter by + explode: true + in: query + name: contract_address + required: true + schema: + items: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Account address to filter by + explode: true + in: query + name: account_address + required: false + schema: + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: form + - description: Whether to the listings should include only the owner created + listings + explode: true + in: query + name: only_include_owner_listings + required: false + schema: + example: true + type: boolean + style: form + - description: Filters results to include only stacks that have a current active + listing. False and 'null' return all unfiltered stacks. + explode: true + in: query + name: only_if_has_active_listings + required: false + schema: + example: true + type: boolean + style: form + - description: "JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"\ + rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}}))" + explode: true + in: query + name: trait + required: false + schema: + type: string + style: form + - description: Keyword to search NFT name and description. Alphanumeric characters + only. + explode: true + in: query + name: keyword + required: false + schema: + example: sword + type: string + style: form + - description: Sort results in a specific order + explode: true + in: query + name: sort_by + required: false + schema: + enum: + - cheapest_first + nullable: false + type: string + style: form + - description: Number of results to return per page + explode: true + in: query + name: page_size + required: false + schema: + $ref: '#/components/schemas/PageSize' + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SearchStacksResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Search NFT stacks" + tags: + - stacks + x-hide-from-sdk: true + /experimental/chains/{chain_name}/quotes/{contract_address}/stacks: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Get pricing data for a list of stack ids" + operationId: QuotesForStacks + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Contract address for collection that these stacks are on + explode: false + in: path + name: contract_address + required: true + schema: + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: simple + - description: List of stack ids to get pricing data for + explode: true + in: query + name: stack_id + required: true + schema: + items: + example: 7053e765-c119-4efb-b5cf-405ccccaf6c4 + format: uuid + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotesForStacksResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Get pricing data for a list of stack ids" + tags: + - pricing + x-hide-from-sdk: true + /experimental/chains/{chain_name}/quotes/{contract_address}/nfts: + get: + description: "![Experimental](https://img.shields.io/badge/status-experimental-yellow)\ + \ Get pricing data for a list of token ids" + operationId: QuotesForNFTs + parameters: + - description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + - description: Contract address for collection that these token ids are on + explode: false + in: path + name: contract_address + required: true + schema: + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + style: simple + - description: List of token ids to get pricing data for + explode: true + in: query + name: token_id + required: true + schema: + items: + example: "1337" + type: string + maxItems: 20 + minItems: 1 + type: array + style: form + - description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + explode: true + in: query + name: page_cursor + required: false + schema: + $ref: '#/components/schemas/PageCursor' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/QuotesForNFTsResult' + description: 200 response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + summary: "Experimental: Get pricing data for a list of token ids" + tags: + - pricing + x-hide-from-sdk: true +components: + headers: + MetadataRefreshLimit: + description: The refresh request limit available to the project for each one-hour + window. + explode: false + schema: + type: string + style: simple + MetadataRefreshLimitReset: + description: The expiry date of the current one-hour window. + explode: false + schema: + type: string + style: simple + MetadataRefreshLimitRemaining: + description: The number of refresh requests remaining in the current window. + explode: false + schema: + type: string + style: simple + MetadataRefreshRetryAfter: + description: The number of seconds until the next refresh request can be made. + explode: false + schema: + type: string + style: simple + RetryAfter: + description: The number of seconds until the next request can be made. + explode: false + schema: + type: string + style: simple + MintRequestsLimit: + description: The mint requests limit available to the project for each time + window. + explode: false + schema: + type: string + style: simple + MintRequestsLimitReset: + description: The expiry date of the current time window. + explode: false + schema: + type: string + style: simple + MintRequestsLimitRemaining: + description: The number of mint requests remaining in the current window. + explode: false + schema: + type: string + style: simple + MintRequestsRetryAfter: + description: The number of seconds until the next refresh request can be made. + explode: false + schema: + type: string + style: simple + parameters: + ChainName: + description: The name of chain + examples: + testnet: + summary: Immutable zkEVM Public Testnet + value: imtbl-zkevm-testnet + explode: false + in: path + name: chain_name + required: true + schema: + $ref: '#/components/schemas/ChainName' + style: simple + ContractAddress: + description: Contract address + explode: false + in: path + name: contract_address + required: true + schema: + $ref: '#/components/schemas/Address' + style: simple + responses: + NotFound: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError404' + description: The specified resource was not found (404) + BadRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError400' + description: Bad Request (400) + UnauthorisedRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError401' + description: Unauthorised Request (401) + ForbiddenRequest: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError403' + description: Forbidden Request (403) + Conflict: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError409' + description: Conflict (409) + TooManyRequests: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Requests (429) + headers: + Retry-After: + $ref: '#/components/headers/RetryAfter' + TooManyMetadataRefreshes: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many Metadata refreshes (429) + headers: + imx-refreshes-limit: + $ref: '#/components/headers/MetadataRefreshLimit' + imx-refresh-limit-reset: + $ref: '#/components/headers/MetadataRefreshLimitReset' + imx-remaining-refreshes: + $ref: '#/components/headers/MetadataRefreshLimitRemaining' + Retry-After: + $ref: '#/components/headers/MetadataRefreshRetryAfter' + TooManyMintRequests: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError429' + description: Too Many mint requests (429) + headers: + imx-mint-requests-limit: + $ref: '#/components/headers/MintRequestsLimit' + imx-mint-requests-limit-reset: + $ref: '#/components/headers/MintRequestsLimitReset' + imx-remaining-mint-requests: + $ref: '#/components/headers/MintRequestsLimitRemaining' + imx-mint-requests-retry-after: + $ref: '#/components/headers/MintRequestsRetryAfter' + Retry-After: + $ref: '#/components/headers/MintRequestsRetryAfter' + InternalServerError: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError500' + description: Internal Server Error (500) + NotImplementedError: + content: + application/json: + schema: + $ref: '#/components/schemas/APIError501' + description: Not Implemented Error (501) + schemas: + PageSize: + default: 100 + description: Maximum number of items to return + example: 10 + format: int32 + maximum: 200 + minimum: 1 + type: integer + PageCursor: + description: Encoded page cursor to retrieve previous or next page. Use the + value returned in the response. + example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + type: string + Page: + description: Pagination properties + example: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + previous_cursor: + description: First item as an encoded string + example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + nullable: true + type: string + next_cursor: + description: Last item as an encoded string + example: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + nullable: true + type: string + required: + - next_cursor + - previous_cursor + type: object + ActivityType: + description: The activity type + enum: + - mint + - burn + - transfer + - sale + - deposit + - withdrawal + example: mint + type: string + ActivityNFT: + example: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + properties: + contract_type: + $ref: '#/components/schemas/NFTContractType' + contract_address: + description: The token contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + token_id: + description: An `uint256` token id as string + example: "1" + type: string + amount: + deprecated: true + description: "(deprecated - will never be filled, use amount on Activity\ + \ instead) The amount of tokens exchanged" + example: "1" + type: string + required: + - amount + - contract_address + - contract_type + - token_id + type: object + ActivityToken: + properties: + contract_type: + $ref: '#/components/schemas/TokenContractType' + contract_address: + description: The contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + required: + - contract_address + - contract_type + type: object + ActivityAsset: + description: The contract and asset details for this activity + discriminator: + propertyName: contract_type + oneOf: + - $ref: '#/components/schemas/ActivityNFT' + - $ref: '#/components/schemas/ActivityToken' + Address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + Mint: + description: The mint activity details + example: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + properties: + to: + description: The account address the asset was minted to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The minted amount + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - to + type: object + Deposit: + description: The deposit activity details + properties: + to: + description: The account address the asset was deposited to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The deposited amount + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - to + type: object + Burn: + description: The burn activity details + properties: + from: + description: The account address the asset was transferred from + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The amount of assets burnt + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - from + type: object + Withdrawal: + description: The withdrawal activity details + properties: + from: + description: The account address the asset was withdrawn from + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The amount of assets withdrawn + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - amount + - asset + - from + type: object + Transfer: + description: The transfer activity details + properties: + from: + description: The account address the asset was transferred from + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + to: + description: The account address the asset was transferred to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: The amount of assets transferred + example: "1" + type: string + asset: + $ref: '#/components/schemas/ActivityAsset' + required: + - activity_type + - amount + - asset + - from + - to + type: object + ActivityNativeToken: + properties: + symbol: + description: The token symbol + example: ETH + type: string + required: + - symbol + type: object + SalePayment: + properties: + token: + $ref: '#/components/schemas/SalePayment_token' + price_excluding_fees: + description: The base price of the sale not including any fees + example: "180" + type: string + price_including_fees: + description: The total price of the sale. Includes the sum of all fees + example: "200" + type: string + fees: + description: The fees associated with this sale + example: + - address: 0xB0F3749458169B7Ad51B5503CC3649DE55c2D0D2 + amount: "20" + type: ROYALTY + items: + $ref: '#/components/schemas/SaleFee' + minItems: 0 + type: array + required: + - fees + - price_excluding_fees + - price_including_fees + - token + type: object + SaleFee: + properties: + amount: + description: Fee payable to recipient upon settlement + example: "200" + type: string + type: + description: Fee type + enum: + - ROYALTY + example: ROYALTY + type: string + recipient: + description: Wallet address of fee recipient + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + type: string + type: object + NFTSale: + description: The NFT Sale activity details + properties: + order_id: + description: The id of order + example: ARZ3NDEKTSV4RRFFQ69G5FAV + type: string + to: + description: The account address of buyer + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + from: + description: The account address of seller + example: 0xbD6cFcf93474De653d7B42b346c7c25d1F9c559C + type: string + asset: + items: + $ref: '#/components/schemas/ActivityNFT' + type: array + payment: + $ref: '#/components/schemas/SalePayment' + required: + - asset + - from + - order_id + - payment + - to + type: object + ActivityDetails: + description: The activity details + oneOf: + - $ref: '#/components/schemas/Mint' + - $ref: '#/components/schemas/Burn' + - $ref: '#/components/schemas/Transfer' + - $ref: '#/components/schemas/NFTSale' + - $ref: '#/components/schemas/Deposit' + - $ref: '#/components/schemas/Withdrawal' + BlockchainMetadata: + description: The metadata related to blockchain transaction + example: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + nullable: true + properties: + transaction_hash: + description: The transaction hash of the activity + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + type: string + block_number: + description: EVM block number (uint64 as string) + example: "1" + type: string + transaction_index: + description: Transaction index in a block (uint32 as string) + example: "1" + type: string + log_index: + description: The log index of activity in a block (uint32 as string) + example: "1" + nullable: true + type: string + required: + - block_number + - log_index + - transaction_hash + - transaction_index + type: object + Activity: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + properties: + id: + description: Activity id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + type: + $ref: '#/components/schemas/ActivityType' + details: + $ref: '#/components/schemas/ActivityDetails' + updated_at: + description: The time activity was updated at + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + indexed_at: + description: The time activity was indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + blockchain_metadata: + $ref: '#/components/schemas/BlockchainMetadata' + required: + - blockchain_metadata + - chain + - details + - id + - indexed_at + - type + - updated_at + type: object + ListActivitiesResult: + description: List activities response + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of activities + items: + $ref: '#/components/schemas/Activity' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + GetActivityResult: + description: Single activity + example: + result: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + blockchain_metadata: + block_number: "1" + transaction_index: "1" + log_index: "1" + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + updated_at: 2022-08-16T17:43:26.991388Z + indexed_at: 2022-08-16T17:43:26.991388Z + details: + amount: "1" + to: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + asset: + contract_type: ERC721 + amount: "1" + token_id: "1" + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + type: mint + properties: + result: + $ref: '#/components/schemas/Activity' + required: + - result + type: object + Collection: + example: + symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + chain: + $ref: '#/components/schemas/Chain' + name: + description: The name of the collection + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + nullable: true + type: string + symbol: + description: The symbol of contract + example: BASP + nullable: true + type: string + contract_type: + $ref: '#/components/schemas/CollectionContractType' + contract_address: + description: The address of the contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + description: + description: The description of collection + example: Some description + nullable: true + type: string + image: + description: The url of the collection image + example: https://some-url + nullable: true + type: string + external_link: + description: The url of external link + example: https://some-url + nullable: true + type: string + contract_uri: + description: The uri for the metadata of the collection + example: https://some-url + nullable: true + type: string + base_uri: + description: The metadata uri for nft + example: https://some-url + nullable: true + type: string + verification_status: + $ref: '#/components/schemas/AssetVerificationStatus' + indexed_at: + description: When the collection was first indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the collection was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + metadata_synced_at: + description: When the collection metadata was last synced + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + required: + - base_uri + - chain + - contract_address + - contract_type + - description + - external_link + - image + - indexed_at + - metadata_synced_at + - metadata_uri + - name + - symbol + - updated_at + - verification_status + type: object + ListCollectionsResult: + example: + result: + - symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + - symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of collections + items: + $ref: '#/components/schemas/Collection' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + GetCollectionResult: + description: Single Collection + example: + result: + symbol: BASP + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + description: Some description + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + verification_status: verified + external_link: https://some-url + contract_uri: https://some-url + contract_type: ERC721 + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + base_uri: https://some-url + name: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + result: + $ref: '#/components/schemas/Collection' + required: + - result + type: object + GetMetadataResult: + description: Single metadata + example: + result: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + properties: + result: + $ref: '#/components/schemas/Metadata' + required: + - result + type: object + ListMetadataResult: + example: + result: + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of metadata + items: + $ref: '#/components/schemas/Metadata' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + Metadata: + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + external_url: https://some-url + animation_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + name: Sword + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + youtube_url: https://some-url + properties: + id: + description: Metadata id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The contract address of the metadata + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + created_at: + description: When the metadata was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the metadata was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + required: + - animation_url + - attributes + - chain + - contract_address + - created_at + - description + - external_link + - id + - image + - name + - updated_at + - youtube_url + type: object + RefreshMetadataByIDRequest: + description: Request body for refreshing metadata by id. Total size of this + list should not exceed 228 KiB + example: + metadata: + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + metadata: + items: + $ref: '#/components/schemas/RefreshMetadataByID' + maxItems: 10 + minItems: 1 + type: array + required: + - metadata + type: object + NFT: + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + chain: + $ref: '#/components/schemas/Chain' + token_id: + description: An `uint256` token id as string + example: "1" + type: string + contract_address: + description: The contract address of the NFT + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + contract_type: + $ref: '#/components/schemas/NFTContractType' + indexed_at: + description: When the NFT was first indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the NFT owner was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + metadata_synced_at: + description: When NFT metadata was last synced + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + metadata_id: + description: The id of the metadata of this NFT + example: ae83bc80-4dd5-11ee-be56-0242ac120002 + format: uuid + nullable: true + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_link: + deprecated: true + description: (deprecated - use external_url instead) The external website + link of NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of NFT Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + type: array + total_supply: + description: The total supply of NFT + example: "100" + nullable: true + type: string + required: + - animation_url + - attributes + - chain + - contract_address + - contract_type + - description + - external_link + - external_url + - image + - indexed_at + - metadata_synced_at + - name + - token_id + - updated_at + - youtube_url + type: object + NFTWithBalance: + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + description: This is a super awesome sword + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + balance: "11" + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + chain: + $ref: '#/components/schemas/Chain' + token_id: + description: An `uint256` token id as string + example: "1" + type: string + contract_address: + description: The contract address of the NFT + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + contract_type: + $ref: '#/components/schemas/NFTContractType' + indexed_at: + description: When the NFT was first indexed + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the NFT owner was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + metadata_synced_at: + description: When NFT metadata was last synced + example: 2022-08-16T17:43:26.991388Z + format: date-time + nullable: true + type: string + metadata_id: + description: The id of the metadata of this NFT + example: ae83bc80-4dd5-11ee-be56-0242ac120002 + format: uuid + nullable: true + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: This is a super awesome sword + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_link: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: false + type: array + balance: + description: The amount of this NFT this account owns + example: "11" + nullable: false + type: string + required: + - animation_url + - attributes + - balance + - chain + - contract_address + - contract_type + - description + - external_link + - image + - indexed_at + - metadata_synced_at + - name + - token_id + - updated_at + - youtube_url + type: object + NFTMetadataAttribute: + example: + display_type: number + value: Happy + trait_type: Aqua Power + properties: + display_type: + description: Display type for this attribute + enum: + - number + - boost_percentage + - boost_number + - date + example: number + nullable: true + type: string + trait_type: + description: The metadata trait type + example: Aqua Power + type: string + value: + $ref: '#/components/schemas/NFTMetadataAttribute_value' + required: + - trait_type + - value + type: object + ChainName: + description: The name of chain + example: imtbl-zkevm-testnet + type: string + ActivityID: + description: Activity id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + MetadataID: + description: Metadata id in UUIDv4 format + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + CollectionContractType: + description: The collection contract type + enum: + - ERC721 + - ERC1155 + type: string + NFTContractType: + description: The contract type for an NFT + enum: + - ERC721 + - ERC1155 + type: string + TokenContractType: + description: The contract type for a token + enum: + - ERC20 + type: string + AssetVerificationStatus: + description: The verification status for a given contract + enum: + - verified + - unverified + - spam + - inactive + type: string + VerificationRequestStatus: + description: The status of the verification request + enum: + - completed + - pending + type: string + GetNFTResult: + description: Single NFT + example: + result: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + properties: + result: + $ref: '#/components/schemas/NFT' + required: + - result + type: object + ListNFTsResult: + example: + result: + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + total_supply: "100" + description: 2022-08-16T17:43:26.991388Z + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + external_url: https://some-url + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of NFTs + items: + $ref: '#/components/schemas/NFT' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ListNFTsByOwnerResult: + example: + result: + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + description: This is a super awesome sword + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + balance: "11" + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + - image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + description: This is a super awesome sword + contract_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + external_link: https://some-url + contract_type: ERC721 + token_id: "1" + indexed_at: 2022-08-16T17:43:26.991388Z + updated_at: 2022-08-16T17:43:26.991388Z + balance: "11" + metadata_id: ae83bc80-4dd5-11ee-be56-0242ac120002 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + metadata_synced_at: 2022-08-16T17:43:26.991388Z + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of NFTs by owner + items: + $ref: '#/components/schemas/NFTWithBalance' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + NFTOwner: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of NFT contract + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + token_id: + description: An `uint256` token id as string + example: "1" + type: string + account_address: + description: The account address of the owner of the NFT + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + balance: + description: The amount of owned tokens (uint256 as string) + example: "1" + type: string + updated_at: + description: When the NFT owner was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - account_address + - balance + - chain + - contract_address + - token_id + type: object + NFTWithOwner: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of NFT contract + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + token_id: + description: An `uint256` token id as string + example: "1" + type: string + account_address: + description: The account address of the owner of the NFT + example: 0x5a019874f4fae314b0eaa4606be746366e661306 + type: string + balance: + description: The amount of owned tokens (uint256 as string) + example: "1" + type: string + updated_at: + description: When the owner last changed for the given NFT + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - account_address + - balance + - chain + - contract_address + - token_id + - updated_at + type: object + GetTokenResult: + description: Single Token + example: + result: + symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + properties: + result: + $ref: '#/components/schemas/Token' + required: + - result + type: object + ListNFTOwnersResult: + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of nft owners + items: + $ref: '#/components/schemas/NFTOwner' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ListCollectionOwnersResult: + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: "1" + balance: "1" + updated_at: 2022-08-16T17:43:26.991388Z + account_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + contract_address: 0x5a019874f4fae314b0eaa4606be746366e661306 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of NFT owners + items: + $ref: '#/components/schemas/NFTWithOwner' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ChainWithDetails: + allOf: + - $ref: '#/components/schemas/Chain' + - properties: + rpc_url: + description: URL for RPC node + nullable: true + type: string + required: + - rpc_url + type: object + example: + rpc_url: rpc_url + name: imtbl-zkevm-testnet + id: eip155:13372 + Chain: + description: The chain details + example: + name: imtbl-zkevm-testnet + id: eip155:13372 + properties: + id: + description: The id of chain + example: eip155:13372 + type: string + name: + description: The name of chain + example: imtbl-zkevm-testnet + type: string + required: + - id + - name + type: object + ListChainsResult: + example: + result: + - rpc_url: rpc_url + name: imtbl-zkevm-testnet + id: eip155:13372 + - rpc_url: rpc_url + name: imtbl-zkevm-testnet + id: eip155:13372 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of chains + items: + $ref: '#/components/schemas/ChainWithDetails' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + ListTokensResult: + example: + result: + - symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + - symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of tokens + items: + $ref: '#/components/schemas/Token' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + RefreshMetadataByID: + allOf: + - $ref: '#/components/schemas/RefreshableNFTAttributes' + - properties: + metadata_id: + $ref: '#/components/schemas/MetadataID' + required: + - metadata_id + type: object + example: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + metadata_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + RefreshMetadataByTokenID: + allOf: + - $ref: '#/components/schemas/RefreshableNFTAttributes' + - properties: + token_id: + description: An `uint256` token id as string + example: "1" + type: string + required: + - token_id + type: object + example: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + RefreshableNFTAttributes: + allOf: + - $ref: '#/components/schemas/NFTMetadataRequest' + required: + - animation_url + - attributes + - description + - external_url + - image + - name + - youtube_url + NFTMetadataRequest: + description: The NFT metadata. Total size of this object should not exceed 16 + KiB + example: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external link of the NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube link of the NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + type: object + RefreshNFTMetadataByTokenIDRequest: + example: + nft_metadata: + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - image: https://some-url + external_url: https://some-url + animation_url: https://some-url + token_id: "1" + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + nft_metadata: + description: List of nft metadata to be refreshed. Total size of the list + should not exceed 228 KiB + items: + $ref: '#/components/schemas/RefreshMetadataByTokenID' + maxItems: 250 + minItems: 1 + type: array + required: + - nft_metadata + type: object + Token: + example: + symbol: AAA + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + updated_at: 2022-08-16T17:43:26.991388Z + root_chain_id: eip155:1 + image_url: https://some-url + is_canonical: true + bridge_used: axelar + decimals: 18 + name: Token A + contract_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + root_contract_address: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + verification_status: verified + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of token contract + example: 0xc344c05eef8876e517072f879dae8905aa2b956b + type: string + root_contract_address: + description: The address of root token contract + example: 0x43e60b30d5bec48c0f5890e3d1e9f1b1296bb4aa + nullable: true + type: string + root_chain_id: + description: The id of the root chain for a bridged token + example: eip155:1 + nullable: true + type: string + bridge_used: + description: "The name of the bridge, for bridged tokens only" + example: axelar + nullable: true + type: string + symbol: + description: The symbol of token + example: AAA + nullable: true + type: string + decimals: + description: The decimals of token + example: 18 + nullable: true + type: integer + image_url: + description: The image url of token + example: https://some-url + nullable: true + type: string + name: + description: The name of token + example: Token A + nullable: true + type: string + verification_status: + $ref: '#/components/schemas/AssetVerificationStatus' + updated_at: + description: When the collection was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + is_canonical: + description: Indicates whether the token is canonical or not + example: true + type: boolean + required: + - chain + - contract_address + - decimals + - image_url + - is_canonical + - name + - root_contract_address + - symbol + - updated_at + - verification_status + type: object + CollectionMetadata: + example: + contract_uri: https://some-url + symbol: GLZ + image: https://some-url + base_uri: https://some-url + name: Gigantic Lizards + description: This is the Gigantic Lizards collection + external_link: https://some-url + properties: + name: + description: The name of the collection + example: Gigantic Lizards + nullable: true + type: string + symbol: + description: The symbol of contract + example: GLZ + nullable: true + type: string + description: + description: The description of collection + example: This is the Gigantic Lizards collection + nullable: true + type: string + image: + description: The url of the collection image + example: https://some-url + nullable: true + type: string + external_link: + description: The url of external link + example: https://some-url + nullable: true + type: string + contract_uri: + description: The uri for the metadata of the collection + example: https://some-url + nullable: true + type: string + base_uri: + description: The metadata uri for nft + example: https://some-url + nullable: true + type: string + required: + - base_uri + - contract_uri + - description + - external_link + - image + - name + - symbol + type: object + RefreshCollectionMetadataRequest: + example: + collection_metadata: + contract_uri: https://some-url + symbol: GLZ + image: https://some-url + base_uri: https://some-url + name: Gigantic Lizards + description: This is the Gigantic Lizards collection + external_link: https://some-url + properties: + collection_metadata: + $ref: '#/components/schemas/CollectionMetadata' + required: + - collection_metadata + type: object + RefreshCollectionMetadataResult: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + collection_metadata: + contract_uri: https://some-url + symbol: GLZ + image: https://some-url + base_uri: https://some-url + name: Gigantic Lizards + description: This is the Gigantic Lizards collection + external_link: https://some-url + contract_address: contract_address + properties: + contract_address: + type: string + chain: + $ref: '#/components/schemas/Chain' + collection_metadata: + $ref: '#/components/schemas/CollectionMetadata' + required: + - chain + - collection_metadata + - contract_address + type: object + MetadataRefreshRateLimitResult: + example: + imx_refreshes_limit: imx_refreshes_limit + imx_remaining_refreshes: imx_remaining_refreshes + retry_after: retry_after + imx_refresh_limit_reset: imx_refresh_limit_reset + properties: + imx_refreshes_limit: + type: string + imx_refresh_limit_reset: + type: string + imx_remaining_refreshes: + type: string + retry_after: + type: string + required: + - imx_refresh_limit_reset + - imx_refreshes_limit + - imx_remaining_refreshes + - retry_after + type: object + CreateMintRequestRequest: + example: + assets: + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + - amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + properties: + assets: + description: List of nft to be minted + items: + $ref: '#/components/schemas/MintAsset' + maxItems: 100 + minItems: 1 + type: array + required: + - assets + type: object + VerificationRequestInternal: + allOf: + - $ref: '#/components/schemas/VerificationRequest' + - properties: + org_tier: + $ref: '#/components/schemas/OrganisationTier' + required: + - org_tier + type: object + description: The verification request (internal) + VerificationRequest: + description: The verification request + properties: + id: + description: The id of the verification request + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The contract address + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + org_name: + description: The name of the organisation associated with this contract + example: Immutable + nullable: true + type: string + name: + description: The name of the collection + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + nullable: true + type: string + symbol: + description: The symbol of contract + example: BASP + nullable: true + type: string + description: + description: The description of collection + example: Some description + nullable: true + type: string + org_id: + description: The id of the organisation associated with this contract + example: 753da67a-5d3b-42c7-b87a-eba3d17a6362 + nullable: true + type: string + requester_email: + description: The email address of the user who requested the contract to + be verified + example: user@immutable.com + nullable: true + type: string + contract_type: + $ref: '#/components/schemas/VerificationRequestContractType' + verification_request_status: + $ref: '#/components/schemas/VerificationRequestStatus' + required: + - chain + - contract_address + - contract_type + - description + - id + - name + - org_id + - org_name + - requester_email + - symbol + - verification_request_status + type: object + VerificationRequestContractType: + description: The contract type associated with the given request + enum: + - ERC20 + - ERC721 + - ERC1155 + type: string + OrganisationTier: + description: The tier of the organisation + enum: + - common + - uncommon + - rare + - epic + - legendary + nullable: true + type: string + MintAsset: + example: + amount: "1" + metadata: + image: https://some-url + external_url: https://some-url + animation_url: https://some-url + name: Sword + description: 2022-08-16T17:43:26.991388Z + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + reference_id: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + token_id: "1" + owner_address: 0xc344c05eef8876e517072f879dae8905aa2b956b + properties: + reference_id: + description: The id of this asset in the system that originates the mint + request + example: 67f7d464-b8f0-4f6a-9a3b-8d3cb4a21af0 + type: string + owner_address: + description: The address of the receiver + example: 0xc344c05eef8876e517072f879dae8905aa2b956b + type: string + token_id: + description: An optional `uint256` token id as string. Required for ERC1155 + collections. + example: "1" + nullable: true + type: string + amount: + description: Optional mount of tokens to mint. Required for ERC1155 collections. + ERC712 collections can omit this field or set it to 1 + example: "1" + minLength: 1 + nullable: true + type: string + metadata: + $ref: '#/components/schemas/NFTMetadataRequest' + required: + - owner_address + - reference_id + type: object + CreateMintRequestResult: + example: + imx_mint_requests_retry_after: imx_mint_requests_retry_after + imx_mint_requests_limit: imx_mint_requests_limit + imx_mint_requests_limit_reset: imx_mint_requests_limit_reset + imx_remaining_mint_requests: imx_remaining_mint_requests + properties: + imx_mint_requests_limit: + type: string + imx_mint_requests_limit_reset: + type: string + imx_remaining_mint_requests: + type: string + imx_mint_requests_retry_after: + type: string + required: + - imx_mint_requests_limit + - imx_mint_requests_limit_reset + - imx_mint_requests_retry_after + - imx_remaining_mint_requests + type: object + ListMintRequestsResult: + description: List mint requests + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + amount: "1" + reference_id: reference_id + token_id: "1" + updated_at: 2022-08-16T17:43:26.991388Z + collection_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + activity_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + created_at: 2022-08-16T17:43:26.991388Z + owner_address: owner_address + error: + message: message + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + status: pending + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + amount: "1" + reference_id: reference_id + token_id: "1" + updated_at: 2022-08-16T17:43:26.991388Z + collection_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + activity_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + created_at: 2022-08-16T17:43:26.991388Z + owner_address: owner_address + error: + message: message + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + status: pending + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of mint requests + items: + $ref: '#/components/schemas/GetMintRequestResult' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + GetMintRequestResult: + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + amount: "1" + reference_id: reference_id + token_id: "1" + updated_at: 2022-08-16T17:43:26.991388Z + collection_address: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + activity_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + created_at: 2022-08-16T17:43:26.991388Z + owner_address: owner_address + error: + message: message + transaction_hash: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + status: pending + properties: + chain: + $ref: '#/components/schemas/Chain' + collection_address: + description: The address of the contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + reference_id: + description: The reference id of this mint request + type: string + owner_address: + description: The address of the owner of the NFT + type: string + token_id: + description: An `uint256` token id as string. Only available when the mint + request succeeds + example: "1" + nullable: true + type: string + amount: + description: An `uint256` amount as string. Only relevant for mint requests + on ERC1155 contracts + example: "1" + nullable: true + type: string + activity_id: + description: The id of the mint activity associated with this mint request + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + nullable: true + type: string + transaction_hash: + description: The transaction hash of the activity + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + nullable: true + type: string + created_at: + description: When the mint request was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the mint request was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + error: + $ref: '#/components/schemas/MintRequestErrorMessage' + status: + $ref: '#/components/schemas/MintRequestStatus' + required: + - chain + - collection_address + - created_at + - error + - owner_address + - reference_id + - status + - token_id + - transaction_hash + - updated_at + type: object + MintRequestErrorMessage: + description: The error details in case the mint request fails + example: + message: message + nullable: true + properties: + message: + description: An error message in case the mint request fails + type: string + type: object + MintRequestStatus: + description: The status of the mint request + enum: + - pending + - succeeded + - failed + example: pending + type: string + OperatorAllowlistStatus: + description: The status of a contract on the operator allowlist + enum: + - requested + - approved + - rejected + - removed + - added + example: requested + type: string + OperatorAllowlistStatusDetails: + description: The operator allowlist status details + oneOf: + - $ref: '#/components/schemas/OperatorAllowlistStatusRequested' + - $ref: '#/components/schemas/OperatorAllowlistStatusUpdated' + OperatorAllowlistStatusRequested: + description: The request details + properties: + purpose: + description: Reason this contract needs to be added + example: Custom crafting contract + type: string + is_settlement_contract: + description: Attestation of whether this contract is a settlement contract + example: false + type: boolean + required: + - is_settlement_contract + - purpose + type: object + OperatorAllowlistStatusUpdated: + description: The update details + properties: + reason: + description: Why this action was performed + example: Contract meets expectations + type: string + required: + - reason + type: object + OperatorAllowlistContractStatusInternal: + allOf: + - $ref: '#/components/schemas/OperatorAllowlistContractStatus' + - properties: + org_name: + description: The name of the organisation associated with this contract + example: Immutable + nullable: true + type: string + org_tier: + $ref: '#/components/schemas/OrganisationTier' + required: + - org_name + - org_tier + type: object + OperatorAllowlistContractStatus: + properties: + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: The address of the contract + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + status: + $ref: '#/components/schemas/OperatorAllowlistStatus' + details: + $ref: '#/components/schemas/OperatorAllowlistStatusDetails' + created_at: + description: When the contract status was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + created_by: + description: Who created the status + example: user@immutable.com + format: email + type: string + required: + - chain + - contract_address + - created_at + - created_by + - details + - status + type: object + Call: + example: + function_signature: "mint(address,uint256)" + target_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + function_args: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + properties: + target_address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + function_signature: + description: The function signature + example: "mint(address,uint256)" + type: string + function_args: + description: The function arguments + example: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + items: + type: string + type: array + required: + - function_args + - function_signature + - target_address + type: object + SignCraftingRequest: + example: + expires_at: 2022-08-16T17:43:26.991388Z + reference_id: 67f7d464b8f04f6a9a3b8d3cb4a21af0 + calls: + - function_signature: "mint(address,uint256)" + target_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + function_args: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + - function_signature: "mint(address,uint256)" + target_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + function_args: + - 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + - "1" + multi_caller: + address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + name: Multicaller + version: "1" + properties: + multi_caller: + $ref: '#/components/schemas/SignCraftingRequest_multi_caller' + reference_id: + description: "The id of this request in the system that originates the crafting\ + \ request, specified as a 32 byte hex string" + example: 67f7d464b8f04f6a9a3b8d3cb4a21af0 + type: string + calls: + description: The calls to be signed + items: + $ref: '#/components/schemas/Call' + maxLength: 100 + minLength: 1 + type: array + expires_at: + description: The expiration time of the request + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - calls + - expires_at + - multi_caller + - reference_id + type: object + SignCraftingResult: + example: + signature: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + signer_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + properties: + signer_address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + signature: + description: The signature of the request + example: 0x8a90cab2b38dba80c64b7734e58ee1db38b8992e + type: string + required: + - signature + - signer_address + type: object + BasicAPIError: + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + link: https://docs.x.immutable.com/reference/#/ + message: all fields must be provided + properties: + message: + description: Error Message + example: all fields must be provided + type: string + link: + description: Link to IMX documentation that can help resolve this error + example: https://docs.x.immutable.com/reference/#/ + type: string + trace_id: + description: Trace ID of the initial request + example: e47634b79a5cd6894ddc9639ec4aad26 + type: string + required: + - link + - message + - trace_id + type: object + APIError400: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - VALIDATION_ERROR + example: VALIDATION_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: VALIDATION_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError404: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - RESOURCE_NOT_FOUND + example: RESOURCE_NOT_FOUND + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: RESOURCE_NOT_FOUND + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError500: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - INTERNAL_SERVER_ERROR + example: INTERNAL_SERVER_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: INTERNAL_SERVER_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError401: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - UNAUTHORISED_REQUEST + example: UNAUTHORISED_REQUEST + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: UNAUTHORISED_REQUEST + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError403: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - AUTHENTICATION_ERROR + example: AUTHENTICATION_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: AUTHENTICATION_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError429: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - TOO_MANY_REQUESTS_ERROR + example: TOO_MANY_REQUESTS_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: TOO_MANY_REQUESTS_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + APIError409: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - CONFLICT_ERROR + example: CONFLICT_ERROR + type: string + details: + additionalProperties: true + description: Additional details to help resolve the error + nullable: true + type: object + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: CONFLICT_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: + key: "" + message: all fields must be provided + Item: + discriminator: + mapping: + NATIVE: '#/components/schemas/NativeItem' + ERC20: '#/components/schemas/ERC20Item' + ERC721: '#/components/schemas/ERC721Item' + ERC1155: '#/components/schemas/ERC1155Item' + ERC721_COLLECTION: '#/components/schemas/ERC721CollectionItem' + ERC1155_COLLECTION: '#/components/schemas/ERC1155CollectionItem' + propertyName: type + oneOf: + - $ref: '#/components/schemas/NativeItem' + - $ref: '#/components/schemas/ERC20Item' + - $ref: '#/components/schemas/ERC721Item' + - $ref: '#/components/schemas/ERC1155Item' + - $ref: '#/components/schemas/ERC721CollectionItem' + - $ref: '#/components/schemas/ERC1155CollectionItem' + AssetCollectionItem: + discriminator: + mapping: + ERC721_COLLECTION: '#/components/schemas/ERC721CollectionItem' + ERC1155_COLLECTION: '#/components/schemas/ERC1155CollectionItem' + propertyName: type + oneOf: + - $ref: '#/components/schemas/ERC721CollectionItem' + - $ref: '#/components/schemas/ERC1155CollectionItem' + FulfillmentDataRequest: + example: + fees: + - type: TAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + token_id: "123" + order_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + taker_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + properties: + order_id: + format: uuid + type: string + taker_address: + description: Address of the intended account fulfilling the order + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + fees: + example: + - type: TAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + token_id: + description: Token ID for the ERC721 or ERC1155 token when fulfilling a + collection order + example: "123" + pattern: \d+ + type: string + required: + - fees + - order_id + - taker_address + type: object + FulfillableOrder: + example: + token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + properties: + order: + $ref: '#/components/schemas/Order' + token_id: + description: Token ID for the ERC721 or ERC1155 token when fulfilling a + collection order + example: "123" + pattern: \d+ + type: string + extra_data: + type: string + required: + - extra_data + - order + type: object + UnfulfillableOrder: + example: + reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + properties: + order_id: + description: OrderID for the requested but unfulfillable order + example: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + token_id: + description: Token ID for the ERC721 or ERC1155 token when fulfilling a + collection order + example: "123" + pattern: \d+ + type: string + reason: + description: Nullable string containing error reason if the signing is unsuccessful + for the order + example: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + required: + - order_id + - reason + type: object + NativeItem: + properties: + type: + description: "Token type user is offering, which in this case is the native\ + \ IMX token" + enum: + - NATIVE + example: NATIVE + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - type + type: object + ERC20Item: + properties: + type: + description: "Token type user is offering, which in this case is ERC20" + enum: + - ERC20 + example: ERC20 + type: string + contract_address: + description: Address of ERC20 token + example: 0x0165878A594ca255338adfa4d48449f69242Eb8F + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - type + type: object + ERC721Item: + properties: + type: + description: "Token type user is offering, which in this case is ERC721" + enum: + - ERC721 + example: ERC721 + type: string + contract_address: + description: Address of ERC721 token + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + token_id: + description: ID of ERC721 token + example: "1" + pattern: \d+ + type: string + required: + - contract_address + - token_id + - type + type: object + ERC1155Item: + properties: + type: + description: "Token type user is offering, which in this case is ERC1155" + enum: + - ERC1155 + example: ERC1155 + type: string + contract_address: + description: Address of ERC1155 token + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + token_id: + description: ID of ERC1155 token + example: "1" + pattern: \d+ + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - token_id + - type + type: object + ERC721CollectionItem: + properties: + type: + description: "Token type user is offering, which in this case is ERC721" + enum: + - ERC721_COLLECTION + example: ERC721_COLLECTION + type: string + contract_address: + description: Address of ERC721 collection + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - type + type: object + ERC1155CollectionItem: + properties: + type: + description: "Token type user is offering, which in this case is ERC1155" + enum: + - ERC1155_COLLECTION + example: ERC1155_COLLECTION + type: string + contract_address: + description: Address of ERC1155 collection + example: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + amount: + description: "A string representing the price at which the user is willing\ + \ to sell the token. This value is provided in the smallest unit of the\ + \ token (e.g., wei for Ethereum)." + example: "9750000000000000000" + pattern: \d+ + type: string + required: + - amount + - contract_address + - type + type: object + CancelOrdersRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + ids: + - 018a8c71-d7e4-e303-a2ef-318871ef7756 + - 238a8c71-d7e4-e303-a2ef-318871ef7778 + - 458a8c71-d7e4-e303-a2ef-318871ef7790 + signature: 291 + properties: + account_address: + description: Address of the user initiating the cancel request + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + orders: + description: List of order ids proposed for cancellation + items: + format: uuid + type: string + maxItems: 20 + minItems: 1 + type: array + uniqueItems: true + signature: + description: Signature generated by the user for the specific cancellation + request + example: 0x12345 + type: string + required: + - account_address + - orders + - signature + type: object + CreateListingRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + order_hash: 0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: + - type: MAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + end_at: 2022-03-10T05:00:50.52Z + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + description: Buy item for listing should either be NATIVE or ERC20 item + example: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + fees: + description: Buy fees should only include maker marketplace fees and should + be no more than two entries as more entires will incur more gas. It is + best practice to have this as few as possible. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + end_at: + description: Time after which the Order is considered expired + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + description: Sell item for listing should be an ERC721 item + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + required: + - account_address + - buy + - end_at + - fees + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + type: object + CreateBidRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + order_hash: 0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: + - type: MAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + end_at: 2022-03-10T05:00:50.52Z + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + description: Buy item for bid should either be ERC721 or ERC1155 item + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + fees: + description: Buy fees should only include maker marketplace fees and should + be no more than two entries as more entires will incur more gas. It is + best practice to have this as few as possible. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + end_at: + description: Time after which the Order is considered expired + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + description: Sell item for bid should be an ERC20 item + example: + - type: ERC20 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "9750000000000000000" + items: + $ref: '#/components/schemas/ERC20Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + required: + - account_address + - buy + - end_at + - fees + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + type: object + CreateCollectionBidRequestBody: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + order_hash: 0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: + - type: MAKER_ECOSYSTEM + amount: "2250000000000000000" + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + end_at: 2022-03-10T05:00:50.52Z + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + description: Buy item for collection bid should either be ERC721 or ERC1155 + collection item + example: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + items: + $ref: '#/components/schemas/AssetCollectionItem' + maxItems: 1 + minItems: 1 + type: array + fees: + description: Buy fees should only include maker marketplace fees and should + be no more than two entries as more entires will incur more gas. It is + best practice to have this as few as possible. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 2 + minItems: 0 + type: array + end_at: + description: Time after which the Order is considered expired + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + description: Sell item for collection bid should be an ERC20 item + example: + - type: ERC20 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "9750000000000000000" + items: + $ref: '#/components/schemas/ERC20Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + required: + - account_address + - buy + - end_at + - fees + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + type: object + Fee: + example: + amount: "2250000000000000000" + type: ROYALTY + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + properties: + amount: + description: Fee payable to recipient upon settlement + example: "2250000000000000000" + pattern: \d+ + type: string + type: + description: Fee type + enum: + - ROYALTY + - MAKER_ECOSYSTEM + - TAKER_ECOSYSTEM + - PROTOCOL + example: ROYALTY + type: string + recipient_address: + description: Wallet address of fee recipient + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + required: + - amount + - recipient_address + - type + type: object + Order: + example: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + properties: + account_address: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + buy: + example: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + fees: + example: [] + items: + $ref: '#/components/schemas/Fee' + minItems: 0 + type: array + chain: + $ref: '#/components/schemas/Chain' + created_at: + description: Time the Order is created + example: 2022-03-07T07:20:50.52Z + format: date-time + type: string + end_at: + description: Time after which the Order is considered expired + example: 2022-03-10T05:00:50.52Z + format: date-time + type: string + id: + description: Global Order identifier + example: 018792C9-4AD7-8EC4-4038-9E05C598534A + type: string + order_hash: + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + type: string + protocol_data: + $ref: '#/components/schemas/ProtocolData' + salt: + description: A random value added to the create Order request + example: "12686911856931635052326433555881236148" + type: string + sell: + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + signature: + description: Digital signature generated by the user for the specific Order + example: 0x + type: string + start_at: + description: Time after which Order is considered active + example: 2022-03-09T05:00:50.52Z + format: date-time + type: string + status: + $ref: '#/components/schemas/OrderStatus' + type: + description: Order type + enum: + - LISTING + - BID + - COLLECTION_BID + example: LISTING + type: string + updated_at: + description: Time the Order is last updated + example: 2022-03-07T07:20:50.52Z + format: date-time + type: string + fill_status: + $ref: '#/components/schemas/FillStatus' + required: + - account_address + - buy + - chain + - created_at + - end_at + - fees + - fill_status + - id + - order_hash + - protocol_data + - salt + - sell + - signature + - start_at + - status + - type + - updated_at + type: object + Trade: + example: + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + buyer_fees: [] + fees: [] + chain: + id: eip155:11155111 + name: sepolia + indexed_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + maker_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + taker_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + properties: + buy: + description: Buy items are transferred from the taker to the maker. + example: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + buyer_address: + description: Deprecated. Use maker and taker addresses instead of buyer + and seller addresses. + example: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + type: string + buyer_fees: + description: Deprecated. Use fees instead. The taker always pays the fees. + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 1 + minItems: 0 + type: array + fees: + example: [] + items: + $ref: '#/components/schemas/Fee' + maxItems: 1 + minItems: 0 + type: array + chain: + $ref: '#/components/schemas/Chain' + order_id: + example: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + blockchain_metadata: + $ref: '#/components/schemas/TradeBlockchainMetadata' + indexed_at: + description: Time the on-chain trade event is indexed by the order book + system + example: 2022-03-07T07:20:50.52Z + format: date-time + type: string + id: + description: Global Trade identifier + example: 018792C9-4AD7-8EC4-4038-9E05C598534A + type: string + sell: + description: Sell items are transferred from the maker to the taker. + example: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + items: + $ref: '#/components/schemas/Item' + maxItems: 1 + minItems: 1 + type: array + seller_address: + description: Deprecated. Use maker and taker addresses instead of buyer + and seller addresses. + example: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + type: string + maker_address: + example: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + type: string + taker_address: + example: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + type: string + required: + - blockchain_metadata + - buy + - buyer_address + - buyer_fees + - chain + - fees + - id + - indexed_at + - maker_address + - order_id + - sell + - seller_address + - taker_address + type: object + CancelOrdersResult: + example: + result: + successful_cancellations: + - 018a8c71-d7e4-e303-a2ef-318871ef7756 + - 458a8c71-d7e4-e303-a2ef-318871ef7778 + pending_cancellations: + - 238a8c71-d7e4-e303-a2ef-318871ef7778 + - 898a8c71-d7e4-e303-a2ef-318871ef7735 + failed_cancellations: + - order: 458a8c71-d7e4-e303-a2ef-318871ef7790 + reason_code: FILLED + - order: 338a8c71-d7e4-e303-a2ef-318871ef7342 + reason_code: FILLED + properties: + result: + $ref: '#/components/schemas/CancelOrdersResultData' + required: + - result + type: object + CancelOrdersResultData: + properties: + successful_cancellations: + description: Orders which were successfully cancelled + items: + type: string + maxItems: 10 + minItems: 0 + type: array + pending_cancellations: + description: Orders which are marked for cancellation but the cancellation + cannot be guaranteed + items: + type: string + maxItems: 10 + minItems: 0 + type: array + failed_cancellations: + description: Orders which failed to be cancelled + items: + $ref: '#/components/schemas/FailedOrderCancellation' + maxItems: 10 + minItems: 0 + type: array + required: + - failed_cancellations + - pending_cancellations + - successful_cancellations + type: object + FailedOrderCancellation: + properties: + order: + description: ID of the order which failed to be cancelled + example: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + type: string + reason_code: + description: Reason code indicating why the order failed to be cancelled + enum: + - FILLED + example: FILLED + type: string + required: + - order + - reason_code + type: object + ListingResult: + example: + result: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534B + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + type: + name: LISTING + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Order' + required: + - result + type: object + BidResult: + example: + result: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534B + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + type: BID + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Order' + required: + - result + type: object + CollectionBidResult: + example: + result: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: PARTIAL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + type: COLLECTION_BID + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Order' + required: + - result + type: object + ListListingsResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Order' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + ListBidsResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Order' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + ListCollectionBidsResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: PARTIAL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + - account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + sell: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + order_hash: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + protocol_data: + order_type: PARTIAL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + salt: "12686911856931635052326433555881236148" + buy: + - type: ERC721_COLLECTION + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + amount: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: EXPIRED + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Order' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + TradeResult: + example: + result: + buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + buyer_fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534B + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + maker_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + taker_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + updated_at: 2022-03-07T07:20:50.52Z + properties: + result: + $ref: '#/components/schemas/Trade' + required: + - result + type: object + ListTradeResult: + example: + page: + previous_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + next_cursor: MjAyMy0wMS0yM1QwMTo1NToyNy4zNTM2MzA + result: + - buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + buyer_fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + maker_address: 0x002b9B1cbf464782Df5d48870358FA6c09f1b19D + taker_address: 0xFC99a706C0D05B8C71E1fAAC91b3E1343aC34D40 + updated_at: 2022-03-07T07:20:50.52Z + - buy: + - type: ERC20 + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + buyer_address: 0x017406f3F27d507a1491976B7835CE5CD0fA647a + buyer_fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + seller_address: 0xC73349c545C1D757eb650cDc463A2f6dF1Ec41cb + maker_address: 0xC73349c545C1D757eb650cDc463A2f6dF1Ec41cb + taker_address: 0x017406f3F27d507a1491976B7835CE5CD0fA647a + updated_at: 2022-03-07T07:20:50.52Z + properties: + page: + $ref: '#/components/schemas/Page' + result: + items: + $ref: '#/components/schemas/Trade' + maxItems: 200 + minItems: 0 + type: array + required: + - page + - result + type: object + OrderStatus: + description: The Order status + discriminator: + mapping: + CANCELLED: '#/components/schemas/CancelledOrderStatus' + PENDING: '#/components/schemas/PendingOrderStatus' + ACTIVE: '#/components/schemas/ActiveOrderStatus' + INACTIVE: '#/components/schemas/InactiveOrderStatus' + FILLED: '#/components/schemas/FilledOrderStatus' + EXPIRED: '#/components/schemas/ExpiredOrderStatus' + propertyName: name + oneOf: + - $ref: '#/components/schemas/CancelledOrderStatus' + - $ref: '#/components/schemas/PendingOrderStatus' + - $ref: '#/components/schemas/ActiveOrderStatus' + - $ref: '#/components/schemas/InactiveOrderStatus' + - $ref: '#/components/schemas/FilledOrderStatus' + - $ref: '#/components/schemas/ExpiredOrderStatus' + CancelledOrderStatus: + properties: + name: + description: The order status indicating a order is has been cancelled or + about to be cancelled. + enum: + - CANCELLED + type: string + pending: + description: Whether the cancellation of the order is pending + example: false + type: boolean + cancellation_type: + description: Whether the cancellation was done on-chain or off-chain or + as a result of an underfunded account + enum: + - ON_CHAIN + - OFF_CHAIN + - UNDERFUNDED + example: ON_CHAIN + type: string + required: + - cancellation_type + - name + - pending + type: object + PendingOrderStatus: + properties: + name: + description: The order status that indicates the order is yet to be active + due to various reasons. + enum: + - PENDING + type: string + evaluated: + description: Whether the order has been evaluated after its creation + example: false + type: boolean + started: + description: Whether the order has reached its specified start time + example: false + type: boolean + required: + - evaluated + - name + - started + type: object + ActiveOrderStatus: + properties: + name: + description: The order status that indicates an order can be fulfilled. + enum: + - ACTIVE + type: string + required: + - name + type: object + InactiveOrderStatus: + properties: + name: + description: The order status that indicates an order cannot be fulfilled. + enum: + - INACTIVE + type: string + sufficient_approvals: + description: Whether the order offerer has sufficient approvals + example: false + type: boolean + sufficient_balances: + description: Whether the order offerer still has sufficient balance to complete + the order + example: false + type: boolean + required: + - name + - sufficient_approvals + - sufficient_balances + type: object + ExpiredOrderStatus: + properties: + name: + description: A terminal order status indicating that an order cannot be + fulfilled due to expiry. + enum: + - EXPIRED + type: string + required: + - name + type: object + FilledOrderStatus: + properties: + name: + description: A terminal order status indicating that an order has been fulfilled. + enum: + - FILLED + type: string + required: + - name + type: object + OrderStatusName: + description: The Order status + enum: + - PENDING + - ACTIVE + - INACTIVE + - FILLED + - EXPIRED + - CANCELLED + type: string + ProtocolData: + example: + order_type: FULL_RESTRICTED + counter: "92315562" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.5" + properties: + order_type: + description: Seaport order type. Orders containing ERC721 tokens will need + to pass in the order type as FULL_RESTRICTED while orders with ERC1155 + tokens will need to pass in the order_type as PARTIAL_RESTRICTED + enum: + - FULL_RESTRICTED + - PARTIAL_RESTRICTED + example: FULL_RESTRICTED + type: string + counter: + description: big.Int or uint256 string for order counter + example: "92315562" + type: string + zone_address: + description: Immutable zone address + example: 0x12 + type: string + seaport_address: + description: Immutable Seaport contract address + example: 0x12 + type: string + seaport_version: + description: Immutable Seaport contract version + example: "1.5" + type: string + required: + - counter + - order_type + - seaport_address + - seaport_version + - zone_address + type: object + TradeBlockchainMetadata: + description: The metadata related to the transaction in which the activity occurred + nullable: true + properties: + transaction_hash: + description: The transaction hash of the trade + example: 0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e + type: string + block_number: + description: EVM block number (uint64 as string) + example: "1" + type: string + transaction_index: + description: Transaction index in a block (uint32 as string) + example: "1" + type: string + log_index: + description: The log index of the fulfillment event in a block (uint32 as + string) + example: "1" + type: string + required: + - block_number + - log_index + - transaction_hash + - transaction_index + type: object + FillStatus: + description: "The ratio of the order that has been filled, an order that has\ + \ been fully filled will have the same numerator and denominator values." + properties: + numerator: + description: The numerator of the fill status + example: "1" + type: string + denominator: + description: The denominator of the fill status + example: "2" + type: string + required: + - denominator + - numerator + type: object + APIError501: + allOf: + - $ref: '#/components/schemas/BasicAPIError' + - properties: + code: + description: Error Code + enum: + - NOT_IMPLEMENTED_ERROR + example: NOT_IMPLEMENTED_ERROR + type: string + details: + $ref: '#/components/schemas/APIError400_allOf_details' + required: + - code + - details + type: object + example: + trace_id: e47634b79a5cd6894ddc9639ec4aad26 + code: NOT_IMPLEMENTED_ERROR + link: https://docs.x.immutable.com/reference/#/ + details: null + message: all fields must be provided + GetLinkedAddressesRes: + example: + linked_addresses: + - linked_addresses + - linked_addresses + properties: + linked_addresses: + description: The user's list of linked addresses + items: + description: The user's linked address + maxLength: 42 + pattern: "^0x[0-9a-fA-F]*$" + type: string + minItems: 0 + type: array + required: + - linked_addresses + type: object + EthAddress: + description: Ethereum address + example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + type: string + CreatedAt: + description: Created at + example: 2021-08-31T00:00:00Z + format: date-time + type: string + Name: + description: Name + example: Test + type: string + WalletType: + description: Wallet type + example: MetaMask + type: string + Wallet: + description: Linked wallet + example: + address: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + updated_at: 2021-08-31T00:00:00Z + clientName: Passport Dashboard + name: Test + created_at: 2021-08-31T00:00:00Z + type: MetaMask + properties: + address: + description: Ethereum address + example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + type: string + type: + description: Wallet type + example: MetaMask + type: string + created_at: + description: Created at + example: 2021-08-31T00:00:00Z + format: date-time + type: string + updated_at: + description: Created at + example: 2021-08-31T00:00:00Z + format: date-time + type: string + name: + description: Name + example: Test + type: string + clientName: + description: Name of client that linked the wallet + example: Passport Dashboard + type: string + required: + - address + - clientName + - created_at + - type + - updated_at + type: object + LinkWalletV2Request: + description: Link wallet V2 request + example: + wallet_address: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + signature: signature + type: io.metamask + nonce: nonce + properties: + type: + description: "This should be the EIP-6963 rdns value, if you're unable to\ + \ get the rdns value you can provide \"External\". If using WalletConnect\ + \ then provide \"WalletConnect\"." + example: io.metamask + maxLength: 32 + not: + enum: + - Passport + - com.immutable.passport + type: string + type: string + wallet_address: + description: The address of the external wallet being linked to Passport + example: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + signature: + description: The EIP-712 signature + type: string + nonce: + description: A unique identifier for the signature + type: string + required: + - nonce + - signature + - type + - wallet_address + type: object + UserInfo: + example: + sub: sub + passport_address: passport_address + linked_addresses: + - linked_addresses + - linked_addresses + email: email + properties: + sub: + description: The user's id + type: string + email: + description: The user's email address + type: string + passport_address: + description: The user's Passport address if it has been registered + maxLength: 42 + pattern: "^0x[0-9a-fA-F]*$" + type: string + linked_addresses: + description: The user's list of linked addresses + items: + description: The user's linked address + maxLength: 42 + pattern: "^0x[0-9a-fA-F]*$" + type: string + minItems: 0 + type: array + required: + - linked_addresses + - sub + type: object + MarketplaceContractType: + description: The contract type for a collection + enum: + - ERC721 + - ERC1155 + type: string + NFTWithStack: + description: Stack + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + token_id: + description: Token id of NFT (uint256 as string) + type: string + stack_id: + description: Stack ID + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: Contract address + type: string + contract_type: + $ref: '#/components/schemas/MarketplaceContractType' + created_at: + description: When the metadata was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the metadata was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + balance: + description: Balance of NFT + minimum: 1 + nullable: true + type: integer + required: + - animation_url + - attributes + - balance + - chain + - contract_address + - contract_type + - created_at + - description + - external_url + - image + - name + - stack_id + - token_id + - updated_at + - youtube_url + type: object + MarketPriceNativeToken: + example: + symbol: IMX + type: NATIVE + properties: + type: + description: "Token type user is offering, which in this case is the native\ + \ IMX token" + enum: + - NATIVE + example: NATIVE + type: string + symbol: + description: The symbol of token + example: IMX + nullable: true + type: string + required: + - symbol + - type + type: object + MarketPriceERC20Token: + properties: + type: + description: "Token type user is offering, which in this case is ERC20" + enum: + - ERC20 + example: ERC20 + type: string + contract_address: + description: Address of ERC20 token + example: 0x0165878A594ca255338adfa4d48449f69242Eb8F + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + symbol: + description: The symbol of token + example: ETH + nullable: true + type: string + decimals: + description: The decimals of token + example: 18 + nullable: true + type: integer + required: + - contract_address + - decimals + - symbol + - type + type: object + PaymentAmount: + description: The token amount value. This value is provided in the smallest + unit of the token (e.g. wei for ETH) + example: "9750000000000000000" + pattern: \d+ + type: string + MarketPriceFees: + example: + amount: "1000000000000000000" + type: ROYALTY + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + properties: + amount: + description: Fee in the payment currency + example: "1000000000000000000" + type: string + type: + description: Fee type + enum: + - ROYALTY + - MAKER_ECOSYSTEM + - TAKER_ECOSYSTEM + - PROTOCOL + example: ROYALTY + type: string + recipient_address: + description: Wallet address of fee recipient + example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + required: + - amount + - recipient_address + - type + type: object + MarketPriceDetails: + description: Market Price details + example: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + properties: + token: + $ref: '#/components/schemas/MarketPriceDetails_token' + amount: + description: The token amount value. This value is provided in the smallest + unit of the token (e.g. wei for ETH) + example: "9750000000000000000" + pattern: \d+ + type: string + fee_inclusive_amount: + description: The token amount value. This value is provided in the smallest + unit of the token (e.g. wei for ETH) + example: "9750000000000000000" + pattern: \d+ + type: string + fees: + example: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + items: + $ref: '#/components/schemas/MarketPriceFees' + type: array + required: + - amount + - fee_inclusive_amount + - fees + - token + type: object + ConvertedPrices: + additionalProperties: + type: string + description: "A mapping of converted prices for major currencies such as ETH,\ + \ USD. All converted prices are fee-inclusive." + example: + ETH: "0.0058079775" + USD: "15.89" + type: object + Listing: + example: + creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + properties: + listing_id: + description: Global Order identifier + example: 018792C9-4AD7-8EC4-4038-9E05C598534A + type: string + price_details: + $ref: '#/components/schemas/MarketPriceDetails' + converted_prices: + additionalProperties: + type: string + description: "A mapping of converted prices for major currencies such as\ + \ ETH, USD. All converted prices are fee-inclusive." + example: + ETH: "0.0058079775" + USD: "15.89" + type: object + token_id: + description: Token ID + example: "1" + type: string + contract_address: + description: ETH Address of collection that the asset belongs to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + creator: + description: ETH Address of listing creator + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + amount: + description: Amount of token included in the listing + example: "1" + type: string + required: + - amount + - contract_address + - converted_prices + - creator + - listing_id + - price_details + - token_id + type: object + LastTrade: + description: Most recent trade + example: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nullable: true + properties: + trade_id: + description: Trade ID + example: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + format: uuid + type: string + contract_address: + description: ETH Address of collection that the asset belongs to + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + type: string + token_id: + description: Token id of the traded asset (uint256 as string) + example: "1" + type: string + price_details: + description: "Price details, list of payments involved in this trade" + items: + $ref: '#/components/schemas/MarketPriceDetails' + type: array + amount: + description: Amount of the trade (uint256 as string) + example: "1" + type: string + created_at: + description: When the trade was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + required: + - amount + - contract_address + - created_at + - price_details + - token_id + - trade_id + type: object + Market: + description: Market data + example: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + properties: + floor_listing: + allOf: + - $ref: '#/components/schemas/Listing' + description: Cheapest active listing + nullable: true + last_trade: + $ref: '#/components/schemas/LastTrade' + required: + - floor_listing + - last_trade + type: object + NFTBundle: + description: "NFT bundle includes NFT with stack, markets and listings" + example: + market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nft_with_stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + nft_with_stack: + $ref: '#/components/schemas/NFTWithStack' + market: + allOf: + - $ref: '#/components/schemas/Market' + nullable: true + listings: + description: List of open listings for the stack. + items: + $ref: '#/components/schemas/Listing' + maxItems: 10 + type: array + required: + - listings + - market + - nft_with_stack + type: object + SearchNFTsResult: + description: Search NFTs result + example: + result: + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nft_with_stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + nft_with_stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + token_id: token_id + updated_at: 2022-08-16T17:43:26.991388Z + balance: 1 + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of nft bundles + items: + $ref: '#/components/schemas/NFTBundle' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + Stack: + description: Stack + example: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + properties: + stack_id: + description: Stack ID + format: uuid + type: string + chain: + $ref: '#/components/schemas/Chain' + contract_address: + description: Contract address + type: string + contract_type: + $ref: '#/components/schemas/MarketplaceContractType' + created_at: + description: When the metadata was created + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + updated_at: + description: When the metadata was last updated + example: 2022-08-16T17:43:26.991388Z + format: date-time + type: string + name: + description: The name of the NFT + example: Sword + nullable: true + type: string + description: + description: The description of the NFT + example: 2022-08-16T17:43:26.991388Z + nullable: true + type: string + image: + description: The image url of the NFT + example: https://some-url + nullable: true + type: string + external_url: + description: The external website link of NFT + example: https://some-url + nullable: true + type: string + animation_url: + description: The animation url of the NFT + example: https://some-url + nullable: true + type: string + youtube_url: + description: The youtube URL of NFT + example: https://some-url + nullable: true + type: string + attributes: + description: List of Metadata attributes + items: + $ref: '#/components/schemas/NFTMetadataAttribute' + nullable: true + type: array + required: + - animation_url + - attributes + - chain + - contract_address + - contract_type + - created_at + - description + - external_url + - image + - name + - stack_id + - updated_at + - youtube_url + type: object + StackBundle: + description: "Stack bundle includes stacks, markets and listings" + example: + market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + stack_count: 1 + properties: + stack: + $ref: '#/components/schemas/Stack' + stack_count: + description: Total count of NFTs in the stack matching the filter params + example: 1 + type: integer + market: + allOf: + - $ref: '#/components/schemas/Market' + nullable: true + listings: + description: List of open listings for the stack. + items: + $ref: '#/components/schemas/Listing' + maxItems: 10 + type: array + required: + - listings + - market + - stack + - stack_count + type: object + SearchStacksResult: + description: Search stacks result + example: + result: + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + stack_count: 1 + - market: "" + listings: + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + - creator: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + amount: "1" + listing_id: 018792C9-4AD7-8EC4-4038-9E05C598534A + token_id: "1" + price_details: + amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + converted_prices: + ETH: "0.0058079775" + USD: "15.89" + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + stack: + image: https://some-url + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + animation_url: https://some-url + created_at: 2022-08-16T17:43:26.991388Z + description: 2022-08-16T17:43:26.991388Z + contract_address: contract_address + contract_type: ERC721 + external_url: https://some-url + updated_at: 2022-08-16T17:43:26.991388Z + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + name: Sword + attributes: + - display_type: number + value: Happy + trait_type: Aqua Power + - display_type: number + value: Happy + trait_type: Aqua Power + youtube_url: https://some-url + stack_count: 1 + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of stack bundles + items: + $ref: '#/components/schemas/StackBundle' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + StackQuoteResult: + description: Stack quote result + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + properties: + chain: + $ref: '#/components/schemas/Chain' + stack_id: + format: uuid + type: string + market_stack: + $ref: '#/components/schemas/Market' + market_collection: + $ref: '#/components/schemas/Market' + required: + - chain + - market_collection + - market_stack + - stack_id + type: object + QuotesForStacksResult: + description: Quotes for stacks result + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + stack_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of quotes + items: + $ref: '#/components/schemas/StackQuoteResult' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + MarketNft: + description: NFT market data + example: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + properties: + last_trade: + $ref: '#/components/schemas/LastTrade' + required: + - last_trade + type: object + NFTQuoteResult: + description: NFT quote result + example: + chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: token_id + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + market_nft: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + properties: + chain: + $ref: '#/components/schemas/Chain' + token_id: + description: Token id of NFT (uint256 as string) + type: string + market_stack: + $ref: '#/components/schemas/Market' + market_nft: + $ref: '#/components/schemas/MarketNft' + market_collection: + $ref: '#/components/schemas/Market' + required: + - chain + - market_collection + - market_nft + - market_stack + - token_id + type: object + QuotesForNFTsResult: + description: Quotes for NFTs result + example: + result: + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: token_id + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + market_nft: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + - chain: + name: imtbl-zkevm-testnet + id: eip155:13372 + token_id: token_id + market_collection: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + market_nft: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + market_stack: + last_trade: + amount: "1" + trade_id: 4e28df8d-f65c-4c11-ba04-6a9dd47b179b + token_id: "1" + price_details: + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + - amount: "9750000000000000000" + fees: + - type: TAKER_ECOSYSTEM + recipient_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233 + amount: "1000000000000000000" + token: + symbol: IMX + type: NATIVE + fee_inclusive_amount: "9750000000000000000" + created_at: 2022-08-16T17:43:26.991388Z + contract_address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + floor_listing: "" + page: + previous_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + next_cursor: ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0= + properties: + result: + description: List of quotes + items: + $ref: '#/components/schemas/NFTQuoteResult' + type: array + page: + $ref: '#/components/schemas/Page' + required: + - page + - result + type: object + fulfillment_data_200_response_result: + example: + fulfillable_orders: + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + unfulfillable_orders: + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + properties: + fulfillable_orders: + items: + $ref: '#/components/schemas/FulfillableOrder' + type: array + unfulfillable_orders: + items: + $ref: '#/components/schemas/UnfulfillableOrder' + type: array + required: + - fulfillable_orders + - unfulfillable_orders + type: object + fulfillment_data_200_response: + example: + result: + fulfillable_orders: + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + - token_id: "123" + extra_data: extra_data + order: + account_address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 + buy: + - type: NATIVE + amount: "9750000000000000000" + contract_address: 0x0165878A594ca255338adfa4d48449f69242Eb8F + fees: [] + chain: + id: eip155:11155111 + name: sepolia + created_at: 2022-03-07T07:20:50.52Z + end_at: 2022-03-10T05:00:50.52Z + id: 018792C9-4AD7-8EC4-4038-9E05C598534A + protocol_data: + order_type: FULL_RESTRICTED + counter: "1" + zone_address: 0x12 + seaport_address: 0x12 + seaport_version: "1.4" + salt: "12686911856931635052326433555881236148" + sell: + - type: ERC721 + contract_address: 0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E + token_id: "1" + signature: 0x + start_at: 2022-03-09T05:00:50.52Z + status: + name: ACTIVE + fill_status: + numerator: 1 + denominator: 2 + type: LISTING + updated_at: 2022-03-07T07:20:50.52Z + unfulfillable_orders: + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + - reason: Invalid order status INACTIVE for order 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + token_id: "123" + order_id: 7df3e99e-f7b3-459c-bef6-ffb66a18bb59 + properties: + result: + $ref: '#/components/schemas/fulfillment_data_200_response_result' + required: + - result + type: object + SalePayment_token: + description: The type of payment token + oneOf: + - $ref: '#/components/schemas/ActivityToken' + - $ref: '#/components/schemas/ActivityNativeToken' + NFTMetadataAttribute_value: + description: The metadata trait value + example: Happy + oneOf: + - type: string + - type: number + - type: boolean + SignCraftingRequest_multi_caller: + example: + address: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + name: Multicaller + version: "1" + properties: + address: + description: An Ethereum address + example: 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3 + pattern: "^0x[a-fA-F0-9]{40}$" + type: string + x-go-type: common.Address + x-go-type-import: + path: github.com/ethereum/go-ethereum/common + name: common + name: + description: The name of the multicaller contract + example: Multicaller + type: string + version: + description: The version of the multicaller contract + example: "1" + type: string + required: + - address + - name + - version + type: object + APIError400_allOf_details: + description: Additional details to help resolve the error + nullable: true + type: object + MarketPriceDetails_token: + description: Token details + discriminator: + mapping: + NATIVE: '#/components/schemas/MarketPriceNativeToken' + ERC20: '#/components/schemas/MarketPriceERC20Token' + propertyName: type + oneOf: + - $ref: '#/components/schemas/MarketPriceNativeToken' + - $ref: '#/components/schemas/MarketPriceERC20Token' + securitySchemes: + BearerAuth: + bearerFormat: JWT + scheme: bearer + type: http + ImmutableApiKey: + in: header + name: x-immutable-api-key + type: apiKey + x-go-name: ImmutableApiKey +x-tagGroups: +- name: Multi Rollup API + tags: + - activities + - chains + - collections + - nfts + - nft owners + - metadata + - tokens + - demopage + - verification + - operatorallowlist + - crafting + - listings + - orders +- name: Passport MR + tags: + - passport +- name: Passport Profile Service API + tags: + - passport profile +- name: Guardian + tags: + - guardian +- name: Indexer Marketplace APIs + tags: + - pricing + - stacks + diff --git a/src/Packages/ZkEvmApi/package.json b/src/Packages/ZkEvmApi/package.json new file mode 100644 index 00000000..121de265 --- /dev/null +++ b/src/Packages/ZkEvmApi/package.json @@ -0,0 +1,20 @@ +{ + "name": "com.immutable.api.zkevm", + "version": "0.1.0-alpha", + "description": "Immutable zkEVM API package for the Immutable SDK for Unity", + "displayName": "Immutable zkEVM API", + "author": { + "name": "Immutable", + "url": "https://immutable.com" + }, + "dependencies": { + "com.unity.nuget.newtonsoft-json": "3.0.2" + }, + "keywords": [ + "unity", + "immutable", + "api", + "zkevm" + ], + "unity": "2021.3" +} \ No newline at end of file diff --git a/src/Packages/ZkEvmApi/package.json.meta b/src/Packages/ZkEvmApi/package.json.meta new file mode 100644 index 00000000..cf61446b --- /dev/null +++ b/src/Packages/ZkEvmApi/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1f9d2b7e7698442e592d9de8e1b485e7 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: