DCN Condition Service (0.1.0)

Download OpenAPI specification:Download

Condition registry endpoints. Supports fetching the latest condition by name, fetching a specific version by deployed address, and registering a condition from Solidity source.

condition

Operations related to condition contracts: creation, inspection, and source management.

Head latest condition

Check if a condition exists (latest)

path Parameters
name
required
string

Name of the condition

Responses

CORS preflight

CORS preflight

path Parameters
name
required
string

Name of the condition

Responses

Get latest condition

Get newest (latest) version of a condition by name

path Parameters
name
required
string

Name of the condition

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "local_address": "string",
  • "owner": "string",
  • "name": "string",
  • "sol_src": "string"
}

Head versioned condition

Check if a specific condition version exists

path Parameters
name
required
string

Name of the condition

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the condition

Responses

CORS preflight

CORS preflight

path Parameters
name
required
string

Name of the condition

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the condition

Responses

Get versioned condition

Get a specific condition version by address

path Parameters
name
required
string

Name of the condition

version
required
string (Address) ^0x[a-fA-F0-9]{40}$

Version of the condition

Responses

Response samples

Content type
application/json
{
  • "address": "string",
  • "local_address": "string",
  • "owner": "string",
  • "name": "string",
  • "sol_src": "string"
}

Register condition

Register a condition by name and its Solidity source

Authorizations:
BearerAuth
Request Body schema: application/json
name
required
string

Name of the condition

sol_src
required
string

Solidity source code

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "sol_src": "string"
}

Response samples

Content type
application/json
{
  • "name": "string"
}