1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use elrond_codec::TryStaticCast;
use crate::api::ErrorApi;
use super::{BigIntApi, EllipticCurveApi, ManagedBufferApi};
pub type Handle = i32;
pub trait ManagedTypeApi:
TryStaticCast + BigIntApi + EllipticCurveApi + ManagedBufferApi + ErrorApi + Clone + 'static
{
fn mb_to_big_int_unsigned(&self, buffer_handle: Handle) -> Handle;
fn mb_to_big_int_signed(&self, buffer_handle: Handle) -> Handle;
fn mb_from_big_int_unsigned(&self, big_int_handle: Handle) -> Handle;
fn mb_from_big_int_signed(&self, big_int_handle: Handle) -> Handle;
}