protos/transaction.proto in libra_client-0.1.6 vs protos/transaction.proto in libra_client-0.1.7

- old
+ new

@@ -22,15 +22,19 @@ Program program = 3; // A write set, used for genesis blocks and other magic transactions. // This bypasses the rules for regular transactions so will typically be // rejected. Only under special circumstances will it be accepted. WriteSet write_set = 4; + // The transaction script to execute. + Script script = 8; + // The MOVE Module to publish. + Module module = 9; } // Maximal total gas specified by wallet to spend for this transaction. uint64 max_gas_amount = 5; // The price to be paid for each unit of gas. - uint64 gas_unit_price = 6; + uint64 gas_unit_price = 6; // Expiration time for this transaction. If storage is queried and // the time returned is greater than or equal to this time and this // transaction has not been included, you can be certain that it will // never be included. // If set to 0, there will be no expiration time @@ -42,19 +46,30 @@ bytes code = 1; repeated TransactionArgument arguments = 2; repeated bytes modules = 3; } +// The code for the transaction to execute +message Script { + bytes code = 1; + repeated TransactionArgument arguments = 2; +} + // An argument to the transaction if the transaction takes arguments message TransactionArgument { enum ArgType { U64 = 0; ADDRESS = 1; STRING = 2; BYTEARRAY = 3; } ArgType type = 1; bytes data = 2; +} + +// A Move Module to publish +message Module { + bytes code = 1; } // A generic structure that represents signed RawTransaction message SignedTransaction { // The serialized Protobuf bytes for RawTransaction, for which the signature