-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHIA-1034 Rename
Spend
to SpendConditions
and OwnedSpend
to `Ow…
…nedSpendConditions` (#656) * initial commit * change python binding for Spend to SpendConditions * run generate_type_stubs * add Spend alias for SpendConditions * remove unused import and black spend.py * fuzz use SpendConditions * fix test_generators * fmt * LF line ending * LF line endings for test_streamable
- Loading branch information
1 parent
81cd735
commit 2e0331f
Showing
14 changed files
with
143 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
use crate::gen::conditions::{Condition, Spend}; | ||
use crate::gen::conditions::{Condition, SpendConditions}; | ||
use clvmr::allocator::Allocator; | ||
|
||
// These are customization points for the condition parsing and validation. The | ||
// mempool wants to record additional information than plain consensus | ||
// validation, so it hooks into these. | ||
pub trait SpendVisitor { | ||
fn new_spend(spend: &mut Spend) -> Self; | ||
fn condition(&mut self, spend: &mut Spend, c: &Condition); | ||
fn post_spend(&mut self, a: &Allocator, spend: &mut Spend); | ||
fn new_spend(spend: &mut SpendConditions) -> Self; | ||
fn condition(&mut self, spend: &mut SpendConditions, c: &Condition); | ||
fn post_spend(&mut self, a: &Allocator, spend: &mut SpendConditions); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .chia_rs import * | ||
from .chia_rs import * | ||
from .spend import Spend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from chia_rs import SpendConditions | ||
|
||
Spend = SpendConditions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters