コード例 #1
0
def manifest() -> NeoMetadata:
    meta = NeoMetadata()
    meta.author = 'Neo'
    meta.email = '*****@*****.**'
    meta.description = 'This is a contract example'
    meta.has_storage = True
    return meta
コード例 #2
0
def manifest_metadata() -> NeoMetadata:
    """
    Defines this smart contract's metadata information
    """
    meta = NeoMetadata()
    meta.has_storage = True
    meta.is_payable = True
    return meta
コード例 #3
0
def example() -> NeoMetadata:
    # this function won't exist in the scope of the smart contract, so it can't be called by other functions
    meta = NeoMetadata()
    meta.has_storage = True
    return meta
コード例 #4
0
def manifest() -> NeoMetadata:
    meta = NeoMetadata()
    meta.has_storage = True
    return meta
コード例 #5
0
def storage_manifest() -> NeoMetadata:
    meta = NeoMetadata()
    meta.has_storage = 1
    return meta