Struct TestConstants

Source
pub struct TestConstants {}

Implementations§

Source§

impl TestConstants

Source

pub const TEST_RESOURCE_PATH: &'static str = "../../../test_resources/"

Source

pub const DEFAULT_ACCOUNT_ADDRESS: &'static str = "NM7Aky765FG8NhhwtxjXRx7jEL1cnw7PBP"

Source

pub const DEFAULT_ACCOUNT_SCRIPT_HASH: &'static str = "69ecca587293047be4c59159bf8bc399985c160d"

Source

pub const DEFAULT_ACCOUNT_VERIFICATION_SCRIPT: &'static str = "0c21033a4d051b04b7fc0230d2b1aaedfd5a84be279a5361a7358db665ad7857787f1b4156e7b327"

Source

pub const DEFAULT_ACCOUNT_PUBLIC_KEY: &'static str = "033a4d051b04b7fc0230d2b1aaedfd5a84be279a5361a7358db665ad7857787f1b"

Source

pub const DEFAULT_ACCOUNT_PRIVATE_KEY: &'static str = "84180ac9d6eb6fba207ea4ef9d2200102d1ebeb4b9c07e2c6a738a42742e27a5"

Source

pub const DEFAULT_ACCOUNT_ENCRYPTED_PRIVATE_KEY: &'static str = "6PYM7jHL4GmS8Aw2iEFpuaHTCUKjhT4mwVqdoozGU6sUE25BjV4ePXDdLz"

Source

pub const DEFAULT_ACCOUNT_WIF: &'static str = "L1eV34wPoj9weqhGijdDLtVQzUpWGHszXXpdU9dPuh2nRFFzFa7E"

Source

pub const DEFAULT_ACCOUNT_PASSWORD: &'static str = "neo"

Source

pub const COMMITTEE_ACCOUNT_ADDRESS: &'static str = "NXXazKH39yNFWWZF5MJ8tEN98VYHwzn7g3"

Source

pub const COMMITTEE_ACCOUNT_SCRIPT_HASH: &'static str = "05859de95ccbbd5668e0f055b208273634d4657f"

Source

pub const COMMITTEE_ACCOUNT_VERIFICATION_SCRIPT: &'static str = "110c21033a4d051b04b7fc0230d2b1aaedfd5a84be279a5361a7358db665ad7857787f1b11419ed0dc3a"

Source

pub const CONTRACT_MANAGEMENT_HASH: &'static str = "fffdc93764dbaddd97c48f252a53ea4643faa3fd"

Source

pub const STD_LIB_HASH: &'static str = "acce6fd80d44e1796aa0c2c625e9e4e0ce39efc0"

Source

pub const CRYPTO_LIB_HASH: &'static str = "726cb6e0cd8628a1350a611384688911ab75f51b"

Source

pub const LEDGER_CONTRACT_HASH: &'static str = "da65b600f7124ce6c79950c1772a36403104f2be"

Source

pub const NEO_TOKEN_HASH: &'static str = "ef4073a0f2b305a38ec4050e4d3d28bc40ea63f5"

Source

pub const GAS_TOKEN_HASH: &'static str = "d2a4cff31913016155e38e474a2c06d08be276cf"

Source

pub const GAS_TOKEN_NAME: &'static str = "GasToken"

Source

pub const POLICY_CONTRACT_HASH: &'static str = "cc5e4edd9f5f8dba8bb65734541df7a1c081c67b"

Source

pub const ROLE_MANAGEMENT_HASH: &'static str = "49cf4e5378ffcd4dec034fd98a174c5491e395e2"

Source

pub const ORACLE_CONTRACT_HASH: &'static str = "fe924b7cfe89ddd271abaf7210a80a7e11178758"

Source

pub const NAME_SERVICE_HASH: &'static str = "7a8fcf0392cd625647907afa8e45cc66872b596b"

Source

pub const CLIENT1_ACCOUNT_WIF: &'static str = "L3cNMQUSrvUrHx1MzacwHiUeCWzqK2MLt5fPvJj9mz6L2rzYZpok"

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,