2018-09-11 22:31:21 +08:00
|
|
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
2020-02-07 17:39:34 +08:00
|
|
|
|
// source: bdledger/api/common.proto
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
2020-02-07 17:39:34 +08:00
|
|
|
|
package bdledger.api.grpc.common;
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
|
|
|
|
|
public interface TransactionOrBuilder extends
|
2020-02-07 17:39:34 +08:00
|
|
|
|
// @@protoc_insertion_point(interface_extends:bdledger.api.Transaction)
|
2018-09-11 22:31:21 +08:00
|
|
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务所在的区块的哈希,当事务处于待确认状态时为`null`
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes block_hash = 1;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The blockHash.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getBlockHash();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* 事务在区块中的位置 index,当事务处于待确认状态时为`null`
|
2018-09-11 22:31:21 +08:00
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>uint32 index = 2;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The index.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
int getIndex();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务的哈希
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes hash = 3;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The hash.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getHash();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务类型
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* <code>.bdledger.api.TransactionType type = 4;</code>
|
|
|
|
|
|
* @return The enum numeric value on the wire for type.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
int getTypeValue();
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 事务类型
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* <code>.bdledger.api.TransactionType type = 4;</code>
|
|
|
|
|
|
* @return The type.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
2020-02-07 17:39:34 +08:00
|
|
|
|
bdledger.api.grpc.common.TransactionType getType();
|
2018-09-11 22:31:21 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 发送账户地址
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes from = 5;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The from.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getFrom();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 这条事务之前发送者所发送的事务数量
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>uint64 nonce = 6;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The nonce.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
long getNonce();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes to = 7;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The to.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getTo();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* 数据或合约代码
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes data = 8;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The data.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getData();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* ECDSA recovery id
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes v = 9;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The v.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getV();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* ECDSA signature r
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes r = 10;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The r.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getR();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* <pre>
|
|
|
|
|
|
* ECDSA signature s
|
|
|
|
|
|
* </pre>
|
|
|
|
|
|
*
|
2019-04-23 15:58:21 +08:00
|
|
|
|
* <code>bytes s = 11;</code>
|
2020-02-07 17:39:34 +08:00
|
|
|
|
* @return The s.
|
2018-09-11 22:31:21 +08:00
|
|
|
|
*/
|
|
|
|
|
|
com.google.protobuf.ByteString getS();
|
|
|
|
|
|
}
|