Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion documentation.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"swagger": "2.0",
"info": {
"title": "service/accountBalance.proto",
"title": "service/account.proto",
"version": "version not set"
},
"paths": {
Expand Down Expand Up @@ -504,6 +504,11 @@
"description": "Transactions set offset to be fetched.",
"name": "Offset",
"in": "query"
},
{
"type": "string",
"name": "AccountAddress",
"in": "query"
}
],
"responses": {
Expand Down Expand Up @@ -874,6 +879,14 @@
"type": "string",
"format": "int64"
},
"RecipientAccountID": {
"type": "string",
"format": "byte"
},
"SenderAccountID": {
"type": "string",
"format": "byte"
},
"TransactionBytes": {
"type": "string",
"format": "byte"
Expand Down
35 changes: 18 additions & 17 deletions model/transaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,25 @@ message ProofOfOwnershipMessage {
uint32 BlockHeight = 4;
}


//------------
// P2P Content
//------------

// GetTransactionRequest return model.Transaction
message GetTransactionRequest {
// Fetch Transaction by its ID
int64 ID = 1;
}

// GetTransactions return GetTransactionsResponse
message GetTransactionsRequest {
// Transactions set limit to be fetched
uint32 Limit = 1;
// Transactions set offset to be fetched
uint64 Offset = 2;
string AccountAddress = 3;
}

message PostTransactionRequest {
// Signed transaction bytes
bytes TransactionBytes = 1;
}

message PostTransactionResponse {
Transaction Transaction = 1;
}

message GetTransactionsResponse {
// Number of transactions in total
uint64 Total = 1;
Expand All @@ -99,14 +97,17 @@ message GetTransactionsResponse {
repeated Transaction Transactions = 3;
}

// SendTransaction request in p2pCommunication service
message SendTransactionRequest {
// PostTransactionRequest return PostTransactionResponse
message PostTransactionRequest {
// Signed transaction bytes
bytes TransactionBytes = 1;
}
message PostTransactionResponse {
Transaction Transaction = 1;
}

// TODO: Currently not yet used. Should we delete it?
message PostUnconfirmedTransactionRequest {
Transaction Transaction = 1;
uint32 ArrivalTimestamp = 2;
int64 FeePerByte = 3;
// SendTransactionRequest request in p2pCommunication service
message SendTransactionRequest {
bytes TransactionBytes = 1;
}