1#[cfg(not(feature = "std"))]
7core::compile_error!(
8 r#"Please enable `cosmwasm-std`'s `std` feature, as we might move existing functionality to that feature in the future.
9Builds without the std feature are currently not expected to work. If you need no_std support see #1484.
10"#
11);
12
13#[macro_use]
14extern crate alloc;
15
16mod __internal;
19mod addresses;
20mod assertions;
21mod binary;
22mod checksum;
23mod coin;
24mod coins;
25mod conversion;
26mod deps;
27mod encoding;
28mod errors;
29mod forward_ref;
30mod hex_binary;
31mod ibc;
32mod ibc2;
33mod import_helpers;
34#[cfg(feature = "iterator")]
35mod iterator;
36mod math;
37mod metadata;
38mod msgpack;
39mod never;
40mod pagination;
41mod query;
42mod results;
43mod sections;
44mod serde;
45mod stdack;
46mod timestamp;
47mod traits;
48mod types;
49mod utils;
50
51pub(crate) mod prelude;
53
54pub mod storage_keys;
58
59pub use crate::addresses::{
60 instantiate2_address, instantiate2_address_impl, Addr, CanonicalAddr, Instantiate2AddressError,
61};
62pub use crate::binary::Binary;
63pub use crate::checksum::{Checksum, ChecksumError};
64pub use crate::coin::{coin, coins, has_coins, Coin};
65pub use crate::coins::Coins;
66pub use crate::deps::{Deps, DepsMut, OwnedDeps};
67pub use crate::encoding::{from_base64, from_hex, to_base64, to_hex};
68pub use crate::errors::{
69 AggregationError, CheckedFromRatioError, CheckedMultiplyFractionError,
70 CheckedMultiplyRatioError, CoinFromStrError, CoinsError, ConversionOverflowError,
71 DivideByZeroError, DivisionError, ErrorKind as StdErrorKind, OverflowError, OverflowOperation,
72 PairingEqualityError, RecoverPubkeyError, RoundDownOverflowError, RoundUpOverflowError,
73 StdError, StdResult, StdResultExt, SystemError, VerificationError,
74};
75pub use crate::hex_binary::HexBinary;
76pub use crate::ibc::IbcChannelOpenResponse;
77pub use crate::ibc::{
78 Ibc3ChannelOpenResponse, IbcAckCallbackMsg, IbcAcknowledgement, IbcBasicResponse,
79 IbcCallbackRequest, IbcChannel, IbcChannelCloseMsg, IbcChannelConnectMsg, IbcChannelOpenMsg,
80 IbcDestinationCallbackMsg, IbcDstCallback, IbcEndpoint, IbcMsg, IbcOrder, IbcPacket,
81 IbcPacketAckMsg, IbcPacketReceiveMsg, IbcPacketTimeoutMsg, IbcReceiveResponse,
82 IbcSourceCallbackMsg, IbcSrcCallback, IbcTimeout, IbcTimeoutBlock, IbcTimeoutCallbackMsg,
83 IbcTransferCallback, TransferMsgBuilder,
84};
85pub use crate::ibc2::{
86 Ibc2Msg, Ibc2PacketAckMsg, Ibc2PacketReceiveMsg, Ibc2PacketSendMsg, Ibc2PacketTimeoutMsg,
87 Ibc2Payload,
88};
89#[cfg(feature = "iterator")]
90pub use crate::iterator::{Order, Record};
91pub use crate::math::{
92 Decimal, Decimal256, Decimal256RangeExceeded, DecimalRangeExceeded, Fraction, Int128, Int256,
93 Int512, Int64, Isqrt, SignedDecimal, SignedDecimal256, SignedDecimal256RangeExceeded,
94 SignedDecimalRangeExceeded, Uint128, Uint256, Uint512, Uint64,
95};
96pub use crate::metadata::{DenomMetadata, DenomUnit};
97pub use crate::msgpack::{from_msgpack, to_msgpack_binary, to_msgpack_vec};
98pub use crate::never::Never;
99pub use crate::pagination::PageRequest;
100pub use crate::query::{
101 AllDelegationsResponse, AllDenomMetadataResponse, AllValidatorsResponse, BalanceResponse,
102 BankQuery, BondedDenomResponse, ChannelResponse, CodeInfoResponse, ContractInfoResponse,
103 CustomQuery, DecCoin, Delegation, DelegationResponse, DelegationRewardsResponse,
104 DelegationTotalRewardsResponse, DelegatorReward, DelegatorValidatorsResponse,
105 DelegatorWithdrawAddressResponse, DenomMetadataResponse, DistributionQuery, FullDelegation,
106 GrpcQuery, IbcQuery, PortIdResponse, QueryRequest, RawRangeEntry, RawRangeResponse,
107 StakingQuery, SupplyResponse, Validator, ValidatorMetadata, ValidatorResponse, WasmQuery,
108};
109
110#[cfg(all(feature = "stargate", feature = "cosmwasm_1_2"))]
111pub use crate::results::WeightedVoteOption;
112pub use crate::results::{
113 attr, wasm_execute, wasm_instantiate, AnyMsg, Attribute, BankMsg, ContractResult, CosmosMsg,
114 CustomMsg, Empty, Event, MsgResponse, QueryResponse, Reply, ReplyOn, Response, SubMsg,
115 SubMsgResponse, SubMsgResult, SystemResult, WasmMsg,
116};
117#[cfg(feature = "staking")]
118pub use crate::results::{DistributionMsg, StakingMsg};
119#[cfg(feature = "stargate")]
120pub use crate::results::{GovMsg, VoteOption};
121pub use crate::serde::{from_json, to_json_binary, to_json_string, to_json_vec};
122pub use crate::stdack::StdAck;
123pub use crate::timestamp::Timestamp;
124pub use crate::traits::{Api, HashFunction, Querier, QuerierResult, QuerierWrapper, Storage};
125pub use crate::types::{BlockInfo, ContractInfo, Env, MessageInfo, MigrateInfo, TransactionInfo};
126
127#[cfg(all(feature = "exports", target_arch = "wasm32"))]
132mod exports;
133
134#[cfg(all(feature = "exports", target_arch = "wasm32", feature = "cosmwasm_2_2"))]
135pub use crate::exports::do_migrate_with_info;
136#[cfg(all(feature = "exports", target_arch = "wasm32"))]
137pub use crate::exports::{
138 do_execute, do_ibc_destination_callback, do_ibc_source_callback, do_instantiate, do_migrate,
139 do_query, do_reply, do_sudo,
140};
141#[cfg(all(feature = "exports", target_arch = "wasm32", feature = "ibc2"))]
142pub use crate::exports::{
143 do_ibc2_packet_ack, do_ibc2_packet_receive, do_ibc2_packet_send, do_ibc2_packet_timeout,
144};
145#[cfg(all(feature = "exports", target_arch = "wasm32", feature = "stargate"))]
146pub use crate::exports::{
147 do_ibc_channel_close, do_ibc_channel_connect, do_ibc_channel_open, do_ibc_packet_ack,
148 do_ibc_packet_receive, do_ibc_packet_timeout,
149};
150
151#[cfg(not(target_arch = "wasm32"))]
154pub mod testing;
155
156pub use cosmwasm_core::{BLS12_381_G1_GENERATOR, BLS12_381_G2_GENERATOR};
157
158pub use cosmwasm_derive::entry_point;