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
/* * SPDX-License-Identifier: Apache-2.0 */ //! Main library module //! //! The purpose of this is to do register the contracts. //! //! Other setup can take place here but do so with //! caution. Any failure will terminate the container //! and there is limited scope for logging at stage in //! the lifecyle mod contracts; pub use crate::contracts::AssetTransfer; pub use crate::contracts::AssetTransferQuery; mod types; pub use crate::types::Asset; // The macro to indicate the function that will be used to register the contracts. // if there is more than one, use a comma separated list //, AssetTransferQuery::new // Provide the function that will create a new instance of the contract strcut // More than one contract struct can be provided. fabric_contract::register!( AssetTransfer::new );