Smart Contracts (Testnet)

Module: public-market
back to overview
public-market
Methods: 9
Instances: 1
Initialization

Parameters
{
  "name": "<String>"
}
Errors
None
Event
None
Methods

Parameters
None
Errors
None
Return
[
  {
    "collateral": "<Amount in microCCD>",
    "description": "<String>",
    "id": "<String>",
    "maximum_price": "<Amount in microCCD>",
    "minimum_price": "<Amount in microCCD>",
    "owner": "<AccountAddress>",
    "state": {
      "Enum": [
        {
          "AcceptingBid": []
        },
        {
          "BidAwarded": []
        },
        {
          "Provisioned": []
        },
        {
          "Concluded": []
        }
      ]
    },
    "title": "<String>",
    "valid_until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  }
]

Parameters
{
  "collateral": "<Amount in microCCD>",
  "description": "<String>",
  "id": "<String>",
  "maximum_price": "<Amount in microCCD>",
  "minimum_price": "<Amount in microCCD>",
  "requirements": [
    {
      "description": "<String>",
      "id": "<String>",
      "is_mandatory": "<Bool>",
      "score": "<UInt32>"
    }
  ],
  "title": "<String>",
  "valid_until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
{
  "Enum": [
    {
      "AlreadyRegistered": []
    },
    {
      "AccountCalled": []
    },
    {
      "ParseError": []
    },
    {
      "EntryFeeNotMet": []
    },
    {
      "InvalidParameter": []
    },
    {
      "OnlyAccount": []
    }
  ]
}
Return
None

Parameters
{
  "id": "<String>"
}
Errors
None
Return
{
  "collateral": "<Amount in microCCD>",
  "description": "<String>",
  "id": "<String>",
  "maximum_price": "<Amount in microCCD>",
  "minimum_price": "<Amount in microCCD>",
  "owner": "<AccountAddress>",
  "state": {
    "Enum": [
      {
        "AcceptingBid": []
      },
      {
        "BidAwarded": []
      },
      {
        "Provisioned": []
      },
      {
        "Concluded": []
      }
    ]
  },
  "title": "<String>",
  "valid_until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}

Parameters
{
  "id": "<String>"
}
Errors
None
Return
[
  {
    "description": "<String>",
    "id": "<String>",
    "is_mandatory": "<Bool>",
    "score": "<UInt32>"
  }
]

Parameters
{
  "id": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseError": []
    },
    {
      "ContractNotFound": []
    },
    {
      "OnlyAccount": []
    },
    {
      "ReservedToContractOwner": []
    },
    {
      "MissingAccount": []
    },
    {
      "NoWinner": []
    },
    {
      "AmountTooLarge": []
    }
  ]
}
Return
None

Parameters
{
  "id": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseError": []
    },
    {
      "ContractNotFound": []
    },
    {
      "OnlyAccount": []
    },
    {
      "ReservedToContractOwner": []
    },
    {
      "NoWinner": []
    },
    {
      "DoesNotMatchProposedValue": []
    },
    {
      "ContractNotAwarded": []
    }
  ]
}
Return
None

Parameters
{
  "id": "<String>"
}
Errors
{
  "Enum": [
    {
      "ParseError": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "OnlyAccount": []
    },
    {
      "ReservedToContractOwner": []
    },
    {
      "ContractNotFound": []
    }
  ]
}
Return
None

Parameters
{
  "company_name": "<String>",
  "company_siret": "<String>",
  "contract_id": "<String>",
  "honored_requirements": [
    {
      "description": "<String>",
      "id": "<String>",
      "is_mandatory": "<Bool>",
      "score": "<UInt32>"
    }
  ],
  "id": "<String>",
  "proposed_value": "<Amount in microCCD>",
  "valid_until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
{
  "Enum": [
    {
      "InvalidParameter": []
    },
    {
      "ParseError": []
    },
    {
      "CollateralNotMet": []
    },
    {
      "ContractExpired": []
    },
    {
      "AmountNotInRange": []
    },
    {
      "OnlyAccount": []
    },
    {
      "ContractNotFound": []
    },
    {
      "BidExpired": []
    },
    {
      "ContractClosed": []
    }
  ]
}
Return
None

Parameters
{
  "id": "<String>"
}
Errors
None
Return
[
  {
    "collateral_sent_back": "<Bool>",
    "company": {
      "name": "<String>",
      "siret": "<String>"
    },
    "has_won": "<Bool>",
    "honored_requirements": [
      {
        "description": "<String>",
        "id": "<String>",
        "is_mandatory": "<Bool>",
        "score": "<UInt32>"
      }
    ],
    "id": "<String>",
    "owner": "<AccountAddress>",
    "proposed_value": "<Amount in microCCD>",
    "submitted_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
    "valid_until": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  }
]
Address
🗎<1940,0>


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership