penumbra_proto/gen/
penumbra.core.transaction.v1.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
/// A Penumbra transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Transaction {
    #[prost(message, optional, tag = "1")]
    pub body: ::core::option::Option<TransactionBody>,
    /// The binding signature is stored separately from the transaction body that it signs.
    #[prost(message, optional, tag = "2")]
    pub binding_sig: ::core::option::Option<
        super::super::super::crypto::decaf377_rdsa::v1::BindingSignature,
    >,
    /// The root of some previous state of the state commitment tree, used as an anchor for all
    /// ZK state transition proofs.
    #[prost(message, optional, tag = "3")]
    pub anchor: ::core::option::Option<super::super::super::crypto::tct::v1::MerkleRoot>,
}
impl ::prost::Name for Transaction {
    const NAME: &'static str = "Transaction";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// The body of a transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionBody {
    /// A list of actions (state changes) performed by this transaction.
    #[prost(message, repeated, tag = "1")]
    pub actions: ::prost::alloc::vec::Vec<Action>,
    /// Parameters determining if a transaction should be accepted by this chain.
    #[prost(message, optional, tag = "2")]
    pub transaction_parameters: ::core::option::Option<TransactionParameters>,
    /// Detection data for use with Fuzzy Message Detection
    #[prost(message, optional, tag = "4")]
    pub detection_data: ::core::option::Option<DetectionData>,
    /// The encrypted memo for this transaction.
    ///
    /// This field will be present if and only if the transaction has outputs.
    #[prost(message, optional, tag = "5")]
    pub memo: ::core::option::Option<MemoCiphertext>,
}
impl ::prost::Name for TransactionBody {
    const NAME: &'static str = "TransactionBody";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// The parameters determining if a transaction should be accepted by the chain.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionParameters {
    /// The maximum height that this transaction can be included in the chain.
    ///
    /// If zero, there is no maximum.
    #[prost(uint64, tag = "1")]
    pub expiry_height: u64,
    /// The chain this transaction is intended for.  Including this prevents
    /// replaying a transaction on one chain onto a different chain.
    #[prost(string, tag = "2")]
    pub chain_id: ::prost::alloc::string::String,
    /// The transaction fee.
    #[prost(message, optional, tag = "3")]
    pub fee: ::core::option::Option<super::super::component::fee::v1::Fee>,
}
impl ::prost::Name for TransactionParameters {
    const NAME: &'static str = "TransactionParameters";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// Detection data used by a detection server performing Fuzzy Message Detection.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetectionData {
    /// A list of clues for use with Fuzzy Message Detection.
    #[prost(message, repeated, tag = "4")]
    pub fmd_clues: ::prost::alloc::vec::Vec<
        super::super::super::crypto::decaf377_fmd::v1::Clue,
    >,
}
impl ::prost::Name for DetectionData {
    const NAME: &'static str = "DetectionData";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// A state change performed by a transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Action {
    #[prost(
        oneof = "action::Action",
        tags = "1, 2, 3, 4, 16, 17, 18, 19, 20, 21, 22, 30, 31, 32, 34, 40, 41, 42, 50, 51, 52, 53, 54, 55, 200"
    )]
    pub action: ::core::option::Option<action::Action>,
}
/// Nested message and enum types in `Action`.
pub mod action {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Action {
        /// Common actions have numbers \< 15, to save space.
        #[prost(message, tag = "1")]
        Spend(super::super::super::component::shielded_pool::v1::Spend),
        #[prost(message, tag = "2")]
        Output(super::super::super::component::shielded_pool::v1::Output),
        #[prost(message, tag = "3")]
        Swap(super::super::super::component::dex::v1::Swap),
        #[prost(message, tag = "4")]
        SwapClaim(super::super::super::component::dex::v1::SwapClaim),
        #[prost(message, tag = "16")]
        ValidatorDefinition(
            super::super::super::component::stake::v1::ValidatorDefinition,
        ),
        #[prost(message, tag = "17")]
        IbcRelayAction(super::super::super::component::ibc::v1::IbcRelay),
        /// Governance:
        #[prost(message, tag = "18")]
        ProposalSubmit(super::super::super::component::governance::v1::ProposalSubmit),
        #[prost(message, tag = "19")]
        ProposalWithdraw(
            super::super::super::component::governance::v1::ProposalWithdraw,
        ),
        #[prost(message, tag = "20")]
        ValidatorVote(super::super::super::component::governance::v1::ValidatorVote),
        #[prost(message, tag = "21")]
        DelegatorVote(super::super::super::component::governance::v1::DelegatorVote),
        #[prost(message, tag = "22")]
        ProposalDepositClaim(
            super::super::super::component::governance::v1::ProposalDepositClaim,
        ),
        /// Positions
        #[prost(message, tag = "30")]
        PositionOpen(super::super::super::component::dex::v1::PositionOpen),
        #[prost(message, tag = "31")]
        PositionClose(super::super::super::component::dex::v1::PositionClose),
        #[prost(message, tag = "32")]
        PositionWithdraw(super::super::super::component::dex::v1::PositionWithdraw),
        #[prost(message, tag = "34")]
        PositionRewardClaim(
            super::super::super::component::dex::v1::PositionRewardClaim,
        ),
        /// (un)delegation
        #[prost(message, tag = "40")]
        Delegate(super::super::super::component::stake::v1::Delegate),
        #[prost(message, tag = "41")]
        Undelegate(super::super::super::component::stake::v1::Undelegate),
        #[prost(message, tag = "42")]
        UndelegateClaim(super::super::super::component::stake::v1::UndelegateClaim),
        /// Community Pool
        #[prost(message, tag = "50")]
        CommunityPoolSpend(
            super::super::super::component::governance::v1::CommunityPoolSpend,
        ),
        #[prost(message, tag = "51")]
        CommunityPoolOutput(
            super::super::super::component::governance::v1::CommunityPoolOutput,
        ),
        #[prost(message, tag = "52")]
        CommunityPoolDeposit(
            super::super::super::component::governance::v1::CommunityPoolDeposit,
        ),
        /// Dutch auctions
        #[prost(message, tag = "53")]
        ActionDutchAuctionSchedule(
            super::super::super::component::auction::v1::ActionDutchAuctionSchedule,
        ),
        #[prost(message, tag = "54")]
        ActionDutchAuctionEnd(
            super::super::super::component::auction::v1::ActionDutchAuctionEnd,
        ),
        #[prost(message, tag = "55")]
        ActionDutchAuctionWithdraw(
            super::super::super::component::auction::v1::ActionDutchAuctionWithdraw,
        ),
        #[prost(message, tag = "200")]
        Ics20Withdrawal(super::super::super::component::ibc::v1::Ics20Withdrawal),
    }
}
impl ::prost::Name for Action {
    const NAME: &'static str = "Action";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// A transaction perspective is a bundle of key material and commitment openings
/// that allow generating a view of a transaction from that perspective.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionPerspective {
    #[prost(message, repeated, tag = "1")]
    pub payload_keys: ::prost::alloc::vec::Vec<PayloadKeyWithCommitment>,
    #[prost(message, repeated, tag = "2")]
    pub spend_nullifiers: ::prost::alloc::vec::Vec<NullifierWithNote>,
    /// The openings of note commitments referred to in the transaction
    /// but not included in the transaction.
    #[prost(message, repeated, tag = "3")]
    pub advice_notes: ::prost::alloc::vec::Vec<
        super::super::component::shielded_pool::v1::Note,
    >,
    /// Any relevant address views.
    #[prost(message, repeated, tag = "4")]
    pub address_views: ::prost::alloc::vec::Vec<super::super::keys::v1::AddressView>,
    /// Any relevant denoms for viewed assets.
    #[prost(message, repeated, tag = "5")]
    pub denoms: ::prost::alloc::vec::Vec<super::super::asset::v1::Metadata>,
    /// The transaction ID associated with this TransactionPerspective
    #[prost(message, optional, tag = "6")]
    pub transaction_id: ::core::option::Option<super::super::txhash::v1::TransactionId>,
    /// Any relevant estimated prices
    #[prost(message, repeated, tag = "20")]
    pub prices: ::prost::alloc::vec::Vec<super::super::asset::v1::EstimatedPrice>,
    /// Any relevant extended metadata, indexed by asset id.
    #[prost(message, repeated, tag = "30")]
    pub extended_metadata: ::prost::alloc::vec::Vec<
        transaction_perspective::ExtendedMetadataById,
    >,
    #[prost(message, repeated, tag = "40")]
    pub creation_transaction_ids_by_nullifier: ::prost::alloc::vec::Vec<
        transaction_perspective::CreationTransactionIdByNullifier,
    >,
    #[prost(message, repeated, tag = "50")]
    pub nullification_transaction_ids_by_commitment: ::prost::alloc::vec::Vec<
        transaction_perspective::NullificationTransactionIdByCommitment,
    >,
    /// Any relevant BatchSwapOutputData to the transaction.
    ///
    /// This can be used to fill in information about swap outputs.
    #[prost(message, repeated, tag = "60")]
    pub batch_swap_output_data: ::prost::alloc::vec::Vec<
        super::super::component::dex::v1::BatchSwapOutputData,
    >,
}
/// Nested message and enum types in `TransactionPerspective`.
pub mod transaction_perspective {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ExtendedMetadataById {
        #[prost(message, optional, tag = "1")]
        pub asset_id: ::core::option::Option<super::super::super::asset::v1::AssetId>,
        #[prost(message, optional, tag = "2")]
        pub extended_metadata: ::core::option::Option<::pbjson_types::Any>,
    }
    impl ::prost::Name for ExtendedMetadataById {
        const NAME: &'static str = "ExtendedMetadataById";
        const PACKAGE: &'static str = "penumbra.core.transaction.v1";
        fn full_name() -> ::prost::alloc::string::String {
            ::prost::alloc::format!(
                "penumbra.core.transaction.v1.TransactionPerspective.{}", Self::NAME
            )
        }
    }
    /// Associates a nullifier with the transaction ID that created the nullified state commitment.
    ///
    /// Note: this is *not* the transaction ID that revealed the nullifier.
    ///
    /// Allows walking backwards from a spend to the transaction that created the note.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct CreationTransactionIdByNullifier {
        #[prost(message, optional, tag = "1")]
        pub nullifier: ::core::option::Option<
            super::super::super::component::sct::v1::Nullifier,
        >,
        #[prost(message, optional, tag = "2")]
        pub transaction_id: ::core::option::Option<
            super::super::super::txhash::v1::TransactionId,
        >,
    }
    impl ::prost::Name for CreationTransactionIdByNullifier {
        const NAME: &'static str = "CreationTransactionIdByNullifier";
        const PACKAGE: &'static str = "penumbra.core.transaction.v1";
        fn full_name() -> ::prost::alloc::string::String {
            ::prost::alloc::format!(
                "penumbra.core.transaction.v1.TransactionPerspective.{}", Self::NAME
            )
        }
    }
    /// Associates a commitment with the transaction ID that eventually nullified it.
    ///
    /// Allows walking forwards from an output to the transaction that spent the note.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct NullificationTransactionIdByCommitment {
        #[prost(message, optional, tag = "1")]
        pub commitment: ::core::option::Option<
            super::super::super::super::crypto::tct::v1::StateCommitment,
        >,
        #[prost(message, optional, tag = "2")]
        pub transaction_id: ::core::option::Option<
            super::super::super::txhash::v1::TransactionId,
        >,
    }
    impl ::prost::Name for NullificationTransactionIdByCommitment {
        const NAME: &'static str = "NullificationTransactionIdByCommitment";
        const PACKAGE: &'static str = "penumbra.core.transaction.v1";
        fn full_name() -> ::prost::alloc::string::String {
            ::prost::alloc::format!(
                "penumbra.core.transaction.v1.TransactionPerspective.{}", Self::NAME
            )
        }
    }
}
impl ::prost::Name for TransactionPerspective {
    const NAME: &'static str = "TransactionPerspective";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PayloadKeyWithCommitment {
    #[prost(message, optional, tag = "1")]
    pub payload_key: ::core::option::Option<super::super::keys::v1::PayloadKey>,
    #[prost(message, optional, tag = "2")]
    pub commitment: ::core::option::Option<
        super::super::super::crypto::tct::v1::StateCommitment,
    >,
}
impl ::prost::Name for PayloadKeyWithCommitment {
    const NAME: &'static str = "PayloadKeyWithCommitment";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NullifierWithNote {
    #[prost(message, optional, tag = "1")]
    pub nullifier: ::core::option::Option<super::super::component::sct::v1::Nullifier>,
    #[prost(message, optional, tag = "2")]
    pub note: ::core::option::Option<super::super::component::shielded_pool::v1::Note>,
}
impl ::prost::Name for NullifierWithNote {
    const NAME: &'static str = "NullifierWithNote";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// View of a Penumbra transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionView {
    /// View of the transaction body
    #[prost(message, optional, tag = "1")]
    pub body_view: ::core::option::Option<TransactionBodyView>,
    /// The binding signature is stored separately from the transaction body that it signs.
    #[prost(message, optional, tag = "2")]
    pub binding_sig: ::core::option::Option<
        super::super::super::crypto::decaf377_rdsa::v1::BindingSignature,
    >,
    /// The root of some previous state of the state commitment tree, used as an anchor for all
    /// ZK state transition proofs.
    #[prost(message, optional, tag = "3")]
    pub anchor: ::core::option::Option<super::super::super::crypto::tct::v1::MerkleRoot>,
}
impl ::prost::Name for TransactionView {
    const NAME: &'static str = "TransactionView";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionBodyView {
    /// A list views into of actions (state changes) performed by this transaction.
    #[prost(message, repeated, tag = "1")]
    pub action_views: ::prost::alloc::vec::Vec<ActionView>,
    /// Transaction parameters.
    #[prost(message, optional, tag = "2")]
    pub transaction_parameters: ::core::option::Option<TransactionParameters>,
    /// The detection data in this transaction, only populated if
    /// there are outputs in the actions of this transaction.
    #[prost(message, optional, tag = "4")]
    pub detection_data: ::core::option::Option<DetectionData>,
    /// An optional view of a transaction memo. It will only be populated if there are
    /// outputs in the actions of this transaction.
    #[prost(message, optional, tag = "5")]
    pub memo_view: ::core::option::Option<MemoView>,
}
impl ::prost::Name for TransactionBodyView {
    const NAME: &'static str = "TransactionBodyView";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// A view of a specific state change action performed by a transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActionView {
    #[prost(
        oneof = "action_view::ActionView",
        tags = "1, 2, 3, 4, 21, 16, 17, 18, 19, 20, 22, 30, 31, 32, 34, 41, 42, 50, 51, 52, 53, 54, 55, 43, 200"
    )]
    pub action_view: ::core::option::Option<action_view::ActionView>,
}
/// Nested message and enum types in `ActionView`.
pub mod action_view {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ActionView {
        /// Action types with visible/opaque variants
        #[prost(message, tag = "1")]
        Spend(super::super::super::component::shielded_pool::v1::SpendView),
        #[prost(message, tag = "2")]
        Output(super::super::super::component::shielded_pool::v1::OutputView),
        #[prost(message, tag = "3")]
        Swap(super::super::super::component::dex::v1::SwapView),
        #[prost(message, tag = "4")]
        SwapClaim(super::super::super::component::dex::v1::SwapClaimView),
        #[prost(message, tag = "21")]
        DelegatorVote(super::super::super::component::governance::v1::DelegatorVoteView),
        /// Action types without visible/opaque variants
        #[prost(message, tag = "16")]
        ValidatorDefinition(
            super::super::super::component::stake::v1::ValidatorDefinition,
        ),
        #[prost(message, tag = "17")]
        IbcRelayAction(super::super::super::component::ibc::v1::IbcRelay),
        /// Governance:
        #[prost(message, tag = "18")]
        ProposalSubmit(super::super::super::component::governance::v1::ProposalSubmit),
        #[prost(message, tag = "19")]
        ProposalWithdraw(
            super::super::super::component::governance::v1::ProposalWithdraw,
        ),
        #[prost(message, tag = "20")]
        ValidatorVote(super::super::super::component::governance::v1::ValidatorVote),
        #[prost(message, tag = "22")]
        ProposalDepositClaim(
            super::super::super::component::governance::v1::ProposalDepositClaim,
        ),
        #[prost(message, tag = "30")]
        PositionOpen(super::super::super::component::dex::v1::PositionOpen),
        #[prost(message, tag = "31")]
        PositionClose(super::super::super::component::dex::v1::PositionClose),
        #[prost(message, tag = "32")]
        PositionWithdraw(super::super::super::component::dex::v1::PositionWithdraw),
        #[prost(message, tag = "34")]
        PositionRewardClaim(
            super::super::super::component::dex::v1::PositionRewardClaim,
        ),
        #[prost(message, tag = "41")]
        Delegate(super::super::super::component::stake::v1::Delegate),
        #[prost(message, tag = "42")]
        Undelegate(super::super::super::component::stake::v1::Undelegate),
        /// Community Pool
        #[prost(message, tag = "50")]
        CommunityPoolSpend(
            super::super::super::component::governance::v1::CommunityPoolSpend,
        ),
        #[prost(message, tag = "51")]
        CommunityPoolOutput(
            super::super::super::component::governance::v1::CommunityPoolOutput,
        ),
        #[prost(message, tag = "52")]
        CommunityPoolDeposit(
            super::super::super::component::governance::v1::CommunityPoolDeposit,
        ),
        /// Dutch auctions
        #[prost(message, tag = "53")]
        ActionDutchAuctionSchedule(
            super::super::super::component::auction::v1::ActionDutchAuctionScheduleView,
        ),
        #[prost(message, tag = "54")]
        ActionDutchAuctionEnd(
            super::super::super::component::auction::v1::ActionDutchAuctionEnd,
        ),
        #[prost(message, tag = "55")]
        ActionDutchAuctionWithdraw(
            super::super::super::component::auction::v1::ActionDutchAuctionWithdrawView,
        ),
        /// TODO: we have no way to recover the opening of the undelegate_claim's
        /// balance commitment, and can only infer the value from looking at the rest
        /// of the transaction. is that fine?
        #[prost(message, tag = "43")]
        UndelegateClaim(super::super::super::component::stake::v1::UndelegateClaim),
        #[prost(message, tag = "200")]
        Ics20Withdrawal(super::super::super::component::ibc::v1::Ics20Withdrawal),
    }
}
impl ::prost::Name for ActionView {
    const NAME: &'static str = "ActionView";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// The data required to authorize a transaction plan.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizationData {
    /// The computed auth hash for the approved transaction plan.
    #[prost(message, optional, tag = "1")]
    pub effect_hash: ::core::option::Option<super::super::txhash::v1::EffectHash>,
    /// The required spend authorizations, returned in the same order as the
    /// Spend actions in the original request.
    #[prost(message, repeated, tag = "2")]
    pub spend_auths: ::prost::alloc::vec::Vec<
        super::super::super::crypto::decaf377_rdsa::v1::SpendAuthSignature,
    >,
    /// The required delegator vote authorizations, returned in the same order as the
    /// DelegatorVote actions in the original request.
    #[prost(message, repeated, tag = "3")]
    pub delegator_vote_auths: ::prost::alloc::vec::Vec<
        super::super::super::crypto::decaf377_rdsa::v1::SpendAuthSignature,
    >,
}
impl ::prost::Name for AuthorizationData {
    const NAME: &'static str = "AuthorizationData";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// The data required for proving when building a transaction from a plan.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WitnessData {
    /// The anchor for the state transition proofs.
    #[prost(message, optional, tag = "1")]
    pub anchor: ::core::option::Option<super::super::super::crypto::tct::v1::MerkleRoot>,
    /// The auth paths for the notes the transaction spends, in the
    /// same order as the spends in the transaction plan.
    #[prost(message, repeated, tag = "2")]
    pub state_commitment_proofs: ::prost::alloc::vec::Vec<
        super::super::super::crypto::tct::v1::StateCommitmentProof,
    >,
}
impl ::prost::Name for WitnessData {
    const NAME: &'static str = "WitnessData";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// Describes a planned transaction. Permits clients to prepare a transaction
/// prior submission, so that a user can review it prior to authorizing its execution.
///
/// The `TransactionPlan` is a fully determined bundle binding all of a transaction's effects.
/// The only thing it does not include is the witness data used for proving.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransactionPlan {
    /// The sequence of actions planned for this transaction.
    #[prost(message, repeated, tag = "1")]
    pub actions: ::prost::alloc::vec::Vec<ActionPlan>,
    /// Parameters determining if a transaction should be accepted by this chain.
    #[prost(message, optional, tag = "2")]
    pub transaction_parameters: ::core::option::Option<TransactionParameters>,
    /// Detection data for use with Fuzzy Message Detection
    #[prost(message, optional, tag = "4")]
    pub detection_data: ::core::option::Option<DetectionDataPlan>,
    /// The memo plan for this transaction.
    #[prost(message, optional, tag = "5")]
    pub memo: ::core::option::Option<MemoPlan>,
}
impl ::prost::Name for TransactionPlan {
    const NAME: &'static str = "TransactionPlan";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DetectionDataPlan {
    #[prost(message, repeated, tag = "5")]
    pub clue_plans: ::prost::alloc::vec::Vec<CluePlan>,
}
impl ::prost::Name for DetectionDataPlan {
    const NAME: &'static str = "DetectionDataPlan";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// Describes a planned transaction action.
///
/// Some transaction Actions don't have any private data and are treated as being plans
/// themselves.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActionPlan {
    #[prost(
        oneof = "action_plan::Action",
        tags = "1, 2, 3, 4, 16, 17, 18, 19, 20, 21, 22, 200, 30, 31, 32, 34, 40, 41, 42, 50, 51, 52, 53, 54, 55"
    )]
    pub action: ::core::option::Option<action_plan::Action>,
}
/// Nested message and enum types in `ActionPlan`.
pub mod action_plan {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Action {
        #[prost(message, tag = "1")]
        Spend(super::super::super::component::shielded_pool::v1::SpendPlan),
        #[prost(message, tag = "2")]
        Output(super::super::super::component::shielded_pool::v1::OutputPlan),
        #[prost(message, tag = "3")]
        Swap(super::super::super::component::dex::v1::SwapPlan),
        #[prost(message, tag = "4")]
        SwapClaim(super::super::super::component::dex::v1::SwapClaimPlan),
        /// This is just a message relayed to the chain.
        #[prost(message, tag = "16")]
        ValidatorDefinition(
            super::super::super::component::stake::v1::ValidatorDefinition,
        ),
        /// This is just a message relayed to the chain.
        #[prost(message, tag = "17")]
        IbcRelayAction(super::super::super::component::ibc::v1::IbcRelay),
        /// Governance:
        #[prost(message, tag = "18")]
        ProposalSubmit(super::super::super::component::governance::v1::ProposalSubmit),
        #[prost(message, tag = "19")]
        ProposalWithdraw(
            super::super::super::component::governance::v1::ProposalWithdraw,
        ),
        #[prost(message, tag = "20")]
        ValidatorVote(super::super::super::component::governance::v1::ValidatorVote),
        #[prost(message, tag = "21")]
        DelegatorVote(super::super::super::component::governance::v1::DelegatorVotePlan),
        #[prost(message, tag = "22")]
        ProposalDepositClaim(
            super::super::super::component::governance::v1::ProposalDepositClaim,
        ),
        #[prost(message, tag = "200")]
        Ics20Withdrawal(super::super::super::component::ibc::v1::Ics20Withdrawal),
        #[prost(message, tag = "30")]
        PositionOpen(super::super::super::component::dex::v1::PositionOpen),
        #[prost(message, tag = "31")]
        PositionClose(super::super::super::component::dex::v1::PositionClose),
        /// The position withdraw/reward claim actions require balance information so they have Plan types.
        #[prost(message, tag = "32")]
        PositionWithdraw(super::super::super::component::dex::v1::PositionWithdrawPlan),
        #[prost(message, tag = "34")]
        PositionRewardClaim(
            super::super::super::component::dex::v1::PositionRewardClaimPlan,
        ),
        /// We don't need any extra information (yet) to understand delegations,
        /// because we don't yet use flow encryption.
        #[prost(message, tag = "40")]
        Delegate(super::super::super::component::stake::v1::Delegate),
        /// We don't need any extra information (yet) to understand undelegations,
        /// because we don't yet use flow encryption.
        #[prost(message, tag = "41")]
        Undelegate(super::super::super::component::stake::v1::Undelegate),
        #[prost(message, tag = "42")]
        UndelegateClaim(super::super::super::component::stake::v1::UndelegateClaimPlan),
        /// Community Pool
        #[prost(message, tag = "50")]
        CommunityPoolSpend(
            super::super::super::component::governance::v1::CommunityPoolSpend,
        ),
        #[prost(message, tag = "51")]
        CommunityPoolOutput(
            super::super::super::component::governance::v1::CommunityPoolOutput,
        ),
        #[prost(message, tag = "52")]
        CommunityPoolDeposit(
            super::super::super::component::governance::v1::CommunityPoolDeposit,
        ),
        /// Dutch auctions
        #[prost(message, tag = "53")]
        ActionDutchAuctionSchedule(
            super::super::super::component::auction::v1::ActionDutchAuctionSchedule,
        ),
        #[prost(message, tag = "54")]
        ActionDutchAuctionEnd(
            super::super::super::component::auction::v1::ActionDutchAuctionEnd,
        ),
        #[prost(message, tag = "55")]
        ActionDutchAuctionWithdraw(
            super::super::super::component::auction::v1::ActionDutchAuctionWithdrawPlan,
        ),
    }
}
impl ::prost::Name for ActionPlan {
    const NAME: &'static str = "ActionPlan";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// Describes a plan for forming a `Clue`.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CluePlan {
    /// The address.
    #[prost(message, optional, tag = "1")]
    pub address: ::core::option::Option<super::super::keys::v1::Address>,
    /// The random seed to use for the clue plan.
    #[prost(bytes = "vec", tag = "2")]
    pub rseed: ::prost::alloc::vec::Vec<u8>,
    /// The bits of precision.
    #[prost(uint64, tag = "3")]
    pub precision_bits: u64,
}
impl ::prost::Name for CluePlan {
    const NAME: &'static str = "CluePlan";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// Describes a plan for forming the transaction memo.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemoPlan {
    /// The plaintext.
    #[prost(message, optional, tag = "1")]
    pub plaintext: ::core::option::Option<MemoPlaintext>,
    /// The key to use to encrypt the memo.
    #[prost(bytes = "vec", tag = "2")]
    pub key: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for MemoPlan {
    const NAME: &'static str = "MemoPlan";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// The encrypted memo data describing information about the purpose of a transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemoCiphertext {
    /// The encrypted data. 528 bytes.
    #[prost(bytes = "vec", tag = "1")]
    pub inner: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for MemoCiphertext {
    const NAME: &'static str = "MemoCiphertext";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
/// The plaintext describing information about the purpose of a transaction.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemoPlaintext {
    /// The sender's return address.
    ///
    /// This should always be a valid address; the sender is responsible for ensuring
    /// that if the receiver returns funds to this address, they will not be lost.
    #[prost(message, optional, tag = "1")]
    pub return_address: ::core::option::Option<super::super::keys::v1::Address>,
    /// Free-form text, up to 432 bytes long.
    #[prost(string, tag = "2")]
    pub text: ::prost::alloc::string::String,
}
impl ::prost::Name for MemoPlaintext {
    const NAME: &'static str = "MemoPlaintext";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemoPlaintextView {
    #[prost(message, optional, tag = "1")]
    pub return_address: ::core::option::Option<super::super::keys::v1::AddressView>,
    #[prost(string, tag = "2")]
    pub text: ::prost::alloc::string::String,
}
impl ::prost::Name for MemoPlaintextView {
    const NAME: &'static str = "MemoPlaintextView";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MemoView {
    #[prost(oneof = "memo_view::MemoView", tags = "1, 2")]
    pub memo_view: ::core::option::Option<memo_view::MemoView>,
}
/// Nested message and enum types in `MemoView`.
pub mod memo_view {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Visible {
        #[prost(message, optional, tag = "1")]
        pub ciphertext: ::core::option::Option<super::MemoCiphertext>,
        #[prost(message, optional, tag = "2")]
        pub plaintext: ::core::option::Option<super::MemoPlaintextView>,
    }
    impl ::prost::Name for Visible {
        const NAME: &'static str = "Visible";
        const PACKAGE: &'static str = "penumbra.core.transaction.v1";
        fn full_name() -> ::prost::alloc::string::String {
            ::prost::alloc::format!(
                "penumbra.core.transaction.v1.MemoView.{}", Self::NAME
            )
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Opaque {
        #[prost(message, optional, tag = "1")]
        pub ciphertext: ::core::option::Option<super::MemoCiphertext>,
    }
    impl ::prost::Name for Opaque {
        const NAME: &'static str = "Opaque";
        const PACKAGE: &'static str = "penumbra.core.transaction.v1";
        fn full_name() -> ::prost::alloc::string::String {
            ::prost::alloc::format!(
                "penumbra.core.transaction.v1.MemoView.{}", Self::NAME
            )
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum MemoView {
        #[prost(message, tag = "1")]
        Visible(Visible),
        #[prost(message, tag = "2")]
        Opaque(Opaque),
    }
}
impl ::prost::Name for MemoView {
    const NAME: &'static str = "MemoView";
    const PACKAGE: &'static str = "penumbra.core.transaction.v1";
    fn full_name() -> ::prost::alloc::string::String {
        ::prost::alloc::format!("penumbra.core.transaction.v1.{}", Self::NAME)
    }
}