Skip to content

Commit

Permalink
refactor: Update chains endpoint response (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-almeida-imtbl authored Nov 12, 2024
1 parent 5ccfc6c commit 230f601
Show file tree
Hide file tree
Showing 18 changed files with 241 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@
{
"name": "demopage",
"description": "Temporary HTML endpoint for demo purposes"
},
{
"name": "verification"
},
{
"name": "operatorallowlist"
},
{
"name": "crafting"
},
{
"name": "pricing",
"description": "Pricing Endpoints"
},
{
"name": "metadata-search"
}
],
"paths": {
Expand Down Expand Up @@ -3411,8 +3427,8 @@
"properties": {
"display_type": {
"description": "Display type for this attribute",
"nullable": true,
"type": "string",
"nullable": true,
"enum": [
"number",
"boost_percentage",
Expand Down Expand Up @@ -3692,10 +3708,22 @@
"type": "string",
"nullable": true,
"description": "URL for RPC node"
},
"operator_allowlist_address": {
"type": "string",
"nullable": true,
"description": "The address of the Operator Allowlist - https://docs.immutable.com/products/zkevm/minting/royalties/allowlist-spec/"
},
"minter_address": {
"type": "string",
"nullable": true,
"description": "The address of the minter used in the Minting API - https://docs.immutable.com/products/zkEVM/minting/minting-api#minting-api-prerequisites"
}
},
"required": [
"rpc_url"
"rpc_url",
"operator_allowlist_address",
"minter_address"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,17 @@ export interface ChainWithDetailsAllOf {
* @memberof ChainWithDetailsAllOf
*/
'rpc_url': string | null;
/**
* The address of the Operator Allowlist - https://docs.immutable.com/products/zkevm/minting/royalties/allowlist-spec/
* @type {string}
* @memberof ChainWithDetailsAllOf
*/
'operator_allowlist_address': string | null;
/**
* The address of the minter used in the Minting API - https://docs.immutable.com/products/zkEVM/minting/minting-api#minting-api-prerequisites
* @type {string}
* @memberof ChainWithDetailsAllOf
*/
'minter_address': string | null;
}

139 changes: 81 additions & 58 deletions packages/internal/generated-clients/src/mr-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@
"x-displayName": "pricing"
},
{
"name": "stacks",
"description": "Stacks Endpoints",
"x-displayName": "stacks"
"name": "metadata-search",
"x-displayName": "metadata-search"
}
],
"paths": {
Expand Down Expand Up @@ -4698,6 +4697,14 @@
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "includeSimulation",
"schema": {
"type": "boolean"
},
"description": "Include simulation results"
}
],
"responses": {
Expand Down Expand Up @@ -6389,10 +6396,22 @@
"type": "string",
"nullable": true,
"description": "URL for RPC node"
},
"operator_allowlist_address": {
"type": "string",
"nullable": true,
"description": "The address of the Operator Allowlist - https://docs.immutable.com/products/zkevm/minting/royalties/allowlist-spec/"
},
"minter_address": {
"type": "string",
"nullable": true,
"description": "The address of the minter used in the Minting API - https://docs.immutable.com/products/zkEVM/minting/minting-api#minting-api-prerequisites"
}
},
"required": [
"rpc_url"
"rpc_url",
"operator_allowlist_address",
"minter_address"
]
}
]
Expand Down Expand Up @@ -7603,7 +7622,7 @@
},
"token_id": {
"type": "string",
"description": "Token ID for the ERC721 or ERC1155 token",
"description": "Token ID for the ERC721 or ERC1155 token when fulfilling a collection order",
"example": "123",
"pattern": "\\d+"
}
Expand All @@ -7617,11 +7636,17 @@
"FulfillableOrder": {
"type": "object",
"properties": {
"extra_data": {
"type": "string"
},
"order": {
"$ref": "#/components/schemas/Order"
},
"token_id": {
"type": "string",
"description": "Token ID for the ERC721 or ERC1155 token when fulfilling a collection order",
"example": "123",
"pattern": "\\d+"
},
"extra_data": {
"type": "string"
}
},
"required": [
Expand All @@ -7637,6 +7662,12 @@
"description": "OrderID for the requested but unfulfillable order",
"example": "7df3e99e-f7b3-459c-bef6-ffb66a18bb59"
},
"token_id": {
"type": "string",
"description": "Token ID for the ERC721 or ERC1155 token when fulfilling a collection order",
"example": "123",
"pattern": "\\d+"
},
"reason": {
"type": "string",
"description": "Nullable string containing error reason if the signing is unsuccessful for the order",
Expand Down Expand Up @@ -10503,6 +10534,11 @@
"description": "The name of the collection",
"example": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e"
},
"image_url": {
"type": "string",
"description": "The URL of the collection image",
"example": "https://example.com/nft.jpeg"
},
"amount": {
"type": "string",
"description": "A string representing the total units of an ERC721 token which the user is buying",
Expand All @@ -10525,6 +10561,7 @@
"required": [
"type",
"contract_address",
"image_url",
"amount",
"immutable_verification_status"
]
Expand All @@ -10546,6 +10583,11 @@
"example": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"image_url": {
"type": "string",
"description": "The URL of the collection image",
"example": "https://example.com/nft.jpeg"
},
"contract_name": {
"type": "string",
"nullable": true,
Expand Down Expand Up @@ -10574,6 +10616,7 @@
],
"required": [
"type",
"image_url",
"contract_address",
"amount",
"immutable_verification_status"
Expand Down Expand Up @@ -11008,7 +11051,6 @@
},
"validation": {
"description": "Validation results",
"type": "object",
"$ref": "#/components/schemas/ValidationResult",
"nullable": true
}
Expand Down Expand Up @@ -11274,6 +11316,11 @@
"data": {
"description": "evm message data",
"$ref": "#/components/schemas/EIP712Message"
},
"validation": {
"description": "Validation results",
"$ref": "#/components/schemas/ValidationResult",
"nullable": true
}
}
},
Expand Down Expand Up @@ -11317,13 +11364,17 @@
},
{
"$ref": "#/components/schemas/ValidationErrorResults"
},
{
"$ref": "#/components/schemas/ValidationSimulationFailedResults"
}
],
"discriminator": {
"propertyName": "status",
"mapping": {
"error": "#/components/schemas/ValidationErrorResults",
"success": "#/components/schemas/ValidationSuccessResults"
"success": "#/components/schemas/ValidationSuccessResults",
"simulation_failed": "#/components/schemas/ValidationSimulationFailedResults"
}
}
},
Expand Down Expand Up @@ -11351,6 +11402,22 @@
}
}
},
"ValidationSimulationFailedResults": {
"type": "object",
"required": [
"status",
"error"
],
"properties": {
"status": {
"$ref": "#/components/schemas/ValidationStatus"
},
"error": {
"description": "human-readable error message representing a failure to simulate the transaction",
"type": "string"
}
}
},
"ValidationErrorResults": {
"type": "object",
"required": [
Expand All @@ -11362,7 +11429,7 @@
"$ref": "#/components/schemas/ValidationStatus"
},
"error": {
"description": "human-readable error message",
"description": "human-readable error message representing a failure with the simulated transaction, such as a reversion",
"type": "string"
}
}
Expand Down Expand Up @@ -11420,7 +11487,8 @@
"description": "Status of the validation",
"enum": [
"success",
"error"
"error",
"simulation_failed"
]
},
"ERC191Message": {
Expand All @@ -11430,50 +11498,5 @@
"minLength": 1
}
}
},
"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"
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ models/unknown-typed-data-metadata.ts
models/user-info.ts
models/validation-error-results.ts
models/validation-result.ts
models/validation-simulation-failed-results.ts
models/validation-status.ts
models/validation-success-results.ts
models/verification-request-contract-type.ts
Expand Down
Loading

0 comments on commit 230f601

Please sign in to comment.