Smart Contracts (Testnet)

Module: pixpel_swap
back to overview
pixpel_swap
Methods: 18
Instances: 1
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
{
  "contract_ccd_balance": "<Amount in microCCD>",
  "exchanges": [
    {
      "exchange_state": {
        "ccd_balance": "<String of size at most 74 containing an unsigned integer.>",
        "lp_token_id": "<String with lowercase hex>"
      },
      "token_balance": "<String of size at most 74 containing an unsigned integer.>",
      "token_info": {
        "address": {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        },
        "id": "<String with lowercase hex>"
      }
    }
  ],
  "last_lp_token_id": "<String with lowercase hex>",
  "lp_tokens_state": [
    [
      {
        "Enum": [
          {
            "Account": [
              "<AccountAddress>"
            ]
          },
          {
            "Contract": [
              {
                "index": "<UInt64>",
                "subindex": "<UInt64>"
              }
            ]
          }
        ]
      },
      {
        "balances": [
          [
            "<String with lowercase hex>",
            "<String of size at most 74 containing an unsigned integer.>"
          ]
        ],
        "operators": [
          {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  ],
  "lp_tokens_supply": [
    [
      "<String with lowercase hex>",
      "<String of size at most 74 containing an unsigned integer.>"
    ]
  ]
}

Parameters
{
  "holder": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
{
  "ccd_balance": "<String of size at most 74 containing an unsigned integer.>",
  "lp_token_id": "<String with lowercase hex>",
  "lp_tokens_holder_balance": "<String of size at most 74 containing an unsigned integer.>",
  "lp_tokens_supply": "<String of size at most 74 containing an unsigned integer.>",
  "token": {
    "address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "id": "<String with lowercase hex>"
  },
  "token_balance": "<String of size at most 74 containing an unsigned integer.>"
}

Parameters
{
  "holder": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
{
  "exchanges": [
    {
      "ccd_balance": "<String of size at most 74 containing an unsigned integer.>",
      "lp_token_id": "<String with lowercase hex>",
      "lp_tokens_holder_balance": "<String of size at most 74 containing an unsigned integer.>",
      "lp_tokens_supply": "<String of size at most 74 containing an unsigned integer.>",
      "token": {
        "address": {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        },
        "id": "<String with lowercase hex>"
      },
      "token_balance": "<String of size at most 74 containing an unsigned integer.>"
    }
  ]
}

Parameters
{
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
{
  "owner": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "tokens": [
    [
      "<String with lowercase hex>",
      "<String of size at most 74 containing an unsigned integer.>"
    ]
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
[
  {
    "amount": "<String of size at most 74 containing an unsigned integer.>",
    "data": "<String with lowercase hex>",
    "from": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "to": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            },
            "<String>"
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
[
  {
    "operator": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "update": {
      "Enum": [
        {
          "Remove": []
        },
        {
          "Add": []
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "token_id": "<String with lowercase hex>"
  }
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
[
  "<String of size at most 74 containing an unsigned integer.>"
]

Parameters
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "owner": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
[
  "<Bool>"
]

Parameters
[
  "<String with lowercase hex>"
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
[
  {
    "hash": {
      "Enum": [
        {
          "None": []
        },
        {
          "Some": [
            [
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>",
              "<UInt8>"
            ]
          ]
        }
      ]
    },
    "url": "<String>"
  }
]

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_amount": "<String of size at most 74 containing an unsigned integer.>",
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
{
  "lp_token_amount": "<String of size at most 74 containing an unsigned integer.>",
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
{
  "ccd_sold": "<String of size at most 74 containing an unsigned integer.>",
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
{
  "amount": "<String of size at most 74 containing an unsigned integer.>"
}

Parameters
{
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>",
  "token_sold": "<String of size at most 74 containing an unsigned integer.>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
{
  "amount": "<String of size at most 74 containing an unsigned integer.>"
}

Parameters
{
  "min_token_amount": "<String of size at most 74 containing an unsigned integer.>",
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None

Parameters
{
  "min_ccd_amount": "<String of size at most 74 containing an unsigned integer.>",
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>",
  "token_sold": "<String of size at most 74 containing an unsigned integer.>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "ExchangeNotFound": []
    },
    {
      "ExchangeAlreadyExists": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "InvalidContractName": []
    },
    {
      "ContractOnly": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeContractNoResult": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "ParseParams": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "IncorrectTokenCcdRatio": []
    },
    {
      "TokenNotCis2": []
    },
    {
      "NotOperator": []
    },
    {
      "CalledByAContract": []
    },
    {
      "AmountTooLarge": []
    },
    {
      "MissingAccount": []
    },
    {
      "MissingContract": []
    },
    {
      "MissingEntrypoint": []
    },
    {
      "MessageFailed": []
    },
    {
      "LogicReject": {
        "reason": "<Int32>"
      }
    },
    {
      "Trap": []
    },
    {
      "InsufficientOutputAmount": []
    },
    {
      "InvalidReserves": []
    }
  ]
}
Return
None
Address
🗎<3832,0>


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