import { AccessConfig } from "./types"; import { Any } from "../../../google/protobuf/any"; import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { JsonSafe } from "../../../json-safe"; import { DeepPartial, Exact } from "../../../helpers"; export declare const protobufPackage = "cosmwasm.wasm.v1"; /** * StoreCodeAuthorization defines authorization for wasm code upload. * Since: wasmd 0.42 */ export interface StoreCodeAuthorization { /** Grants for code upload */ grants: CodeGrant[]; } /** * ContractExecutionAuthorization defines authorization for wasm execute. * Since: wasmd 0.30 */ export interface ContractExecutionAuthorization { /** Grants for contract executions */ grants: ContractGrant[]; } /** * ContractMigrationAuthorization defines authorization for wasm contract * migration. Since: wasmd 0.30 */ export interface ContractMigrationAuthorization { /** Grants for contract migrations */ grants: ContractGrant[]; } /** CodeGrant a granted permission for a single code */ export interface CodeGrant { /** * CodeHash is the unique identifier created by wasmvm * Wildcard "*" is used to specify any kind of grant. */ codeHash: Uint8Array; /** * InstantiatePermission is the superset access control to apply * on contract creation. * Optional */ instantiatePermission?: AccessConfig; } /** * ContractGrant a granted permission for a single contract * Since: wasmd 0.30 */ export interface ContractGrant { /** Contract is the bech32 address of the smart contract */ contract: string; /** * Limit defines execution limits that are enforced and updated when the grant * is applied. When the limit lapsed the grant is removed. */ limit?: Any; /** * 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. */ filter?: Any; } /** * MaxCallsLimit limited number of calls to the contract. No funds transferable. * Since: wasmd 0.30 */ export interface MaxCallsLimit { /** Remaining number that is decremented on each execution */ remaining: bigint; } /** * MaxFundsLimit defines the maximal amounts that can be sent to the contract. * Since: wasmd 0.30 */ export interface MaxFundsLimit { /** Amounts is the maximal amount of tokens transferable to the contract. */ amounts: Coin[]; } /** * CombinedLimit defines the maximal amounts that can be sent to a contract and * the maximal number of calls executable. Both need to remain >0 to be valid. * Since: wasmd 0.30 */ export interface CombinedLimit { /** Remaining number that is decremented on each execution */ callsRemaining: bigint; /** Amounts is the maximal amount of tokens transferable to the contract. */ amounts: Coin[]; } /** * AllowAllMessagesFilter is a wildcard to allow any type of contract payload * message. * Since: wasmd 0.30 */ export interface AllowAllMessagesFilter { } /** * AcceptedMessageKeysFilter accept only the specific contract message keys in * the json object to be executed. * Since: wasmd 0.30 */ export interface AcceptedMessageKeysFilter { /** Messages is the list of unique keys */ keys: string[]; } /** * AcceptedMessagesFilter accept only the specific raw contract messages to be * executed. * Since: wasmd 0.30 */ export interface AcceptedMessagesFilter { /** Messages is the list of raw contract messages */ messages: Uint8Array[]; } export declare const StoreCodeAuthorization: { typeUrl: string; encode(message: StoreCodeAuthorization, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): StoreCodeAuthorization; fromJSON(object: any): StoreCodeAuthorization; toJSON(message: StoreCodeAuthorization): JsonSafe; fromPartial, I>>(object: I): StoreCodeAuthorization; }; export declare const ContractExecutionAuthorization: { typeUrl: string; encode(message: ContractExecutionAuthorization, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ContractExecutionAuthorization; fromJSON(object: any): ContractExecutionAuthorization; toJSON(message: ContractExecutionAuthorization): JsonSafe; fromPartial, I>>(object: I): ContractExecutionAuthorization; }; export declare const ContractMigrationAuthorization: { typeUrl: string; encode(message: ContractMigrationAuthorization, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ContractMigrationAuthorization; fromJSON(object: any): ContractMigrationAuthorization; toJSON(message: ContractMigrationAuthorization): JsonSafe; fromPartial, I>>(object: I): ContractMigrationAuthorization; }; export declare const CodeGrant: { typeUrl: string; encode(message: CodeGrant, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CodeGrant; fromJSON(object: any): CodeGrant; toJSON(message: CodeGrant): JsonSafe; fromPartial, I>>(object: I): CodeGrant; }; export declare const ContractGrant: { typeUrl: string; encode(message: ContractGrant, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ContractGrant; fromJSON(object: any): ContractGrant; toJSON(message: ContractGrant): JsonSafe; fromPartial, I>>(object: I): ContractGrant; }; export declare const MaxCallsLimit: { typeUrl: string; encode(message: MaxCallsLimit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MaxCallsLimit; fromJSON(object: any): MaxCallsLimit; toJSON(message: MaxCallsLimit): JsonSafe; fromPartial, I>>(object: I): MaxCallsLimit; }; export declare const MaxFundsLimit: { typeUrl: string; encode(message: MaxFundsLimit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MaxFundsLimit; fromJSON(object: any): MaxFundsLimit; toJSON(message: MaxFundsLimit): JsonSafe; fromPartial, I>>(object: I): MaxFundsLimit; }; export declare const CombinedLimit: { typeUrl: string; encode(message: CombinedLimit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): CombinedLimit; fromJSON(object: any): CombinedLimit; toJSON(message: CombinedLimit): JsonSafe; fromPartial, I>>(object: I): CombinedLimit; }; export declare const AllowAllMessagesFilter: { typeUrl: string; encode(_: AllowAllMessagesFilter, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AllowAllMessagesFilter; fromJSON(_: any): AllowAllMessagesFilter; toJSON(_: AllowAllMessagesFilter): JsonSafe; fromPartial, I>>(_: I): AllowAllMessagesFilter; }; export declare const AcceptedMessageKeysFilter: { typeUrl: string; encode(message: AcceptedMessageKeysFilter, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AcceptedMessageKeysFilter; fromJSON(object: any): AcceptedMessageKeysFilter; toJSON(message: AcceptedMessageKeysFilter): JsonSafe; fromPartial, I>>(object: I): AcceptedMessageKeysFilter; }; export declare const AcceptedMessagesFilter: { typeUrl: string; encode(message: AcceptedMessagesFilter, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AcceptedMessagesFilter; fromJSON(object: any): AcceptedMessagesFilter; toJSON(message: AcceptedMessagesFilter): JsonSafe; fromPartial, I>>(object: I): AcceptedMessagesFilter; };