ink_env/call/mod.rs
1// Copyright (C) Use Ink (UK) Ltd.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Utilities to call or instantiate contracts on the chain.
16
17mod call_builder;
18mod common;
19mod create_builder;
20mod execution;
21mod selector;
22
23/// Utility types for the cross-contract calling API.
24pub mod utils {
25 pub use super::{
26 common::{
27 DecodeMessageResult,
28 ReturnType,
29 Set,
30 Unset,
31 Unwrap,
32 },
33 execution::{
34 ArgsList,
35 Argument,
36 ArgumentList,
37 ArgumentListEnd,
38 EmptyArgumentList,
39 },
40 };
41}
42
43pub use self::{
44 call_builder::{
45 build_call,
46 build_call_solidity,
47 Call,
48 CallBuilder,
49 CallParams,
50 DelegateCall,
51 },
52 create_builder::{
53 build_create,
54 build_create_solidity,
55 state,
56 ConstructorReturnType,
57 CreateBuilder,
58 CreateParams,
59 FromAddr,
60 LimitParamsV2,
61 },
62 execution::{
63 Execution,
64 ExecutionInput,
65 Executor,
66 },
67 selector::Selector,
68};