mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-25 11:43:06 +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;
|
pub const MAX_NUMBER_CHAINED_CALLS: usize = 10;
|
||||||
|
|
||||||
#[derive(BorshSerialize, BorshDeserialize)]
|
#[derive(Clone, BorshSerialize, BorshDeserialize)]
|
||||||
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
||||||
pub(crate) struct CommitmentSet {
|
pub(crate) struct CommitmentSet {
|
||||||
merkle_tree: MerkleTree,
|
merkle_tree: MerkleTree,
|
||||||
@ -64,6 +64,7 @@ impl CommitmentSet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
||||||
|
#[derive(Clone)]
|
||||||
struct NullifierSet(BTreeSet<Nullifier>);
|
struct NullifierSet(BTreeSet<Nullifier>);
|
||||||
|
|
||||||
impl NullifierSet {
|
impl NullifierSet {
|
||||||
@ -104,7 +105,7 @@ impl BorshDeserialize for NullifierSet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(BorshSerialize, BorshDeserialize)]
|
#[derive(Clone, BorshSerialize, BorshDeserialize)]
|
||||||
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
#[cfg_attr(test, derive(Debug, PartialEq, Eq))]
|
||||||
pub struct V02State {
|
pub struct V02State {
|
||||||
public_state: HashMap<AccountId, Account>,
|
public_state: HashMap<AccountId, Account>,
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
#![cfg(all(test, feature = "with-nssa"))]
|
|
||||||
|
|
||||||
use amm_core::PoolDefinition;
|
use amm_core::PoolDefinition;
|
||||||
use nssa::{
|
use nssa::{
|
||||||
Account, AccountId, Data, PrivateKey, PublicKey, PublicTransaction, V02State, program::Program,
|
Account, AccountId, Data, PrivateKey, PublicKey, PublicTransaction, V02State, program::Program,
|
||||||
|
|||||||
@ -7,5 +7,7 @@ pub mod new_definition;
|
|||||||
pub mod remove;
|
pub mod remove;
|
||||||
pub mod swap;
|
pub mod swap;
|
||||||
|
|
||||||
|
#[cfg(all(test, feature = "with-nssa"))]
|
||||||
mod full_tests;
|
mod full_tests;
|
||||||
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#![cfg(test)]
|
|
||||||
|
|
||||||
use std::num::NonZero;
|
use std::num::NonZero;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user