syntax = "proto3";
package external;
import "structs.proto";
enum ExternalNetwork {
BitcoinNetwork = 0;
EthereumNetwork = 1;
SolanaNetwork = 2;
MoneroNetwork = 3;
}
message ExternalInput {
structs.Address address = 1;
structs.CurrencyAmount amount = 2;
}
message ExternalOutput {
structs.Address address = 1;
structs.CurrencyAmount amount = 2;
}
message ExternalTransaction {
structs.ExternalTransactionId external_transaction_id = 1;
repeated ExternalInput inputs = 2;
repeated ExternalOutput outputs = 3;
// Hmm, maybe Product Id or currency Id or network?
}
message ExternalAddressEvent {
oneof event {
structs.Address address = 1;
structs.CurrencyAmount amount = 2;
}
}