pub struct ArwenBigInt {
    pub handle: i32,
}

Fields§

§handle: i32

Implementations§

Trait Implementations§

source§

impl<'a, 'b> Add<&'b ArwenBigInt> for &'a ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the + operator.
source§

fn add(self, other: &ArwenBigInt) -> ArwenBigInt

Performs the + operation. Read more
source§

impl Add for ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the + operator.
source§

fn add(self, other: ArwenBigInt) -> ArwenBigInt

Performs the + operation. Read more
source§

impl AddAssign<&ArwenBigInt> for ArwenBigInt

source§

fn add_assign(&mut self, other: &ArwenBigInt)

Performs the += operation. Read more
source§

impl AddAssign for ArwenBigInt

source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
source§

impl BigIntApi<ArwenBigUint> for ArwenBigInt

source§

fn abs_uint(&self) -> ArwenBigUint

source§

fn sign(&self) -> Sign

source§

fn to_signed_bytes_be(&self) -> Vec<u8>

source§

fn from_signed_bytes_be(bytes: &[u8]) -> Self

source§

fn zero() -> Self

source§

impl Clone for ArwenBigInt

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl

§

type Storage = ArwenApiImpl

Abstracts the lower-level storage functionality.
§

type CallValue = ArwenApiImpl

Abstracts the call value handling at the beginning of a function call.
§

type SendApi = ArwenApiImpl

Abstracts the sending of MOAX & DCT transactions, as well as async calls.
source§

fn get_storage_raw(&self) -> Self::Storage

Gateway into the lower-level storage functionality. Storage related annotations make use of this. Using it directly is not recommended.
source§

fn call_value(&self) -> Self::CallValue

Gateway into the call value retrieval functionality. The payment annotations should normally be the ones to handle this, but the developer is also given direct access to the API.
source§

fn send(&self) -> Self::SendApi

Gateway to the functionality related to sending transactions from the current contract.
source§

fn get_sc_address(&self) -> Address

source§

fn get_owner_address(&self) -> Address

source§

fn get_shard_of_address(&self, address: &Address) -> u32

source§

fn is_smart_contract(&self, address: &Address) -> bool

source§

fn get_caller(&self) -> Address

source§

fn get_balance(&self, address: &Address) -> ArwenBigUint

source§

fn get_tx_hash(&self) -> H256

source§

fn get_gas_left(&self) -> u64

source§

fn get_block_timestamp(&self) -> u64

source§

fn get_block_nonce(&self) -> u64

source§

fn get_block_round(&self) -> u64

source§

fn get_block_epoch(&self) -> u64

source§

fn get_block_random_seed(&self) -> Box<[u8; 48]>

source§

fn get_prev_block_timestamp(&self) -> u64

source§

fn get_prev_block_nonce(&self) -> u64

source§

fn get_prev_block_round(&self) -> u64

source§

fn get_prev_block_epoch(&self) -> u64

source§

fn get_prev_block_random_seed(&self) -> Box<[u8; 48]>

source§

fn get_current_dct_nft_nonce(&self, address: &Address, token: &[u8]) -> u64

source§

fn get_dct_balance( &self, address: &Address, token: &[u8], nonce: u64 ) -> ArwenBigUint

source§

fn get_dct_token_data( &self, address: &Address, token: &[u8], nonce: u64 ) -> DctTokenData<ArwenBigUint>

source§

fn get_sc_balance(&self) -> BigUint

source§

fn storage_load_cumulated_validator_reward(&self) -> BigUint

source§

impl<'a, 'b> Div<&'b ArwenBigInt> for &'a ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the / operator.
source§

fn div(self, other: &ArwenBigInt) -> ArwenBigInt

Performs the / operation. Read more
source§

impl Div for ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the / operator.
source§

fn div(self, other: ArwenBigInt) -> ArwenBigInt

Performs the / operation. Read more
source§

impl DivAssign<&ArwenBigInt> for ArwenBigInt

source§

fn div_assign(&mut self, other: &ArwenBigInt)

Performs the /= operation. Read more
source§

impl DivAssign for ArwenBigInt

source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
source§

impl From<ArwenBigUint> for ArwenBigInt

source§

fn from(item: ArwenBigUint) -> Self

Converts to this type from the input type.
source§

impl From<i32> for ArwenBigInt

source§

fn from(item: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for ArwenBigInt

source§

fn from(item: i64) -> Self

Converts to this type from the input type.
source§

impl<'a, 'b> Mul<&'b ArwenBigInt> for &'a ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the * operator.
source§

fn mul(self, other: &ArwenBigInt) -> ArwenBigInt

Performs the * operation. Read more
source§

impl Mul for ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the * operator.
source§

fn mul(self, other: ArwenBigInt) -> ArwenBigInt

Performs the * operation. Read more
source§

impl MulAssign<&ArwenBigInt> for ArwenBigInt

source§

fn mul_assign(&mut self, other: &ArwenBigInt)

Performs the *= operation. Read more
source§

impl MulAssign for ArwenBigInt

source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
source§

impl Neg for ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl NestedDecode for ArwenBigInt

source§

fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>

Attempt to deserialise the value from input, using the format of an object nested inside another structure. In case of success returns the deserialized value and the number of bytes consumed during the operation.
source§

fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>( input: &mut I, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller implementations in cases where the application is supposed to exit directly on decode error.
source§

impl NestedEncode for ArwenBigInt

source§

fn dep_encode<O: NestedEncodeOutput>( &self, dest: &mut O ) -> Result<(), EncodeError>

NestedEncode to output, using the format of an object nested inside another structure. Does not provide compact version.
source§

fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>( &self, dest: &mut O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller implementations in cases where the application is supposed to exit directly on decode error.
source§

impl Ord for ArwenBigInt

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<i64> for ArwenBigInt

source§

fn eq(&self, other: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for ArwenBigInt

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<i64> for ArwenBigInt

source§

fn partial_cmp(&self, other: &i64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd for ArwenBigInt

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a, 'b> Rem<&'b ArwenBigInt> for &'a ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the % operator.
source§

fn rem(self, other: &ArwenBigInt) -> ArwenBigInt

Performs the % operation. Read more
source§

impl Rem for ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the % operator.
source§

fn rem(self, other: ArwenBigInt) -> ArwenBigInt

Performs the % operation. Read more
source§

impl RemAssign<&ArwenBigInt> for ArwenBigInt

source§

fn rem_assign(&mut self, other: &ArwenBigInt)

Performs the %= operation. Read more
source§

impl RemAssign for ArwenBigInt

source§

fn rem_assign(&mut self, other: Self)

Performs the %= operation. Read more
source§

impl<'a, 'b> Sub<&'b ArwenBigInt> for &'a ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the - operator.
source§

fn sub(self, other: &ArwenBigInt) -> ArwenBigInt

Performs the - operation. Read more
source§

impl Sub for ArwenBigInt

§

type Output = ArwenBigInt

The resulting type after applying the - operator.
source§

fn sub(self, other: ArwenBigInt) -> ArwenBigInt

Performs the - operation. Read more
source§

impl SubAssign<&ArwenBigInt> for ArwenBigInt

source§

fn sub_assign(&mut self, other: &ArwenBigInt)

Performs the -= operation. Read more
source§

impl SubAssign for ArwenBigInt

source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
source§

impl TopDecode for ArwenBigInt

source§

fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>

Attempt to deserialize the value from input.
source§

fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>( input: I, _: ExitCtx, _: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller implementations in cases where the application is supposed to exit directly on decode error.
source§

impl TopEncode for ArwenBigInt

source§

fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>

Attempt to serialize the value to ouput.
source§

fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>( &self, output: O, _: ExitCtx, _: fn(_: ExitCtx, _: EncodeError) -> ! )

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller bytecode implementations in cases where the application is supposed to exit directly on decode error.
source§

impl TypeAbi for ArwenBigInt

source§

fn type_name() -> String

source§

fn provide_type_descriptions<TDC>(accumulator: &mut TDC)

A type can provide more than its own description. For instance, a struct can also provide the descriptions of the type of its fields. TypeAbi doesn’t care for the exact accumulator type, which is abstracted by the TypeDescriptionContainer trait.
source§

impl Eq for ArwenBigInt

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> ContractCallArg for T
where T: TopEncode,

source§

fn push_async_arg(&self, serializer: &mut ArgBuffer) -> Result<(), SCError>

source§

impl<T> DynArg for T
where T: TopDecode,

source§

fn dyn_load<I, D>(loader: &mut D, arg_id: ArgId) -> T
where I: TopDecodeInput, D: DynArgInput<I>,

source§

impl<FA, T> EndpointResult<FA> for T
where FA: EndpointFinishApi + ErrorApi + Clone + 'static, T: TopEncode,

source§

fn finish(&self, api: FA)

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.