multiversx_sc/abi/
type_abi_impl_big_int.rs

1use crate::codec::num_bigint::{BigInt, BigUint};
2
3use super::{TypeAbi, TypeAbiFrom, TypeName};
4
5impl TypeAbiFrom<Self> for BigUint {}
6impl TypeAbiFrom<&Self> for BigUint {}
7
8impl TypeAbi for BigUint {
9    type Unmanaged = Self;
10
11    fn type_name() -> TypeName {
12        TypeName::from("BigUint")
13    }
14
15    fn type_name_rust() -> TypeName {
16        TypeName::from("num_bigint::BigUint")
17    }
18}
19
20impl TypeAbiFrom<Self> for BigInt {}
21impl TypeAbiFrom<&Self> for BigInt {}
22
23impl TypeAbi for BigInt {
24    type Unmanaged = Self;
25
26    fn type_name() -> TypeName {
27        TypeName::from("BigInt")
28    }
29
30    fn type_name_rust() -> TypeName {
31        TypeName::from("num_bigint::BigInt")
32    }
33}