1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use super::{ErrorApi, Handle};

pub trait EndpointFinishApi: ErrorApi {
    type EndpointFinishApiImpl: EndpointFinishApiImpl;

    fn finish_api_impl() -> Self::EndpointFinishApiImpl;
}

/// Interface to only be used by code generated by the macros.
/// The smart contract code doesn't have access to these methods directly.
pub trait EndpointFinishApiImpl {
    fn finish_slice_u8(&self, slice: &[u8]);

    fn finish_big_int_raw(&self, handle: Handle);

    fn finish_big_uint_raw(&self, handle: Handle);

    fn finish_managed_buffer_raw(&self, handle: Handle);

    fn finish_u64(&self, value: u64);

    fn finish_i64(&self, value: i64);
}