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
29 changes: 29 additions & 0 deletions documentation.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,32 @@
}
}
},
"modelSetupAccountDatasetTransactionBody": {
"type": "object",
"properties": {
"MuchTime": {
"type": "string",
"format": "uint64",
"title": "How long Dataset will active in second"
},
"Property": {
"type": "string",
"title": "Property name"
},
"RecipientAccountAddress": {
"type": "string",
"title": "Account Address that got property of Dataset"
},
"SetterAccountAddress": {
"type": "string",
"title": "Account Address that set Dataset"
},
"Value": {
"type": "string",
"title": "Value of property"
}
}
},
"modelTransaction": {
"type": "object",
"title": "Transaction represent the transaction data structure stored in the database",
Expand Down Expand Up @@ -1114,6 +1140,9 @@
"sendMoneyTransactionBody": {
"$ref": "#/definitions/modelSendMoneyTransactionBody"
},
"setupAccountDatasetTransactionBody": {
"$ref": "#/definitions/modelSetupAccountDatasetTransactionBody"
},
"updateNodeRegistrationTransactionBody": {
"$ref": "#/definitions/modelUpdateNodeRegistrationTransactionBody"
}
Expand Down
18 changes: 18 additions & 0 deletions model/accountDatasets.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax="proto3";

package model;

option go_package = "github.com/zoobc/zoobc-core/common/model";


// AccountDataset represent the account dataset structure stored in the database
message AccountDataset {
string SetterAccountAddress = 1;
string RecipientAccountAddress = 2;
string Property = 3;
string Value = 4;
uint64 TimestampStarts = 5;
uint64 TimestampExpires = 6;
uint32 Height = 7;
bool Latest = 8;
}
17 changes: 16 additions & 1 deletion model/transaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ message Transaction {
NodeRegistrationTransactionBody nodeRegistrationTransactionBody = 15;
UpdateNodeRegistrationTransactionBody updateNodeRegistrationTransactionBody = 16;
RemoveNodeRegistrationTransactionBody removeNodeRegistrationTransactionBody = 17;
SetupAccountDatasetTransactionBody setupAccountDatasetTransactionBody = 18;

}
bytes Signature = 18;
bytes Signature = 19;
}

message EmptyTransactionBody {}
Expand All @@ -52,6 +54,19 @@ message UpdateNodeRegistrationTransactionBody {
ProofOfOwnership Poown = 4;
}

message SetupAccountDatasetTransactionBody {
// Account Address that set Dataset
string SetterAccountAddress = 1;
// Account Address that got property of Dataset
string RecipientAccountAddress = 2;
// Property name
string Property = 3;
// Value of property
string Value = 4;
// How long Dataset will active in second
uint64 MuchTime = 5 [jstype = JS_STRING];
}

message RemoveNodeRegistrationTransactionBody {
bytes NodePublicKey = 1;
}
Expand Down