mod.rs 2.08 KB
Newer Older
1
// Copyright 2018-2021 Parity Technologies (UK) Ltd.
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![allow(dead_code)]

mod attrs;
18
mod blake2;
19
mod chain_extension;
20
21
mod config;
mod contract;
22
23
mod idents_lint;
mod ink_test;
24
25
26
27
mod item;
mod item_impl;
mod item_mod;
mod selector;
28
29
mod trait_def;
pub mod utils;
30

31
32
33
34
35
36
37
38
/// Marker types and definitions.
pub mod marker {
    pub use super::selector::{
        SelectorBytes,
        SelectorId,
    };
}

39
40
41
42
43
44
45
46
47
48
#[cfg(test)]
use self::attrs::Attribute;

use self::attrs::{
    contains_ink_attributes,
    first_ink_attribute,
    partition_attributes,
    sanitize_attributes,
    AttributeArg,
    AttributeArgKind,
49
    AttributeFrag,
50
51
52
53
    InkAttribute,
};
pub use self::{
    attrs::Namespace,
54
55
56
57
    blake2::{
        blake2b_256,
        Blake2x256Macro,
    },
58
59
60
61
62
    chain_extension::{
        ChainExtension,
        ChainExtensionMethod,
        ExtensionId,
    },
63
64
    config::Config,
    contract::Contract,
65
    ink_test::InkTest,
66
67
68
69
70
71
72
73
    item::{
        Event,
        InkItem,
        Item,
        Storage,
    },
    item_impl::{
        Callable,
74
        CallableKind,
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
        CallableWithSelector,
        Constructor,
        ImplItem,
        InputsIter,
        ItemImpl,
        IterConstructors,
        IterMessages,
        Message,
        Receiver,
        Visibility,
    },
    item_mod::{
        ItemMod,
        IterEvents,
        IterItemImpls,
    },
91
92
93
94
    selector::{
        Selector,
        SelectorMacro,
    },
95
96
97
98
99
100
101
    trait_def::{
        InkTrait,
        InkTraitConstructor,
        InkTraitItem,
        InkTraitMessage,
        IterInkTraitItems,
    },
102
};