Smart Contracts (Testnet)

Module: auction
back to overview
auction
Methods: 6
Instances: 2
Initialization

Parameters
{
  "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "minimum_raise": "<UInt64>",
  "participation_token": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          {
            "contract": {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "token_id": "<String with lowercase hex>"
          }
        ]
      }
    ]
  },
  "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
None
Event
{
  "Enum": [
    {
      "AuctionUpdated": [
        {
          "auction_state": {
            "Enum": [
              {
                "NotInitialized": []
              },
              {
                "NotSoldYet": [
                  {
                    "amount": "<String of size at most 74 containing an unsigned integer.>",
                    "contract": {
                      "index": "<UInt64>",
                      "subindex": "<UInt64>"
                    },
                    "token_id": "<String with lowercase hex>"
                  }
                ]
              },
              {
                "Sold": [
                  "<AccountAddress>"
                ]
              }
            ]
          },
          "end": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
          "highest_bid": "<UInt64>",
          "highest_bidder": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  "<AccountAddress>"
                ]
              }
            ]
          },
          "minimum_raise": "<UInt64>",
          "participation_token": {
            "Enum": [
              {
                "None": []
              },
              {
                "Some": [
                  {
                    "contract": {
                      "index": "<UInt64>",
                      "subindex": "<UInt64>"
                    },
                    "token_id": "<String with lowercase hex>"
                  }
                ]
              }
            ]
          },
          "start": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
        }
      ]
    },
    {
      "ParticipantAdded": [
        "<AccountAddress>"
      ]
    }
  ]
}
Methods

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "ContractOnly": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnAuthorized": []
    },
    {
      "AuctionAlreadyInitialized": []
    },
    {
      "LogError": []
    },
    {
      "InvalidParticipationToken": []
    },
    {
      "PublicAuction": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "ContractOnly": []
    },
    {
      "OnlyAccount": []
    },
    {
      "UnAuthorized": []
    },
    {
      "AuctionAlreadyInitialized": []
    },
    {
      "LogError": []
    },
    {
      "InvalidParticipationToken": []
    },
    {
      "PublicAuction": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "OnlyAccount": []
    },
    {
      "BidBelowCurrentBid": []
    },
    {
      "BidBelowMinimumRaise": []
    },
    {
      "BidTooLate": []
    },
    {
      "BidTooEarly": []
    },
    {
      "AuctionNotOpen": []
    },
    {
      "NotAParticipant": []
    },
    {
      "LogError": []
    },
    {
      "TransferError": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "AuctionStillActive": []
    },
    {
      "AuctionNotOpen": []
    },
    {
      "Cis2TransferError": []
    },
    {
      "LogError": []
    }
  ]
}
Return
None

Parameters
"<UInt64>"
Errors
{
  "Enum": [
    {
      "ParseParams": []
    }
  ]
}
Return
"<Amount in microCCD>"

Parameters
None
Errors
{
  "Enum": [
    {
      "NoNotOpen": []
    },
    {
      "NoNotStarted": []
    },
    {
      "NoEnded": []
    },
    {
      "NoNotAParticipant": []
    },
    {
      "NoContractAddress": []
    }
  ]
}
Return
"<Amount in microCCD>"


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