Skip to content

Commit a1d4250

Browse files
committed
feat(lazer) Add GovernanceInstructionContext to transaction_envelope.proto
1 parent 25ae56e commit a1d4250

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lazer/publisher_sdk/proto/transaction_envelope.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package pyth_lazer_transaction;
33

44
import "google/protobuf/timestamp.proto";
55
import "pyth_lazer_transaction.proto";
6+
import "governance_instruction.proto";
67

78
// Envelope containing signed transaction and context attached by Pyth Lazer.
89
// Created by Pyth Lazer Relayers, which also generate and attach the context.
@@ -24,9 +25,19 @@ message PayloadContext {
2425
// [required] context set based on type of transaction
2526
oneof context {
2627
PublisherUpdateContext publisher_update_context = 2;
28+
GovernanceInstructionContext governance_instruction_context = 3;
2729
}
2830
}
2931

32+
// Context contains status of each governance instruction found in transaction
33+
message GovernanceInstructionContext {
34+
// [required] ID of publisher based on the access token used to connect
35+
optional uint32 publisher_id = 1;
36+
37+
// [required] the governance instruction
38+
GovernanceInstruction governance_instruction = 2;
39+
}
40+
3041
// Context contains status of each feed update found in transaction
3142
message PublisherUpdateContext {
3243
// [required] ID of publisher based on the access token used to connect

0 commit comments

Comments
 (0)