Struct dharitri_wasm_node::ArwenBigUint
source · pub struct ArwenBigUint {
pub handle: i32,
}Fields§
§handle: i32Implementations§
source§impl ArwenBigUint
impl ArwenBigUint
pub fn from_i64(value: i64) -> ArwenBigUint
Trait Implementations§
source§impl<'a, 'b> Add<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> Add<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
+ operator.source§fn add(self, other: &ArwenBigUint) -> ArwenBigUint
fn add(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
+ operation. Read moresource§impl Add for ArwenBigUint
impl Add for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
+ operator.source§fn add(self, other: ArwenBigUint) -> ArwenBigUint
fn add(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
+ operation. Read moresource§impl AddAssign<&ArwenBigUint> for ArwenBigUint
impl AddAssign<&ArwenBigUint> for ArwenBigUint
source§fn add_assign(&mut self, other: &ArwenBigUint)
fn add_assign(&mut self, other: &ArwenBigUint)
Performs the
+= operation. Read moresource§impl AddAssign for ArwenBigUint
impl AddAssign for ArwenBigUint
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 BigUintApi for ArwenBigUint
impl BigUintApi for ArwenBigUint
fn byte_length(&self) -> i32
fn copy_to_slice_big_endian(&self, slice: &mut [u8]) -> i32
fn copy_to_array_big_endian_pad_right(&self, target: &mut [u8; 32])
fn to_bytes_be(&self) -> Vec<u8>
fn to_bytes_be_pad_right(&self, nr_bytes: usize) -> Option<Vec<u8>>
fn from_bytes_be(bytes: &[u8]) -> Self
fn zero() -> Self
source§impl<'a, 'b> BitAnd<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> BitAnd<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
& operator.source§fn bitand(self, other: &ArwenBigUint) -> ArwenBigUint
fn bitand(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
& operation. Read moresource§impl BitAnd for ArwenBigUint
impl BitAnd for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
& operator.source§fn bitand(self, other: ArwenBigUint) -> ArwenBigUint
fn bitand(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
& operation. Read moresource§impl BitAndAssign<&ArwenBigUint> for ArwenBigUint
impl BitAndAssign<&ArwenBigUint> for ArwenBigUint
source§fn bitand_assign(&mut self, other: &ArwenBigUint)
fn bitand_assign(&mut self, other: &ArwenBigUint)
Performs the
&= operation. Read moresource§impl BitAndAssign for ArwenBigUint
impl BitAndAssign for ArwenBigUint
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moresource§impl<'a, 'b> BitOr<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> BitOr<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
| operator.source§fn bitor(self, other: &ArwenBigUint) -> ArwenBigUint
fn bitor(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
| operation. Read moresource§impl BitOr for ArwenBigUint
impl BitOr for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
| operator.source§fn bitor(self, other: ArwenBigUint) -> ArwenBigUint
fn bitor(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
| operation. Read moresource§impl BitOrAssign<&ArwenBigUint> for ArwenBigUint
impl BitOrAssign<&ArwenBigUint> for ArwenBigUint
source§fn bitor_assign(&mut self, other: &ArwenBigUint)
fn bitor_assign(&mut self, other: &ArwenBigUint)
Performs the
|= operation. Read moresource§impl BitOrAssign for ArwenBigUint
impl BitOrAssign for ArwenBigUint
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moresource§impl<'a, 'b> BitXor<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> BitXor<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
^ operator.source§fn bitxor(self, other: &ArwenBigUint) -> ArwenBigUint
fn bitxor(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
^ operation. Read moresource§impl BitXor for ArwenBigUint
impl BitXor for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
^ operator.source§fn bitxor(self, other: ArwenBigUint) -> ArwenBigUint
fn bitxor(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
^ operation. Read moresource§impl BitXorAssign<&ArwenBigUint> for ArwenBigUint
impl BitXorAssign<&ArwenBigUint> for ArwenBigUint
source§fn bitxor_assign(&mut self, other: &ArwenBigUint)
fn bitxor_assign(&mut self, other: &ArwenBigUint)
Performs the
^= operation. Read moresource§impl BitXorAssign for ArwenBigUint
impl BitXorAssign for ArwenBigUint
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moresource§impl Clone for ArwenBigUint
impl Clone for ArwenBigUint
source§impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
fn get_sc_address(&self) -> Address
fn get_owner_address(&self) -> Address
fn get_caller(&self) -> Address
fn get_balance(&self, address: &Address) -> ArwenBigUint
fn storage_store_slice_u8(&self, key: &[u8], value: &[u8])
fn storage_load_len(&self, key: &[u8]) -> usize
fn storage_load_vec_u8(&self, key: &[u8]) -> Vec<u8>
fn storage_load_boxed_bytes(&self, key: &[u8]) -> BoxedBytes
fn storage_store_bytes32(&self, key: &[u8], value: &[u8; 32])
fn storage_load_bytes32(&self, key: &[u8]) -> [u8; 32]
fn storage_store_big_uint(&self, key: &[u8], value: &ArwenBigUint)
fn storage_load_big_uint(&self, key: &[u8]) -> ArwenBigUint
fn storage_store_big_uint_raw(&self, key: &[u8], handle: i32)
fn storage_load_big_uint_raw(&self, key: &[u8]) -> i32
fn storage_store_big_int(&self, key: &[u8], value: &ArwenBigInt)
fn storage_load_big_int(&self, key: &[u8]) -> ArwenBigInt
fn storage_store_u64(&self, key: &[u8], value: u64)
fn storage_store_i64(&self, key: &[u8], value: i64)
fn storage_load_u64(&self, key: &[u8]) -> u64
fn storage_load_i64(&self, key: &[u8]) -> i64
fn get_call_value_big_uint(&self) -> ArwenBigUint
fn get_dct_value_big_uint(&self) -> ArwenBigUint
fn get_dct_token_name(&self) -> Vec<u8>
fn send_tx(&self, to: &Address, amount: &ArwenBigUint, data: &[u8])
fn async_call(&self, to: &Address, amount: &ArwenBigUint, data: &[u8])
fn deploy_contract( &self, gas: u64, amount: &ArwenBigUint, code: &BoxedBytes, code_metadata: CodeMetadata, arg_buffer: &ArgBuffer ) -> Address
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 sha256(&self, data: &[u8]) -> H256
fn keccak256(&self, data: &[u8]) -> H256
fn get_sc_balance(&self) -> BigUint
fn storage_load_cumulated_validator_reward(&self) -> BigUint
source§impl ContractIOApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
impl ContractIOApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
fn get_num_arguments(&self) -> i32
fn check_not_payable(&self)
fn get_argument_len(&self, arg_index: i32) -> usize
fn copy_argument_to_slice(&self, arg_index: i32, slice: &mut [u8])
fn get_argument_vec_u8(&self, arg_index: i32) -> Vec<u8>
fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes
fn get_argument_big_uint(&self, arg_id: i32) -> ArwenBigUint
fn get_argument_big_int(&self, arg_id: i32) -> ArwenBigInt
fn get_argument_big_uint_raw(&self, arg_id: i32) -> i32
fn get_argument_big_int_raw(&self, arg_id: i32) -> i32
fn get_argument_u64(&self, arg_id: i32) -> u64
fn get_argument_i64(&self, arg_id: i32) -> i64
fn finish_slice_u8(&self, slice: &[u8])
fn finish_big_int(&self, b: &ArwenBigInt)
fn finish_big_uint(&self, b: &ArwenBigUint)
fn finish_big_int_raw(&self, handle: i32)
fn finish_big_uint_raw(&self, handle: i32)
fn finish_u64(&self, value: u64)
fn finish_i64(&self, value: i64)
fn signal_error(&self, message: &[u8]) -> !
fn write_log(&self, topics: &[[u8; 32]], data: &[u8])
fn check_num_arguments(&self, expected: i32)
source§impl<'a, 'b> Div<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> Div<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
/ operator.source§fn div(self, other: &ArwenBigUint) -> ArwenBigUint
fn div(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
/ operation. Read moresource§impl Div for ArwenBigUint
impl Div for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
/ operator.source§fn div(self, other: ArwenBigUint) -> ArwenBigUint
fn div(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
/ operation. Read moresource§impl DivAssign<&ArwenBigUint> for ArwenBigUint
impl DivAssign<&ArwenBigUint> for ArwenBigUint
source§fn div_assign(&mut self, other: &ArwenBigUint)
fn div_assign(&mut self, other: &ArwenBigUint)
Performs the
/= operation. Read moresource§impl DivAssign for ArwenBigUint
impl DivAssign for ArwenBigUint
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<u32> for ArwenBigUint
impl From<u32> for ArwenBigUint
source§impl From<u64> for ArwenBigUint
impl From<u64> for ArwenBigUint
source§impl From<usize> for ArwenBigUint
impl From<usize> for ArwenBigUint
source§impl<'a, 'b> Mul<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> Mul<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
* operator.source§fn mul(self, other: &ArwenBigUint) -> ArwenBigUint
fn mul(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
* operation. Read moresource§impl Mul for ArwenBigUint
impl Mul for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
* operator.source§fn mul(self, other: ArwenBigUint) -> ArwenBigUint
fn mul(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
* operation. Read moresource§impl MulAssign<&ArwenBigUint> for ArwenBigUint
impl MulAssign<&ArwenBigUint> for ArwenBigUint
source§fn mul_assign(&mut self, other: &ArwenBigUint)
fn mul_assign(&mut self, other: &ArwenBigUint)
Performs the
*= operation. Read moresource§impl MulAssign for ArwenBigUint
impl MulAssign for ArwenBigUint
source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moresource§impl NestedDecode for ArwenBigUint
impl NestedDecode for ArwenBigUint
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 ArwenBigUint
impl NestedEncode for ArwenBigUint
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 ArwenBigUint
impl Ord for ArwenBigUint
source§impl PartialEq<u64> for ArwenBigUint
impl PartialEq<u64> for ArwenBigUint
source§impl PartialEq for ArwenBigUint
impl PartialEq for ArwenBigUint
source§impl PartialOrd<u64> for ArwenBigUint
impl PartialOrd<u64> for ArwenBigUint
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 ArwenBigUint
impl PartialOrd for ArwenBigUint
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 ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> Rem<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
% operator.source§fn rem(self, other: &ArwenBigUint) -> ArwenBigUint
fn rem(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
% operation. Read moresource§impl Rem for ArwenBigUint
impl Rem for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
% operator.source§fn rem(self, other: ArwenBigUint) -> ArwenBigUint
fn rem(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
% operation. Read moresource§impl RemAssign<&ArwenBigUint> for ArwenBigUint
impl RemAssign<&ArwenBigUint> for ArwenBigUint
source§fn rem_assign(&mut self, other: &ArwenBigUint)
fn rem_assign(&mut self, other: &ArwenBigUint)
Performs the
%= operation. Read moresource§impl RemAssign for ArwenBigUint
impl RemAssign for ArwenBigUint
source§fn rem_assign(&mut self, other: Self)
fn rem_assign(&mut self, other: Self)
Performs the
%= operation. Read moresource§impl<'a> Shl<usize> for &'a ArwenBigUint
impl<'a> Shl<usize> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
<< operator.source§impl Shl<usize> for ArwenBigUint
impl Shl<usize> for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
<< operator.source§impl ShlAssign<usize> for ArwenBigUint
impl ShlAssign<usize> for ArwenBigUint
source§fn shl_assign(&mut self, rhs: usize)
fn shl_assign(&mut self, rhs: usize)
Performs the
<<= operation. Read moresource§impl<'a> Shr<usize> for &'a ArwenBigUint
impl<'a> Shr<usize> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
>> operator.source§impl Shr<usize> for ArwenBigUint
impl Shr<usize> for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
>> operator.source§impl ShrAssign<usize> for ArwenBigUint
impl ShrAssign<usize> for ArwenBigUint
source§fn shr_assign(&mut self, rhs: usize)
fn shr_assign(&mut self, rhs: usize)
Performs the
>>= operation. Read moresource§impl<'a, 'b> Sub<&'b ArwenBigUint> for &'a ArwenBigUint
impl<'a, 'b> Sub<&'b ArwenBigUint> for &'a ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
- operator.source§fn sub(self, other: &ArwenBigUint) -> ArwenBigUint
fn sub(self, other: &ArwenBigUint) -> ArwenBigUint
Performs the
- operation. Read moresource§impl Sub for ArwenBigUint
impl Sub for ArwenBigUint
§type Output = ArwenBigUint
type Output = ArwenBigUint
The resulting type after applying the
- operator.source§fn sub(self, other: ArwenBigUint) -> ArwenBigUint
fn sub(self, other: ArwenBigUint) -> ArwenBigUint
Performs the
- operation. Read moresource§impl SubAssign<&ArwenBigUint> for ArwenBigUint
impl SubAssign<&ArwenBigUint> for ArwenBigUint
source§fn sub_assign(&mut self, other: &ArwenBigUint)
fn sub_assign(&mut self, other: &ArwenBigUint)
Performs the
-= operation. Read moresource§impl SubAssign for ArwenBigUint
impl SubAssign for ArwenBigUint
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moresource§impl TopDecode for ArwenBigUint
impl TopDecode for ArwenBigUint
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 ArwenBigUint
impl TopEncode for ArwenBigUint
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 ArwenBigUint
impl TypeAbi for ArwenBigUint
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 ArwenBigUint
Auto Trait Implementations§
impl RefUnwindSafe for ArwenBigUint
impl Send for ArwenBigUint
impl Sync for ArwenBigUint
impl Unpin for ArwenBigUint
impl UnwindSafe for ArwenBigUint
Blanket Implementations§
source§impl<T> AsyncCallArg for Twhere
T: TopEncode,
impl<T> AsyncCallArg for Twhere
T: TopEncode,
fn push_async_arg( &self, serializer: &mut HexCallDataSerializer ) -> Result<(), SCError>
fn push_async_arg_exact( &self, _serializer: &mut HexCallDataSerializer, _expected_len: usize ) -> Result<(), SCError>
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