ContractGrant a granted permission for a single contract Since: wasmd 0.30

interface ContractGrant {
    contract: string;
    filter?:
        | Any
        | AllowAllMessagesFilter
        | AcceptedMessageKeysFilter
        | AcceptedMessagesFilter;
    limit?:
        | Any
        | MaxCallsLimit
        | MaxFundsLimit
        | CombinedLimit;
}

Properties

contract: string

Contract is the bech32 address of the smart contract

filter?:
    | Any
    | AllowAllMessagesFilter
    | AcceptedMessageKeysFilter
    | AcceptedMessagesFilter

Filter define more fine-grained control on the message payload passed to the contract in the operation. When no filter applies on execution, the operation is prohibited.

limit?:
    | Any
    | MaxCallsLimit
    | MaxFundsLimit
    | CombinedLimit

Limit defines execution limits that are enforced and updated when the grant is applied. When the limit lapsed the grant is removed.