Delete duplicate file

This commit is contained in:
Greg Fitzgerald 2019-03-02 16:14:33 -07:00 committed by Michael Vines
parent 1edf6c361e
commit 398b78dd97
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 0 additions and 27 deletions

View File

@ -1,27 +0,0 @@
//! The `plan` module provides a domain-specific language for payment plans. Users create BudgetExpr objects that
//! are given to an interpreter. The interpreter listens for `Witness` transactions,
//! which it uses to reduce the payment plan. When the plan is reduced to a
//! `Payment`, the payment is executed.
use crate::pubkey::Pubkey;
use chrono::prelude::*;
/// The types of events a payment plan can process.
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
pub enum Witness {
/// The current time.
Timestamp(DateTime<Utc>),
/// A signature from Pubkey.
Signature,
}
/// Some amount of tokens that should be sent to the `to` `Pubkey`.
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
pub struct Payment {
/// Amount to be paid.
pub tokens: u64,
/// The `Pubkey` that `tokens` should be paid to.
pub to: Pubkey,
}