Struct cw20_escrow::msg::CreateMsg [−][src]
pub struct CreateMsg {
pub id: String,
pub arbiter: String,
pub recipient: String,
pub end_height: Option<u64>,
pub end_time: Option<u64>,
pub cw20_whitelist: Option<Vec<String>>,
}
Fields
id: String
id is a human-readable name for the escrow to use later 3-20 bytes of utf-8 text
arbiter: String
arbiter can decide to approve or refund the escrow
recipient: String
if approved, funds go to the recipient
end_height: Option<u64>
When end height set and block height exceeds this value, the escrow is expired. Once an escrow is expired, it can be returned to the original funder (via “refund”).
end_time: Option<u64>
When end time (in seconds since epoch 00:00:00 UTC on 1 January 1970) is set and block time exceeds this value, the escrow is expired. Once an escrow is expired, it can be returned to the original funder (via “refund”).
cw20_whitelist: Option<Vec<String>>
Besides any possible tokens sent with the CreateMsg, this is a list of all cw20 token addresses that are accepted by the escrow during a top-up. This is required to avoid a DoS attack by topping-up with an invalid cw20 contract. See https://github.com/CosmWasm/cosmwasm-plus/issues/19
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateMsg
impl UnwindSafe for CreateMsg
Blanket Implementations
Mutably borrows from an owned value. Read more