pub struct RustBigInt(pub BigInt);Tuple Fields§
§0: BigIntImplementations§
Trait Implementations§
Source§impl<'a, 'b> Add<&'b RustBigInt> for &'a RustBigInt
impl<'a, 'b> Add<&'b RustBigInt> for &'a RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
+ operator.Source§fn add(self, other: &RustBigInt) -> RustBigInt
fn add(self, other: &RustBigInt) -> RustBigInt
Performs the
+ operation. Read moreSource§impl Add for RustBigInt
impl Add for RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
+ operator.Source§fn add(self, other: RustBigInt) -> RustBigInt
fn add(self, other: RustBigInt) -> RustBigInt
Performs the
+ operation. Read moreSource§impl AddAssign<&RustBigInt> for RustBigInt
impl AddAssign<&RustBigInt> for RustBigInt
Source§fn add_assign(&mut self, other: &RustBigInt)
fn add_assign(&mut self, other: &RustBigInt)
Performs the
+= operation. Read moreSource§impl AddAssign for RustBigInt
impl AddAssign for RustBigInt
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl BigIntApi<RustBigUint> for RustBigInt
impl BigIntApi<RustBigUint> for RustBigInt
Source§impl Clone for RustBigInt
impl Clone for RustBigInt
Source§impl ContractHookApi<RustBigInt, RustBigUint> for TxContext
impl ContractHookApi<RustBigInt, RustBigUint> for TxContext
fn get_sc_address(&self) -> Address
fn get_owner_address(&self) -> Address
fn get_caller(&self) -> Address
fn get_balance(&self, address: &Address) -> RustBigUint
fn storage_store_slice_u8(&self, key: &[u8], value: &[u8])
fn storage_load_vec_u8(&self, key: &[u8]) -> Vec<u8> ⓘ
fn storage_load_len(&self, key: &[u8]) -> usize
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: &RustBigUint)
fn storage_load_big_uint(&self, key: &[u8]) -> RustBigUint
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: &RustBigInt)
fn storage_load_big_int(&self, key: &[u8]) -> RustBigInt
fn storage_store_i64(&self, key: &[u8], value: i64)
fn storage_store_u64(&self, key: &[u8], value: u64)
fn storage_load_i64(&self, key: &[u8]) -> i64
fn storage_load_u64(&self, key: &[u8]) -> u64
fn get_call_value_big_uint(&self) -> RustBigUint
fn get_dcdt_value_big_uint(&self) -> RustBigUint
fn get_dcdt_token_name(&self) -> Vec<u8> ⓘ
fn send_tx(&self, to: &Address, amount: &RustBigUint, _data: &[u8])
fn async_call(&self, to: &Address, amount: &RustBigUint, data: &[u8])
fn deploy_contract( &self, _gas: u64, _amount: &RustBigUint, _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_boxed_bytes(&self, key: &[u8]) -> BoxedBytes
fn storage_load_cumulated_validator_reward(&self) -> BigUint
Source§impl ContractIOApi<RustBigInt, RustBigUint> for TxContext
impl ContractIOApi<RustBigInt, RustBigUint> for TxContext
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_index: i32) -> RustBigUint
fn get_argument_big_int(&self, arg_index: i32) -> RustBigInt
fn get_argument_big_uint_raw(&self, _arg_index: i32) -> i32
fn get_argument_big_int_raw(&self, _arg_index: i32) -> i32
fn get_argument_i64(&self, arg_index: i32) -> i64
fn get_argument_u64(&self, arg_index: i32) -> u64
fn finish_slice_u8(&self, slice: &[u8])
fn finish_big_int(&self, bi: &RustBigInt)
fn finish_big_uint(&self, bu: &RustBigUint)
fn finish_big_int_raw(&self, _handle: i32)
fn finish_big_uint_raw(&self, _handle: i32)
fn finish_i64(&self, value: i64)
fn finish_u64(&self, value: u64)
fn signal_error(&self, message: &[u8]) -> !
fn write_log(&self, _topics: &[[u8; 32]], _data: &[u8])
fn check_num_arguments(&self, expected: i32)
Source§impl Debug for RustBigInt
impl Debug for RustBigInt
Source§impl<'a, 'b> Div<&'b RustBigInt> for &'a RustBigInt
impl<'a, 'b> Div<&'b RustBigInt> for &'a RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
/ operator.Source§fn div(self, other: &RustBigInt) -> RustBigInt
fn div(self, other: &RustBigInt) -> RustBigInt
Performs the
/ operation. Read moreSource§impl Div for RustBigInt
impl Div for RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
/ operator.Source§fn div(self, other: RustBigInt) -> RustBigInt
fn div(self, other: RustBigInt) -> RustBigInt
Performs the
/ operation. Read moreSource§impl DivAssign<&RustBigInt> for RustBigInt
impl DivAssign<&RustBigInt> for RustBigInt
Source§fn div_assign(&mut self, other: &RustBigInt)
fn div_assign(&mut self, other: &RustBigInt)
Performs the
/= operation. Read moreSource§impl DivAssign for RustBigInt
impl DivAssign for RustBigInt
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl From<BigInt> for RustBigInt
impl From<BigInt> for RustBigInt
Source§impl From<RustBigUint> for RustBigInt
impl From<RustBigUint> for RustBigInt
Source§fn from(item: RustBigUint) -> Self
fn from(item: RustBigUint) -> Self
Converts to this type from the input type.
Source§impl From<i32> for RustBigInt
impl From<i32> for RustBigInt
Source§impl From<i64> for RustBigInt
impl From<i64> for RustBigInt
Source§impl<'a, 'b> Mul<&'b RustBigInt> for &'a RustBigInt
impl<'a, 'b> Mul<&'b RustBigInt> for &'a RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
* operator.Source§fn mul(self, other: &RustBigInt) -> RustBigInt
fn mul(self, other: &RustBigInt) -> RustBigInt
Performs the
* operation. Read moreSource§impl Mul for RustBigInt
impl Mul for RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
* operator.Source§fn mul(self, other: RustBigInt) -> RustBigInt
fn mul(self, other: RustBigInt) -> RustBigInt
Performs the
* operation. Read moreSource§impl MulAssign<&RustBigInt> for RustBigInt
impl MulAssign<&RustBigInt> for RustBigInt
Source§fn mul_assign(&mut self, other: &RustBigInt)
fn mul_assign(&mut self, other: &RustBigInt)
Performs the
*= operation. Read moreSource§impl MulAssign for RustBigInt
impl MulAssign for RustBigInt
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl Neg for RustBigInt
impl Neg for RustBigInt
Source§impl NestedDecode for RustBigInt
impl NestedDecode for RustBigInt
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 RustBigInt
impl NestedEncode for RustBigInt
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 RustBigInt
impl Ord for RustBigInt
Source§impl PartialEq<i64> for RustBigInt
impl PartialEq<i64> for RustBigInt
Source§impl PartialEq for RustBigInt
impl PartialEq for RustBigInt
Source§impl PartialOrd<i64> for RustBigInt
impl PartialOrd<i64> for RustBigInt
Source§impl PartialOrd for RustBigInt
impl PartialOrd for RustBigInt
Source§impl<'a, 'b> Rem<&'b RustBigInt> for &'a RustBigInt
impl<'a, 'b> Rem<&'b RustBigInt> for &'a RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
% operator.Source§fn rem(self, other: &RustBigInt) -> RustBigInt
fn rem(self, other: &RustBigInt) -> RustBigInt
Performs the
% operation. Read moreSource§impl Rem for RustBigInt
impl Rem for RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
% operator.Source§fn rem(self, other: RustBigInt) -> RustBigInt
fn rem(self, other: RustBigInt) -> RustBigInt
Performs the
% operation. Read moreSource§impl RemAssign<&RustBigInt> for RustBigInt
impl RemAssign<&RustBigInt> for RustBigInt
Source§fn rem_assign(&mut self, other: &RustBigInt)
fn rem_assign(&mut self, other: &RustBigInt)
Performs the
%= operation. Read moreSource§impl RemAssign for RustBigInt
impl RemAssign for RustBigInt
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 RustBigInt> for &'a RustBigInt
impl<'a, 'b> Sub<&'b RustBigInt> for &'a RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
- operator.Source§fn sub(self, other: &RustBigInt) -> RustBigInt
fn sub(self, other: &RustBigInt) -> RustBigInt
Performs the
- operation. Read moreSource§impl Sub for RustBigInt
impl Sub for RustBigInt
Source§type Output = RustBigInt
type Output = RustBigInt
The resulting type after applying the
- operator.Source§fn sub(self, other: RustBigInt) -> RustBigInt
fn sub(self, other: RustBigInt) -> RustBigInt
Performs the
- operation. Read moreSource§impl SubAssign<&RustBigInt> for RustBigInt
impl SubAssign<&RustBigInt> for RustBigInt
Source§fn sub_assign(&mut self, other: &RustBigInt)
fn sub_assign(&mut self, other: &RustBigInt)
Performs the
-= operation. Read moreSource§impl SubAssign for RustBigInt
impl SubAssign for RustBigInt
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl TopDecode for RustBigInt
impl TopDecode for RustBigInt
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 RustBigInt
impl TopEncode for RustBigInt
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,
c: ExitCtx,
exit: fn(ExitCtx, EncodeError) -> !,
)
fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>( &self, output: O, c: ExitCtx, exit: 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 RustBigInt
impl TypeAbi for RustBigInt
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 RustBigInt
Auto Trait Implementations§
impl Freeze for RustBigInt
impl RefUnwindSafe for RustBigInt
impl Send for RustBigInt
impl Sync for RustBigInt
impl Unpin for RustBigInt
impl UnwindSafe for RustBigInt
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