diff --git a/model/accountLedger.proto b/model/accountLedger.proto new file mode 100644 index 0000000..b41fc81 --- /dev/null +++ b/model/accountLedger.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package model; +option go_package = "github.com/zoobc/zoobc-core/common/model"; + +import "model/event.proto"; + +message AccountLedger { + string AccountAddress = 1; + int64 BalanceChange = 2; + uint32 BlockHeight = 3; + int64 TransactionID = 4; + EventType EventType = 5; +} \ No newline at end of file diff --git a/model/event.proto b/model/event.proto new file mode 100644 index 0000000..c5c26c0 --- /dev/null +++ b/model/event.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package model; +option go_package = "github.com/zoobc/zoobc-core/common/model"; + +enum EventType { + EventAny = 0; // For Request filter purposes + EventSendMoneyTransaction = 1; + EventNodeRegistrationTransaction = 2; + EventUpdateNodeRegistrationTransaction = 3; + EventRemoveNodeRegistrationTransaction = 4; + EventClaimNodeRegistrationTransaction = 5; + EventSetupAccountDatasetTransaction = 6; + EventRemoveAccountDatasetTransaction = 7; + EventReward = 8; +} \ No newline at end of file