Skip to content

IBasicNestorToken

Git Source

Inherits: IToken

Author: Originally developed by DEFYCA Labs S.a.r.l., maintained by Nestor Exchange OÜ

MIT Licence. Originally Copyright © 2023 DEFYCA Labs S.a.r.l. Permission is hereby granted, free of charge, to any person obtaining a copy of the Nestor Protocol smart contracts (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.

The IBasicNestorToken represents the base interface for Nestor Protocol tokens, utilised to identify a token classification.

Functions

setNestorTokenType

Sets the token type according to the specified enumeration

function setNestorTokenType(NestorTokenTypes newTokenType_) external;

Parameters

Name Type Description
newTokenType_ NestorTokenTypes the token type to set

getNestorTokenType

Returns the token type according to the specified enumeration

function getNestorTokenType() external view returns (NestorTokenTypes);

Returns

Name Type Description
<none> NestorTokenTypes NestorTokenTypes the token type according to the specified enumeration

Errors

BasicNestorTokenUnableToUpdateNestorTokenType

Error thrown if an attempt is made to set an invalid token type during setNestorTokenType

error BasicNestorTokenUnableToUpdateNestorTokenType();

Enums

NestorTokenTypes

Enumeration to represent each of the tokens in the Nestor Protocol.

enum NestorTokenTypes {
    NONE,
    FUND_DEPOSIT_TOKEN,
    DIGITAL_SECURITY_TOKEN,
    ON_CHAIN_ASSET_TOKEN
}