1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// -*-Rust-*-
// Generated Code: DO NOT CHECK IN
// Generated from xdrc commit: 6ab835b07c234abb4b0b50b61d687904727a4f32
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(unused_imports)]
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(clippy::unnecessary_cast)]
use crate::*;
use core::option::Option;
use core::ops::{Deref, DerefMut};
#[cfg(feature = "std")]
use std::io::{Read, Write};
#[cfg(feature = "xdrs")]
use xdrs::*;
#[cfg(feature = "serde")]
use ::serde::{{Serialize, Deserialize}};
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "xdrs", derive(ReadXDR, WriteXDR, ConstXDRSize))]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[repr(C)]
pub struct CopyableInvokeInputs {
pub entrypoint_id: u64,
pub gas_limit: GasAmount,
pub flags: InvokeFlagSet,
// Explicit tail padding so the aggregate has no implementation-defined
// padding bytes. The RV32 syscall ABI decodes this struct by range-checking
// and copying sizeof() bytes of guest memory, which is only a
// host-layout-independent decode when every byte is a named field. Naming
// the tail keeps std::has_unique_object_representations_v true, which the
// host's by-reference syscall input path static_asserts. Ignored by the
// host; not part of the invoke semantics.
pub reserved: u32,
}
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "xdrs", derive(ReadXDR, WriteXDR, ConstXDRSize))]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
#[repr(C)]
pub struct CopyableInvokeOutputs {
pub return_buffer_len: RuntimeMemoryLength,
// The number of auth tokens the child returned. GetReturnedBuffer reports
// which of the current frame's ids they took.
pub returned_auth_token_count: u32,
// The outcome of the child frame. Only meaningful when the Invoke syscall
// returns kSyscallErrorCodeNone (i.e. a child frame actually ran):
// Return -> child returned normally; return_buffer_len bytes available
// Abort -> child manually reverted; abort buffer available
// Fault -> child trapped / ran out of gas; no return buffer
// Left untouched when the syscall returns a nonzero error code (the call
// was rejected before any child frame ran, and is a complete no-op).
pub frame_status: InvocationFrameStatusCode,
}
//
// XDR internals below this point
//