sdk.models.transaction.spent_transaction_output.proto Maven / Gradle / Ivy
The newest version!
syntax = "proto3";
import "scalapb/scalapb.proto";
import "scalapb/validate.proto";
package org.plasmalabs.sdk.models.transaction;
import 'validate/validate.proto';
import 'sdk/models/address.proto';
import 'sdk/models/box/value.proto';
import 'sdk/models/box/attestation.proto';
// Input to a transaction
message SpentTransactionOutput {
org.plasmalabs.sdk.models.TransactionOutputAddress address = 1 [(validate.rules).message.required = true];
org.plasmalabs.sdk.models.box.Attestation attestation = 2 [(validate.rules).message.required = true];
// the value of the box being spent
org.plasmalabs.sdk.models.box.Value value = 3 [(validate.rules).message.required = true];
}
option (scalapb.options) = {
[scalapb.validate.file] {
validate_at_construction: true
}
field_transformations: [
{
when: {options: {[validate.rules] {message: {required: true}}}}
set: {
[scalapb.field] {
required: true
}
}
}
]
};