ifaces/
lib.rs

1// Collection of the standard RGB smart contract interface
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5// Designed in 2019-2025 by RGB Consortium members & contributors
6// Written in 2024-2025 by Dr Maxim Orlovsky <orlovsky@lnp-bp.org>
7//
8// Copyright (C) 2019-2025 RGB Consortium members & contributors
9// All rights under the above copyrights are reserved.
10//
11// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
12// in compliance with the License. You may obtain a copy of the License at
13//
14//        http://www.apache.org/licenses/LICENSE-2.0
15//
16// Unless required by applicable law or agreed to in writing, software distributed under the License
17// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
18// or implied. See the License for the specific language governing permissions and limitations under
19// the License.
20
21#![cfg_attr(docsrs, feature(doc_auto_cfg))]
22
23#[macro_use]
24extern crate amplify;
25#[macro_use]
26extern crate strict_encoding;
27#[cfg(feature = "serde")]
28#[macro_use]
29extern crate serde;
30
31mod fungible;
32mod nft;
33mod types;
34mod names;
35mod por;
36
37pub use fungible::*;
38pub use names::{AssetName, Details, Ticker};
39pub use nft::*;
40pub use por::*;
41pub use types::{rgb21_stl, rgb_contract_stl, CommonTypes, Rgb21Types, LIB_ID_RGB21, LIB_ID_RGB_INTERFACES};
42
43pub const LIB_NAME_RGB_CONTRACT: &str = "RGBContract";
44pub const LIB_NAME_RGB21: &str = "RGB21";