Struct dharitri_wasm_node::api::ArwenBigInt
source · pub struct ArwenBigInt {
pub handle: i32,
}Fields§
§handle: i32Implementations§
source§impl ArwenBigInt
impl ArwenBigInt
pub fn from_i64(value: i64) -> ArwenBigInt
Trait Implementations§
source§impl<'a, 'b> Add<&'b ArwenBigInt> for &'a ArwenBigInt
impl<'a, 'b> Add<&'b ArwenBigInt> for &'a ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
+ operator.source§fn add(self, other: &ArwenBigInt) -> ArwenBigInt
fn add(self, other: &ArwenBigInt) -> ArwenBigInt
Performs the
+ operation. Read moresource§impl Add for ArwenBigInt
impl Add for ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
+ operator.source§fn add(self, other: ArwenBigInt) -> ArwenBigInt
fn add(self, other: ArwenBigInt) -> ArwenBigInt
Performs the
+ operation. Read moresource§impl AddAssign<&ArwenBigInt> for ArwenBigInt
impl AddAssign<&ArwenBigInt> for ArwenBigInt
source§fn add_assign(&mut self, other: &ArwenBigInt)
fn add_assign(&mut self, other: &ArwenBigInt)
Performs the
+= operation. Read moresource§impl AddAssign for ArwenBigInt
impl AddAssign for ArwenBigInt
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moresource§impl BigIntApi<ArwenBigUint> for ArwenBigInt
impl BigIntApi<ArwenBigUint> for ArwenBigInt
source§impl Clone for ArwenBigInt
impl Clone for ArwenBigInt
source§impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
§type Storage = ArwenApiImpl
type Storage = ArwenApiImpl
Abstracts the lower-level storage functionality.
§type CallValue = ArwenApiImpl
type CallValue = ArwenApiImpl
Abstracts the call value handling at the beginning of a function call.
§type SendApi = ArwenApiImpl
type SendApi = ArwenApiImpl
Abstracts the sending of MOAX & DCT transactions, as well as async calls.
source§fn get_storage_raw(&self) -> Self::Storage
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
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
fn send(&self) -> Self::SendApi
Gateway to the functionality related to sending transactions from the current contract.
fn get_sc_address(&self) -> Address
fn get_owner_address(&self) -> Address
fn get_shard_of_address(&self, address: &Address) -> u32
fn is_smart_contract(&self, address: &Address) -> bool
fn get_caller(&self) -> Address
fn get_balance(&self, address: &Address) -> ArwenBigUint
fn get_tx_hash(&self) -> H256
fn get_gas_left(&self) -> u64
fn get_block_timestamp(&self) -> u64
fn get_block_nonce(&self) -> u64
fn get_block_round(&self) -> u64
fn get_block_epoch(&self) -> u64
fn get_block_random_seed(&self) -> Box<[u8; 48]>
fn get_prev_block_timestamp(&self) -> u64
fn get_prev_block_nonce(&self) -> u64
fn get_prev_block_round(&self) -> u64
fn get_prev_block_epoch(&self) -> u64
fn get_prev_block_random_seed(&self) -> Box<[u8; 48]>
fn get_current_dct_nft_nonce(&self, address: &Address, token: &[u8]) -> u64
fn get_dct_balance( &self, address: &Address, token: &[u8], nonce: u64 ) -> ArwenBigUint
fn get_dct_token_data( &self, address: &Address, token: &[u8], nonce: u64 ) -> DctTokenData<ArwenBigUint>
fn get_sc_balance(&self) -> BigUint
fn storage_load_cumulated_validator_reward(&self) -> BigUint
source§impl<'a, 'b> Div<&'b ArwenBigInt> for &'a ArwenBigInt
impl<'a, 'b> Div<&'b ArwenBigInt> for &'a ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
/ operator.source§fn div(self, other: &ArwenBigInt) -> ArwenBigInt
fn div(self, other: &ArwenBigInt) -> ArwenBigInt
Performs the
/ operation. Read moresource§impl Div for ArwenBigInt
impl Div for ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
/ operator.source§fn div(self, other: ArwenBigInt) -> ArwenBigInt
fn div(self, other: ArwenBigInt) -> ArwenBigInt
Performs the
/ operation. Read moresource§impl DivAssign<&ArwenBigInt> for ArwenBigInt
impl DivAssign<&ArwenBigInt> for ArwenBigInt
source§fn div_assign(&mut self, other: &ArwenBigInt)
fn div_assign(&mut self, other: &ArwenBigInt)
Performs the
/= operation. Read moresource§impl DivAssign for ArwenBigInt
impl DivAssign for ArwenBigInt
source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moresource§impl From<ArwenBigUint> for ArwenBigInt
impl From<ArwenBigUint> for ArwenBigInt
source§fn from(item: ArwenBigUint) -> Self
fn from(item: ArwenBigUint) -> Self
Converts to this type from the input type.
source§impl From<i32> for ArwenBigInt
impl From<i32> for ArwenBigInt
source§impl From<i64> for ArwenBigInt
impl From<i64> for ArwenBigInt
source§impl<'a, 'b> Mul<&'b ArwenBigInt> for &'a ArwenBigInt
impl<'a, 'b> Mul<&'b ArwenBigInt> for &'a ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
* operator.source§fn mul(self, other: &ArwenBigInt) -> ArwenBigInt
fn mul(self, other: &ArwenBigInt) -> ArwenBigInt
Performs the
* operation. Read moresource§impl Mul for ArwenBigInt
impl Mul for ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
* operator.source§fn mul(self, other: ArwenBigInt) -> ArwenBigInt
fn mul(self, other: ArwenBigInt) -> ArwenBigInt
Performs the
* operation. Read moresource§impl MulAssign<&ArwenBigInt> for ArwenBigInt
impl MulAssign<&ArwenBigInt> for ArwenBigInt
source§fn mul_assign(&mut self, other: &ArwenBigInt)
fn mul_assign(&mut self, other: &ArwenBigInt)
Performs the
*= operation. Read moresource§impl MulAssign for ArwenBigInt
impl MulAssign for ArwenBigInt
source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moresource§impl Neg for ArwenBigInt
impl Neg for ArwenBigInt
source§impl NestedDecode for ArwenBigInt
impl NestedDecode for ArwenBigInt
source§fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
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
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
impl NestedEncode for ArwenBigInt
source§fn dep_encode<O: NestedEncodeOutput>(
&self,
dest: &mut O
) -> Result<(), EncodeError>
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) -> !
)
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
impl Ord for ArwenBigInt
source§impl PartialEq<i64> for ArwenBigInt
impl PartialEq<i64> for ArwenBigInt
source§impl PartialEq for ArwenBigInt
impl PartialEq for ArwenBigInt
source§impl PartialOrd<i64> for ArwenBigInt
impl PartialOrd<i64> for ArwenBigInt
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl PartialOrd for ArwenBigInt
impl PartialOrd for ArwenBigInt
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl<'a, 'b> Rem<&'b ArwenBigInt> for &'a ArwenBigInt
impl<'a, 'b> Rem<&'b ArwenBigInt> for &'a ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
% operator.source§fn rem(self, other: &ArwenBigInt) -> ArwenBigInt
fn rem(self, other: &ArwenBigInt) -> ArwenBigInt
Performs the
% operation. Read moresource§impl Rem for ArwenBigInt
impl Rem for ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
% operator.source§fn rem(self, other: ArwenBigInt) -> ArwenBigInt
fn rem(self, other: ArwenBigInt) -> ArwenBigInt
Performs the
% operation. Read moresource§impl RemAssign<&ArwenBigInt> for ArwenBigInt
impl RemAssign<&ArwenBigInt> for ArwenBigInt
source§fn rem_assign(&mut self, other: &ArwenBigInt)
fn rem_assign(&mut self, other: &ArwenBigInt)
Performs the
%= operation. Read moresource§impl RemAssign for ArwenBigInt
impl RemAssign for ArwenBigInt
source§fn rem_assign(&mut self, other: Self)
fn rem_assign(&mut self, other: Self)
Performs the
%= operation. Read moresource§impl<'a, 'b> Sub<&'b ArwenBigInt> for &'a ArwenBigInt
impl<'a, 'b> Sub<&'b ArwenBigInt> for &'a ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
- operator.source§fn sub(self, other: &ArwenBigInt) -> ArwenBigInt
fn sub(self, other: &ArwenBigInt) -> ArwenBigInt
Performs the
- operation. Read moresource§impl Sub for ArwenBigInt
impl Sub for ArwenBigInt
§type Output = ArwenBigInt
type Output = ArwenBigInt
The resulting type after applying the
- operator.source§fn sub(self, other: ArwenBigInt) -> ArwenBigInt
fn sub(self, other: ArwenBigInt) -> ArwenBigInt
Performs the
- operation. Read moresource§impl SubAssign<&ArwenBigInt> for ArwenBigInt
impl SubAssign<&ArwenBigInt> for ArwenBigInt
source§fn sub_assign(&mut self, other: &ArwenBigInt)
fn sub_assign(&mut self, other: &ArwenBigInt)
Performs the
-= operation. Read moresource§impl SubAssign for ArwenBigInt
impl SubAssign for ArwenBigInt
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresource§impl TopDecode for ArwenBigInt
impl TopDecode for ArwenBigInt
source§fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
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
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
impl TopEncode for ArwenBigInt
source§fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
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) -> !
)
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
impl TypeAbi for ArwenBigInt
fn type_name() -> String
source§fn provide_type_descriptions<TDC>(accumulator: &mut TDC)where
TDC: TypeDescriptionContainer,
fn provide_type_descriptions<TDC>(accumulator: &mut TDC)where
TDC: TypeDescriptionContainer,
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.
impl Eq for ArwenBigInt
Auto Trait Implementations§
impl RefUnwindSafe for ArwenBigInt
impl Send for ArwenBigInt
impl Sync for ArwenBigInt
impl Unpin for ArwenBigInt
impl UnwindSafe for ArwenBigInt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more