
org.hyperledger.fabric.contract.systemcontract.SystemContract Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim Show documentation
Show all versions of fabric-chaincode-shim Show documentation
Hyperledger Fabric Java Chaincode Shim
The newest version!
/*
* Copyright 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.contract.systemcontract;
import org.hyperledger.fabric.contract.Context;
import org.hyperledger.fabric.contract.ContractInterface;
import org.hyperledger.fabric.contract.annotation.Contract;
import org.hyperledger.fabric.contract.annotation.Info;
import org.hyperledger.fabric.contract.annotation.Transaction;
import org.hyperledger.fabric.contract.metadata.MetadataBuilder;
/** */
@Contract(
name = "org.hyperledger.fabric",
info =
@Info(
title = "Fabric System Contract",
description = "Provides information about the contracts within this container"))
public final class SystemContract implements ContractInterface {
/**
* @param ctx
* @return Metadata
*/
@Transaction(intent = Transaction.TYPE.EVALUATE, name = "GetMetadata")
public String getMetadata(final Context ctx) {
return MetadataBuilder.getMetadata();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy