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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.