mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-03-03 10:43:09 +00:00
add clone property and shift feature restriction
This commit is contained in:
parent
157495ad59
commit
227f006179
Binary file not shown.
@ -16,7 +16,7 @@ use crate::{
|
||||
|
||||
pub const MAX_NUMBER_CHAINED_CALLS: usize = 10;
|
||||
|
||||
#[derive(BorshSerialize, BorshDeserialize)]
|
||||
#[derive(Clone, BorshSerialize, BorshDeserialize)]
|
||||
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
||||
pub(crate) struct CommitmentSet {
|
||||
merkle_tree: MerkleTree,
|
||||
@ -64,6 +64,7 @@ impl CommitmentSet {
|
||||
}
|
||||
|
||||
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
||||
#[derive(Clone)]
|
||||
struct NullifierSet(BTreeSet<Nullifier>);
|
||||
|
||||
impl NullifierSet {
|
||||
@ -104,7 +105,7 @@ impl BorshDeserialize for NullifierSet {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(BorshSerialize, BorshDeserialize)]
|
||||
#[derive(Clone, BorshSerialize, BorshDeserialize)]
|
||||
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
||||
pub struct V02State {
|
||||
public_state: HashMap<AccountId, Account>,
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#![cfg(all(test, feature = "with-nssa"))]
|
||||
|
||||
use amm_core::PoolDefinition;
|
||||
use nssa::{
|
||||
Account, AccountId, Data, PrivateKey, PublicKey, PublicTransaction, V02State, program::Program,
|
||||
|
||||
@ -7,5 +7,7 @@ pub mod new_definition;
|
||||
pub mod remove;
|
||||
pub mod swap;
|
||||
|
||||
#[cfg(all(test, feature = "with-nssa"))]
|
||||
mod full_tests;
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#![cfg(test)]
|
||||
|
||||
|
||||
use std::num::NonZero;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user