Search in sources :

Example 1 with ConsensusDeleteTopicTransactionBody

use of com.hederahashgraph.api.proto.java.ConsensusDeleteTopicTransactionBody in project hedera-services by hashgraph.

the class HapiTopicDelete method opBodyDef.

@Override
protected Consumer<TransactionBody.Builder> opBodyDef(HapiApiSpec spec) throws Throwable {
    TopicID id = resolveTopicId(spec);
    ConsensusDeleteTopicTransactionBody opBody = spec.txns().<ConsensusDeleteTopicTransactionBody, ConsensusDeleteTopicTransactionBody.Builder>body(ConsensusDeleteTopicTransactionBody.class, b -> {
        b.setTopicID(id);
    });
    return b -> b.setConsensusDeleteTopic(opBody);
}
Also used : Transaction(com.hederahashgraph.api.proto.java.Transaction) ConsensusServiceFeeBuilder(com.hederahashgraph.fee.ConsensusServiceFeeBuilder) TopicID(com.hederahashgraph.api.proto.java.TopicID) HapiTxnOp(com.hedera.services.bdd.spec.transactions.HapiTxnOp) MoreObjects(com.google.common.base.MoreObjects) HapiPropertySource(com.hedera.services.bdd.spec.HapiPropertySource) Function(java.util.function.Function) ArrayList(java.util.ArrayList) Consumer(java.util.function.Consumer) ConsensusDeleteTopic(com.hederahashgraph.api.proto.java.HederaFunctionality.ConsensusDeleteTopic) Key(com.hederahashgraph.api.proto.java.Key) List(java.util.List) TxnUtils.asTopicId(com.hedera.services.bdd.spec.transactions.TxnUtils.asTopicId) TransactionBody(com.hederahashgraph.api.proto.java.TransactionBody) HederaFunctionality(com.hederahashgraph.api.proto.java.HederaFunctionality) ConsensusDeleteTopicTransactionBody(com.hederahashgraph.api.proto.java.ConsensusDeleteTopicTransactionBody) Optional(java.util.Optional) TransactionResponse(com.hederahashgraph.api.proto.java.TransactionResponse) HapiApiSpec(com.hedera.services.bdd.spec.HapiApiSpec) ConsensusDeleteTopicTransactionBody(com.hederahashgraph.api.proto.java.ConsensusDeleteTopicTransactionBody) ConsensusServiceFeeBuilder(com.hederahashgraph.fee.ConsensusServiceFeeBuilder) TopicID(com.hederahashgraph.api.proto.java.TopicID)

Aggregations

MoreObjects (com.google.common.base.MoreObjects)1 HapiApiSpec (com.hedera.services.bdd.spec.HapiApiSpec)1 HapiPropertySource (com.hedera.services.bdd.spec.HapiPropertySource)1 HapiTxnOp (com.hedera.services.bdd.spec.transactions.HapiTxnOp)1 TxnUtils.asTopicId (com.hedera.services.bdd.spec.transactions.TxnUtils.asTopicId)1 ConsensusDeleteTopicTransactionBody (com.hederahashgraph.api.proto.java.ConsensusDeleteTopicTransactionBody)1 HederaFunctionality (com.hederahashgraph.api.proto.java.HederaFunctionality)1 ConsensusDeleteTopic (com.hederahashgraph.api.proto.java.HederaFunctionality.ConsensusDeleteTopic)1 Key (com.hederahashgraph.api.proto.java.Key)1 TopicID (com.hederahashgraph.api.proto.java.TopicID)1 Transaction (com.hederahashgraph.api.proto.java.Transaction)1 TransactionBody (com.hederahashgraph.api.proto.java.TransactionBody)1 TransactionResponse (com.hederahashgraph.api.proto.java.TransactionResponse)1 ConsensusServiceFeeBuilder (com.hederahashgraph.fee.ConsensusServiceFeeBuilder)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Optional (java.util.Optional)1 Consumer (java.util.function.Consumer)1 Function (java.util.function.Function)1