Pārlūkot izejas kodu

feat(lazer) Add GovernanceInstructionContext to transaction_envelope.proto

Bart Platak 6 mēneši atpakaļ
vecāks
revīzija
a1d425088a
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. 11 0
      lazer/publisher_sdk/proto/transaction_envelope.proto

+ 11 - 0
lazer/publisher_sdk/proto/transaction_envelope.proto

@@ -3,6 +3,7 @@ package pyth_lazer_transaction;
 
 import "google/protobuf/timestamp.proto";
 import "pyth_lazer_transaction.proto";
+import "governance_instruction.proto";
 
 // Envelope containing signed transaction and context attached by Pyth Lazer.
 // Created by Pyth Lazer Relayers, which also generate and attach the context.
@@ -24,9 +25,19 @@ message PayloadContext {
     // [required] context set based on type of transaction
     oneof context {
         PublisherUpdateContext publisher_update_context = 2;
+        GovernanceInstructionContext governance_instruction_context = 3;
     }
 }
 
+// Context contains status of each governance instruction found in transaction
+message GovernanceInstructionContext {
+    // [required] ID of publisher based on the access token used to connect
+    optional uint32 publisher_id = 1;
+
+    // [required] the governance instruction
+    GovernanceInstruction governance_instruction = 2;
+}
+
 // Context contains status of each feed update found in transaction
 message PublisherUpdateContext {
     // [required] ID of publisher based on the access token used to connect