From 3a6cf02c8b4a469e493fcf064eaa561ab2c1a8dc Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 28 Jan 2021 10:52:16 +0000 Subject: [PATCH] cosmwasm-stargate: Remove old codec --- .../src/codec/generated/codecimpl.d.ts | 2995 ----------------- .../src/codec/generated/codecimpl.js | 2108 ------------ packages/cosmwasm-stargate/src/codec/index.ts | 9 - .../types/codec/generated/codecimpl.d.ts | 2995 ----------------- .../cosmwasm-stargate/types/codec/index.d.ts | 1 - 5 files changed, 8108 deletions(-) delete mode 100644 packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts delete mode 100644 packages/cosmwasm-stargate/src/codec/generated/codecimpl.js delete mode 100644 packages/cosmwasm-stargate/src/codec/index.ts delete mode 100644 packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts delete mode 100644 packages/cosmwasm-stargate/types/codec/index.d.ts diff --git a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts b/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts deleted file mode 100644 index 98d5e340..00000000 --- a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.d.ts +++ /dev/null @@ -1,2995 +0,0 @@ -import * as $protobuf from "protobufjs"; -/** Namespace cosmwasm. */ -export namespace cosmwasm { - /** Namespace wasm. */ - namespace wasm { - /** Namespace v1beta1. */ - namespace v1beta1 { - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { - /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Query service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create( - rpcImpl: $protobuf.RPCImpl, - requestDelimited?: boolean, - responseDelimited?: boolean, - ): Query; - - /** - * Calls ContractInfo. - * @param request QueryContractInfoRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryContractInfoResponse - */ - public contractInfo( - request: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - callback: cosmwasm.wasm.v1beta1.Query.ContractInfoCallback, - ): void; - - /** - * Calls ContractInfo. - * @param request QueryContractInfoRequest message or plain object - * @returns Promise - */ - public contractInfo( - request: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - ): Promise; - - /** - * Calls ContractHistory. - * @param request QueryContractHistoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryContractHistoryResponse - */ - public contractHistory( - request: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - callback: cosmwasm.wasm.v1beta1.Query.ContractHistoryCallback, - ): void; - - /** - * Calls ContractHistory. - * @param request QueryContractHistoryRequest message or plain object - * @returns Promise - */ - public contractHistory( - request: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - ): Promise; - - /** - * Calls ContractsByCode. - * @param request QueryContractsByCodeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryContractsByCodeResponse - */ - public contractsByCode( - request: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - callback: cosmwasm.wasm.v1beta1.Query.ContractsByCodeCallback, - ): void; - - /** - * Calls ContractsByCode. - * @param request QueryContractsByCodeRequest message or plain object - * @returns Promise - */ - public contractsByCode( - request: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - ): Promise; - - /** - * Calls AllContractState. - * @param request QueryAllContractStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryAllContractStateResponse - */ - public allContractState( - request: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - callback: cosmwasm.wasm.v1beta1.Query.AllContractStateCallback, - ): void; - - /** - * Calls AllContractState. - * @param request QueryAllContractStateRequest message or plain object - * @returns Promise - */ - public allContractState( - request: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - ): Promise; - - /** - * Calls RawContractState. - * @param request QueryRawContractStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryRawContractStateResponse - */ - public rawContractState( - request: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - callback: cosmwasm.wasm.v1beta1.Query.RawContractStateCallback, - ): void; - - /** - * Calls RawContractState. - * @param request QueryRawContractStateRequest message or plain object - * @returns Promise - */ - public rawContractState( - request: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - ): Promise; - - /** - * Calls SmartContractState. - * @param request QuerySmartContractStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QuerySmartContractStateResponse - */ - public smartContractState( - request: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - callback: cosmwasm.wasm.v1beta1.Query.SmartContractStateCallback, - ): void; - - /** - * Calls SmartContractState. - * @param request QuerySmartContractStateRequest message or plain object - * @returns Promise - */ - public smartContractState( - request: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - ): Promise; - - /** - * Calls Code. - * @param request QueryCodeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryCodeResponse - */ - public code( - request: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - callback: cosmwasm.wasm.v1beta1.Query.CodeCallback, - ): void; - - /** - * Calls Code. - * @param request QueryCodeRequest message or plain object - * @returns Promise - */ - public code( - request: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - ): Promise; - - /** - * Calls Codes. - * @param request QueryCodesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryCodesResponse - */ - public codes( - request: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - callback: cosmwasm.wasm.v1beta1.Query.CodesCallback, - ): void; - - /** - * Calls Codes. - * @param request QueryCodesRequest message or plain object - * @returns Promise - */ - public codes( - request: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - ): Promise; - } - - namespace Query { - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#contractInfo}. - * @param error Error, if any - * @param [response] QueryContractInfoResponse - */ - type ContractInfoCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryContractInfoResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#contractHistory}. - * @param error Error, if any - * @param [response] QueryContractHistoryResponse - */ - type ContractHistoryCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryContractHistoryResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#contractsByCode}. - * @param error Error, if any - * @param [response] QueryContractsByCodeResponse - */ - type ContractsByCodeCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#allContractState}. - * @param error Error, if any - * @param [response] QueryAllContractStateResponse - */ - type AllContractStateCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryAllContractStateResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#rawContractState}. - * @param error Error, if any - * @param [response] QueryRawContractStateResponse - */ - type RawContractStateCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryRawContractStateResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#smartContractState}. - * @param error Error, if any - * @param [response] QuerySmartContractStateResponse - */ - type SmartContractStateCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#code}. - * @param error Error, if any - * @param [response] QueryCodeResponse - */ - type CodeCallback = (error: Error | null, response?: cosmwasm.wasm.v1beta1.QueryCodeResponse) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#codes}. - * @param error Error, if any - * @param [response] QueryCodesResponse - */ - type CodesCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryCodesResponse, - ) => void; - } - - /** Properties of a QueryContractInfoRequest. */ - interface IQueryContractInfoRequest { - /** QueryContractInfoRequest address */ - address?: string | null; - } - - /** Represents a QueryContractInfoRequest. */ - class QueryContractInfoRequest implements IQueryContractInfoRequest { - /** - * Constructs a new QueryContractInfoRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest); - - /** QueryContractInfoRequest address. */ - public address: string; - - /** - * Creates a new QueryContractInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractInfoRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - ): cosmwasm.wasm.v1beta1.QueryContractInfoRequest; - - /** - * Encodes the specified QueryContractInfoRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractInfoRequest.verify|verify} messages. - * @param m QueryContractInfoRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractInfoRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractInfoRequest; - } - - /** Properties of a QueryContractInfoResponse. */ - interface IQueryContractInfoResponse { - /** QueryContractInfoResponse address */ - address?: string | null; - - /** QueryContractInfoResponse contractInfo */ - contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - } - - /** Represents a QueryContractInfoResponse. */ - class QueryContractInfoResponse implements IQueryContractInfoResponse { - /** - * Constructs a new QueryContractInfoResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractInfoResponse); - - /** QueryContractInfoResponse address. */ - public address: string; - - /** QueryContractInfoResponse contractInfo. */ - public contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - - /** - * Creates a new QueryContractInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractInfoResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractInfoResponse, - ): cosmwasm.wasm.v1beta1.QueryContractInfoResponse; - - /** - * Encodes the specified QueryContractInfoResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractInfoResponse.verify|verify} messages. - * @param m QueryContractInfoResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractInfoResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractInfoResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractInfoResponse; - } - - /** Properties of a QueryContractHistoryRequest. */ - interface IQueryContractHistoryRequest { - /** QueryContractHistoryRequest address */ - address?: string | null; - - /** QueryContractHistoryRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryContractHistoryRequest. */ - class QueryContractHistoryRequest implements IQueryContractHistoryRequest { - /** - * Constructs a new QueryContractHistoryRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest); - - /** QueryContractHistoryRequest address. */ - public address: string; - - /** QueryContractHistoryRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryContractHistoryRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractHistoryRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryRequest; - - /** - * Encodes the specified QueryContractHistoryRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractHistoryRequest.verify|verify} messages. - * @param m QueryContractHistoryRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractHistoryRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractHistoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryRequest; - } - - /** Properties of a QueryContractHistoryResponse. */ - interface IQueryContractHistoryResponse { - /** QueryContractHistoryResponse entries */ - entries?: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry[] | null; - - /** QueryContractHistoryResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryContractHistoryResponse. */ - class QueryContractHistoryResponse implements IQueryContractHistoryResponse { - /** - * Constructs a new QueryContractHistoryResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractHistoryResponse); - - /** QueryContractHistoryResponse entries. */ - public entries: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry[]; - - /** QueryContractHistoryResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryContractHistoryResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractHistoryResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractHistoryResponse, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryResponse; - - /** - * Encodes the specified QueryContractHistoryResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractHistoryResponse.verify|verify} messages. - * @param m QueryContractHistoryResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractHistoryResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractHistoryResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractHistoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryResponse; - } - - /** Properties of a QueryContractsByCodeRequest. */ - interface IQueryContractsByCodeRequest { - /** QueryContractsByCodeRequest codeId */ - codeId?: Long | null; - - /** QueryContractsByCodeRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryContractsByCodeRequest. */ - class QueryContractsByCodeRequest implements IQueryContractsByCodeRequest { - /** - * Constructs a new QueryContractsByCodeRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest); - - /** QueryContractsByCodeRequest codeId. */ - public codeId: Long; - - /** QueryContractsByCodeRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryContractsByCodeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractsByCodeRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest; - - /** - * Encodes the specified QueryContractsByCodeRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest.verify|verify} messages. - * @param m QueryContractsByCodeRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractsByCodeRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractsByCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest; - } - - /** Properties of a ContractInfoWithAddress. */ - interface IContractInfoWithAddress { - /** ContractInfoWithAddress address */ - address?: string | null; - - /** ContractInfoWithAddress contractInfo */ - contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - } - - /** Represents a ContractInfoWithAddress. */ - class ContractInfoWithAddress implements IContractInfoWithAddress { - /** - * Constructs a new ContractInfoWithAddress. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IContractInfoWithAddress); - - /** ContractInfoWithAddress address. */ - public address: string; - - /** ContractInfoWithAddress contractInfo. */ - public contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - - /** - * Creates a new ContractInfoWithAddress instance using the specified properties. - * @param [properties] Properties to set - * @returns ContractInfoWithAddress instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IContractInfoWithAddress, - ): cosmwasm.wasm.v1beta1.ContractInfoWithAddress; - - /** - * Encodes the specified ContractInfoWithAddress message. Does not implicitly {@link cosmwasm.wasm.v1beta1.ContractInfoWithAddress.verify|verify} messages. - * @param m ContractInfoWithAddress message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IContractInfoWithAddress, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ContractInfoWithAddress message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ContractInfoWithAddress - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.ContractInfoWithAddress; - } - - /** Properties of a QueryContractsByCodeResponse. */ - interface IQueryContractsByCodeResponse { - /** QueryContractsByCodeResponse contractInfos */ - contractInfos?: cosmwasm.wasm.v1beta1.IContractInfoWithAddress[] | null; - - /** QueryContractsByCodeResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryContractsByCodeResponse. */ - class QueryContractsByCodeResponse implements IQueryContractsByCodeResponse { - /** - * Constructs a new QueryContractsByCodeResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeResponse); - - /** QueryContractsByCodeResponse contractInfos. */ - public contractInfos: cosmwasm.wasm.v1beta1.IContractInfoWithAddress[]; - - /** QueryContractsByCodeResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryContractsByCodeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractsByCodeResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeResponse, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse; - - /** - * Encodes the specified QueryContractsByCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse.verify|verify} messages. - * @param m QueryContractsByCodeResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractsByCodeResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractsByCodeResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractsByCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse; - } - - /** Properties of a QueryAllContractStateRequest. */ - interface IQueryAllContractStateRequest { - /** QueryAllContractStateRequest address */ - address?: string | null; - - /** QueryAllContractStateRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryAllContractStateRequest. */ - class QueryAllContractStateRequest implements IQueryAllContractStateRequest { - /** - * Constructs a new QueryAllContractStateRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest); - - /** QueryAllContractStateRequest address. */ - public address: string; - - /** QueryAllContractStateRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryAllContractStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllContractStateRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateRequest; - - /** - * Encodes the specified QueryAllContractStateRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryAllContractStateRequest.verify|verify} messages. - * @param m QueryAllContractStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryAllContractStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAllContractStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateRequest; - } - - /** Properties of a QueryAllContractStateResponse. */ - interface IQueryAllContractStateResponse { - /** QueryAllContractStateResponse models */ - models?: cosmwasm.wasm.v1beta1.IModel[] | null; - - /** QueryAllContractStateResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryAllContractStateResponse. */ - class QueryAllContractStateResponse implements IQueryAllContractStateResponse { - /** - * Constructs a new QueryAllContractStateResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryAllContractStateResponse); - - /** QueryAllContractStateResponse models. */ - public models: cosmwasm.wasm.v1beta1.IModel[]; - - /** QueryAllContractStateResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryAllContractStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllContractStateResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryAllContractStateResponse, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateResponse; - - /** - * Encodes the specified QueryAllContractStateResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryAllContractStateResponse.verify|verify} messages. - * @param m QueryAllContractStateResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryAllContractStateResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryAllContractStateResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAllContractStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateResponse; - } - - /** Properties of a QueryRawContractStateRequest. */ - interface IQueryRawContractStateRequest { - /** QueryRawContractStateRequest address */ - address?: string | null; - - /** QueryRawContractStateRequest queryData */ - queryData?: Uint8Array | null; - } - - /** Represents a QueryRawContractStateRequest. */ - class QueryRawContractStateRequest implements IQueryRawContractStateRequest { - /** - * Constructs a new QueryRawContractStateRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest); - - /** QueryRawContractStateRequest address. */ - public address: string; - - /** QueryRawContractStateRequest queryData. */ - public queryData: Uint8Array; - - /** - * Creates a new QueryRawContractStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryRawContractStateRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateRequest; - - /** - * Encodes the specified QueryRawContractStateRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryRawContractStateRequest.verify|verify} messages. - * @param m QueryRawContractStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryRawContractStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryRawContractStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateRequest; - } - - /** Properties of a QueryRawContractStateResponse. */ - interface IQueryRawContractStateResponse { - /** QueryRawContractStateResponse data */ - data?: Uint8Array | null; - } - - /** Represents a QueryRawContractStateResponse. */ - class QueryRawContractStateResponse implements IQueryRawContractStateResponse { - /** - * Constructs a new QueryRawContractStateResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryRawContractStateResponse); - - /** QueryRawContractStateResponse data. */ - public data: Uint8Array; - - /** - * Creates a new QueryRawContractStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryRawContractStateResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryRawContractStateResponse, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateResponse; - - /** - * Encodes the specified QueryRawContractStateResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryRawContractStateResponse.verify|verify} messages. - * @param m QueryRawContractStateResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryRawContractStateResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryRawContractStateResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryRawContractStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateResponse; - } - - /** Properties of a QuerySmartContractStateRequest. */ - interface IQuerySmartContractStateRequest { - /** QuerySmartContractStateRequest address */ - address?: string | null; - - /** QuerySmartContractStateRequest queryData */ - queryData?: Uint8Array | null; - } - - /** Represents a QuerySmartContractStateRequest. */ - class QuerySmartContractStateRequest implements IQuerySmartContractStateRequest { - /** - * Constructs a new QuerySmartContractStateRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest); - - /** QuerySmartContractStateRequest address. */ - public address: string; - - /** QuerySmartContractStateRequest queryData. */ - public queryData: Uint8Array; - - /** - * Creates a new QuerySmartContractStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QuerySmartContractStateRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest; - - /** - * Encodes the specified QuerySmartContractStateRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest.verify|verify} messages. - * @param m QuerySmartContractStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QuerySmartContractStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QuerySmartContractStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest; - } - - /** Properties of a QuerySmartContractStateResponse. */ - interface IQuerySmartContractStateResponse { - /** QuerySmartContractStateResponse data */ - data?: Uint8Array | null; - } - - /** Represents a QuerySmartContractStateResponse. */ - class QuerySmartContractStateResponse implements IQuerySmartContractStateResponse { - /** - * Constructs a new QuerySmartContractStateResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateResponse); - - /** QuerySmartContractStateResponse data. */ - public data: Uint8Array; - - /** - * Creates a new QuerySmartContractStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QuerySmartContractStateResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateResponse, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse; - - /** - * Encodes the specified QuerySmartContractStateResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse.verify|verify} messages. - * @param m QuerySmartContractStateResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQuerySmartContractStateResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QuerySmartContractStateResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QuerySmartContractStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse; - } - - /** Properties of a QueryCodeRequest. */ - interface IQueryCodeRequest { - /** QueryCodeRequest codeId */ - codeId?: Long | null; - } - - /** Represents a QueryCodeRequest. */ - class QueryCodeRequest implements IQueryCodeRequest { - /** - * Constructs a new QueryCodeRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodeRequest); - - /** QueryCodeRequest codeId. */ - public codeId: Long; - - /** - * Creates a new QueryCodeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodeRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - ): cosmwasm.wasm.v1beta1.QueryCodeRequest; - - /** - * Encodes the specified QueryCodeRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodeRequest.verify|verify} messages. - * @param m QueryCodeRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodeRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodeRequest; - } - - /** Properties of a CodeInfoResponse. */ - interface ICodeInfoResponse { - /** CodeInfoResponse codeId */ - codeId?: Long | null; - - /** CodeInfoResponse creator */ - creator?: string | null; - - /** CodeInfoResponse dataHash */ - dataHash?: Uint8Array | null; - - /** CodeInfoResponse source */ - source?: string | null; - - /** CodeInfoResponse builder */ - builder?: string | null; - } - - /** Represents a CodeInfoResponse. */ - class CodeInfoResponse implements ICodeInfoResponse { - /** - * Constructs a new CodeInfoResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.ICodeInfoResponse); - - /** CodeInfoResponse codeId. */ - public codeId: Long; - - /** CodeInfoResponse creator. */ - public creator: string; - - /** CodeInfoResponse dataHash. */ - public dataHash: Uint8Array; - - /** CodeInfoResponse source. */ - public source: string; - - /** CodeInfoResponse builder. */ - public builder: string; - - /** - * Creates a new CodeInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CodeInfoResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.ICodeInfoResponse, - ): cosmwasm.wasm.v1beta1.CodeInfoResponse; - - /** - * Encodes the specified CodeInfoResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.CodeInfoResponse.verify|verify} messages. - * @param m CodeInfoResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.ICodeInfoResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a CodeInfoResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns CodeInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.CodeInfoResponse; - } - - /** Properties of a QueryCodeResponse. */ - interface IQueryCodeResponse { - /** QueryCodeResponse codeInfo */ - codeInfo?: cosmwasm.wasm.v1beta1.ICodeInfoResponse | null; - - /** QueryCodeResponse data */ - data?: Uint8Array | null; - } - - /** Represents a QueryCodeResponse. */ - class QueryCodeResponse implements IQueryCodeResponse { - /** - * Constructs a new QueryCodeResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodeResponse); - - /** QueryCodeResponse codeInfo. */ - public codeInfo?: cosmwasm.wasm.v1beta1.ICodeInfoResponse | null; - - /** QueryCodeResponse data. */ - public data: Uint8Array; - - /** - * Creates a new QueryCodeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodeResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodeResponse, - ): cosmwasm.wasm.v1beta1.QueryCodeResponse; - - /** - * Encodes the specified QueryCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodeResponse.verify|verify} messages. - * @param m QueryCodeResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodeResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodeResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodeResponse; - } - - /** Properties of a QueryCodesRequest. */ - interface IQueryCodesRequest { - /** QueryCodesRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryCodesRequest. */ - class QueryCodesRequest implements IQueryCodesRequest { - /** - * Constructs a new QueryCodesRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodesRequest); - - /** QueryCodesRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryCodesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodesRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - ): cosmwasm.wasm.v1beta1.QueryCodesRequest; - - /** - * Encodes the specified QueryCodesRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodesRequest.verify|verify} messages. - * @param m QueryCodesRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodesRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodesRequest; - } - - /** Properties of a QueryCodesResponse. */ - interface IQueryCodesResponse { - /** QueryCodesResponse codeInfos */ - codeInfos?: cosmwasm.wasm.v1beta1.ICodeInfoResponse[] | null; - - /** QueryCodesResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryCodesResponse. */ - class QueryCodesResponse implements IQueryCodesResponse { - /** - * Constructs a new QueryCodesResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodesResponse); - - /** QueryCodesResponse codeInfos. */ - public codeInfos: cosmwasm.wasm.v1beta1.ICodeInfoResponse[]; - - /** QueryCodesResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryCodesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodesResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodesResponse, - ): cosmwasm.wasm.v1beta1.QueryCodesResponse; - - /** - * Encodes the specified QueryCodesResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodesResponse.verify|verify} messages. - * @param m QueryCodesResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodesResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodesResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodesResponse; - } - - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Msg service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create( - rpcImpl: $protobuf.RPCImpl, - requestDelimited?: boolean, - responseDelimited?: boolean, - ): Msg; - - /** - * Calls StoreCode. - * @param request MsgStoreCode message or plain object - * @param callback Node-style callback called with the error, if any, and MsgStoreCodeResponse - */ - public storeCode( - request: cosmwasm.wasm.v1beta1.IMsgStoreCode, - callback: cosmwasm.wasm.v1beta1.Msg.StoreCodeCallback, - ): void; - - /** - * Calls StoreCode. - * @param request MsgStoreCode message or plain object - * @returns Promise - */ - public storeCode( - request: cosmwasm.wasm.v1beta1.IMsgStoreCode, - ): Promise; - - /** - * Calls InstantiateContract. - * @param request MsgInstantiateContract message or plain object - * @param callback Node-style callback called with the error, if any, and MsgInstantiateContractResponse - */ - public instantiateContract( - request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - callback: cosmwasm.wasm.v1beta1.Msg.InstantiateContractCallback, - ): void; - - /** - * Calls InstantiateContract. - * @param request MsgInstantiateContract message or plain object - * @returns Promise - */ - public instantiateContract( - request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - ): Promise; - - /** - * Calls ExecuteContract. - * @param request MsgExecuteContract message or plain object - * @param callback Node-style callback called with the error, if any, and MsgExecuteContractResponse - */ - public executeContract( - request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - callback: cosmwasm.wasm.v1beta1.Msg.ExecuteContractCallback, - ): void; - - /** - * Calls ExecuteContract. - * @param request MsgExecuteContract message or plain object - * @returns Promise - */ - public executeContract( - request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - ): Promise; - - /** - * Calls MigrateContract. - * @param request MsgMigrateContract message or plain object - * @param callback Node-style callback called with the error, if any, and MsgMigrateContractResponse - */ - public migrateContract( - request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - callback: cosmwasm.wasm.v1beta1.Msg.MigrateContractCallback, - ): void; - - /** - * Calls MigrateContract. - * @param request MsgMigrateContract message or plain object - * @returns Promise - */ - public migrateContract( - request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - ): Promise; - - /** - * Calls UpdateAdmin. - * @param request MsgUpdateAdmin message or plain object - * @param callback Node-style callback called with the error, if any, and MsgUpdateAdminResponse - */ - public updateAdmin( - request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - callback: cosmwasm.wasm.v1beta1.Msg.UpdateAdminCallback, - ): void; - - /** - * Calls UpdateAdmin. - * @param request MsgUpdateAdmin message or plain object - * @returns Promise - */ - public updateAdmin( - request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - ): Promise; - - /** - * Calls ClearAdmin. - * @param request MsgClearAdmin message or plain object - * @param callback Node-style callback called with the error, if any, and MsgClearAdminResponse - */ - public clearAdmin( - request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - callback: cosmwasm.wasm.v1beta1.Msg.ClearAdminCallback, - ): void; - - /** - * Calls ClearAdmin. - * @param request MsgClearAdmin message or plain object - * @returns Promise - */ - public clearAdmin( - request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - ): Promise; - } - - namespace Msg { - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#storeCode}. - * @param error Error, if any - * @param [response] MsgStoreCodeResponse - */ - type StoreCodeCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgStoreCodeResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#instantiateContract}. - * @param error Error, if any - * @param [response] MsgInstantiateContractResponse - */ - type InstantiateContractCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#executeContract}. - * @param error Error, if any - * @param [response] MsgExecuteContractResponse - */ - type ExecuteContractCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgExecuteContractResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#migrateContract}. - * @param error Error, if any - * @param [response] MsgMigrateContractResponse - */ - type MigrateContractCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgMigrateContractResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#updateAdmin}. - * @param error Error, if any - * @param [response] MsgUpdateAdminResponse - */ - type UpdateAdminCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#clearAdmin}. - * @param error Error, if any - * @param [response] MsgClearAdminResponse - */ - type ClearAdminCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgClearAdminResponse, - ) => void; - } - - /** Properties of a MsgStoreCode. */ - interface IMsgStoreCode { - /** MsgStoreCode sender */ - sender?: string | null; - - /** MsgStoreCode wasmByteCode */ - wasmByteCode?: Uint8Array | null; - - /** MsgStoreCode source */ - source?: string | null; - - /** MsgStoreCode builder */ - builder?: string | null; - - /** MsgStoreCode instantiatePermission */ - instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - } - - /** Represents a MsgStoreCode. */ - class MsgStoreCode implements IMsgStoreCode { - /** - * Constructs a new MsgStoreCode. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCode); - - /** MsgStoreCode sender. */ - public sender: string; - - /** MsgStoreCode wasmByteCode. */ - public wasmByteCode: Uint8Array; - - /** MsgStoreCode source. */ - public source: string; - - /** MsgStoreCode builder. */ - public builder: string; - - /** MsgStoreCode instantiatePermission. */ - public instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** - * Creates a new MsgStoreCode instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgStoreCode instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgStoreCode, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - - /** - * Encodes the specified MsgStoreCode message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCode.verify|verify} messages. - * @param m MsgStoreCode message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgStoreCode, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgStoreCode message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgStoreCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - } - - /** Properties of a MsgStoreCodeResponse. */ - interface IMsgStoreCodeResponse { - /** MsgStoreCodeResponse codeId */ - codeId?: Long | null; - } - - /** Represents a MsgStoreCodeResponse. */ - class MsgStoreCodeResponse implements IMsgStoreCodeResponse { - /** - * Constructs a new MsgStoreCodeResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse); - - /** MsgStoreCodeResponse codeId. */ - public codeId: Long; - - /** - * Creates a new MsgStoreCodeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgStoreCodeResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, - ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; - - /** - * Encodes the specified MsgStoreCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCodeResponse.verify|verify} messages. - * @param m MsgStoreCodeResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgStoreCodeResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgStoreCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; - } - - /** Properties of a MsgInstantiateContract. */ - interface IMsgInstantiateContract { - /** MsgInstantiateContract sender */ - sender?: string | null; - - /** MsgInstantiateContract admin */ - admin?: string | null; - - /** MsgInstantiateContract codeId */ - codeId?: Long | null; - - /** MsgInstantiateContract label */ - label?: string | null; - - /** MsgInstantiateContract initMsg */ - initMsg?: Uint8Array | null; - - /** MsgInstantiateContract initFunds */ - initFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgInstantiateContract. */ - class MsgInstantiateContract implements IMsgInstantiateContract { - /** - * Constructs a new MsgInstantiateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract); - - /** MsgInstantiateContract sender. */ - public sender: string; - - /** MsgInstantiateContract admin. */ - public admin: string; - - /** MsgInstantiateContract codeId. */ - public codeId: Long; - - /** MsgInstantiateContract label. */ - public label: string; - - /** MsgInstantiateContract initMsg. */ - public initMsg: Uint8Array; - - /** MsgInstantiateContract initFunds. */ - public initFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgInstantiateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgInstantiateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - - /** - * Encodes the specified MsgInstantiateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContract.verify|verify} messages. - * @param m MsgInstantiateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgInstantiateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgInstantiateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - } - - /** Properties of a MsgInstantiateContractResponse. */ - interface IMsgInstantiateContractResponse { - /** MsgInstantiateContractResponse address */ - address?: string | null; - } - - /** Represents a MsgInstantiateContractResponse. */ - class MsgInstantiateContractResponse implements IMsgInstantiateContractResponse { - /** - * Constructs a new MsgInstantiateContractResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse); - - /** MsgInstantiateContractResponse address. */ - public address: string; - - /** - * Creates a new MsgInstantiateContractResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgInstantiateContractResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; - - /** - * Encodes the specified MsgInstantiateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse.verify|verify} messages. - * @param m MsgInstantiateContractResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgInstantiateContractResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgInstantiateContractResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; - } - - /** Properties of a MsgExecuteContract. */ - interface IMsgExecuteContract { - /** MsgExecuteContract sender */ - sender?: string | null; - - /** MsgExecuteContract contract */ - contract?: string | null; - - /** MsgExecuteContract msg */ - msg?: Uint8Array | null; - - /** MsgExecuteContract sentFunds */ - sentFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgExecuteContract. */ - class MsgExecuteContract implements IMsgExecuteContract { - /** - * Constructs a new MsgExecuteContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContract); - - /** MsgExecuteContract sender. */ - public sender: string; - - /** MsgExecuteContract contract. */ - public contract: string; - - /** MsgExecuteContract msg. */ - public msg: Uint8Array; - - /** MsgExecuteContract sentFunds. */ - public sentFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgExecuteContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgExecuteContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - - /** - * Encodes the specified MsgExecuteContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContract.verify|verify} messages. - * @param m MsgExecuteContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgExecuteContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgExecuteContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - } - - /** Properties of a MsgExecuteContractResponse. */ - interface IMsgExecuteContractResponse { - /** MsgExecuteContractResponse data */ - data?: Uint8Array | null; - } - - /** Represents a MsgExecuteContractResponse. */ - class MsgExecuteContractResponse implements IMsgExecuteContractResponse { - /** - * Constructs a new MsgExecuteContractResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse); - - /** MsgExecuteContractResponse data. */ - public data: Uint8Array; - - /** - * Creates a new MsgExecuteContractResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgExecuteContractResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, - ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; - - /** - * Encodes the specified MsgExecuteContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContractResponse.verify|verify} messages. - * @param m MsgExecuteContractResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgExecuteContractResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgExecuteContractResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; - } - - /** Properties of a MsgMigrateContract. */ - interface IMsgMigrateContract { - /** MsgMigrateContract sender */ - sender?: string | null; - - /** MsgMigrateContract contract */ - contract?: string | null; - - /** MsgMigrateContract codeId */ - codeId?: Long | null; - - /** MsgMigrateContract migrateMsg */ - migrateMsg?: Uint8Array | null; - } - - /** Represents a MsgMigrateContract. */ - class MsgMigrateContract implements IMsgMigrateContract { - /** - * Constructs a new MsgMigrateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContract); - - /** MsgMigrateContract sender. */ - public sender: string; - - /** MsgMigrateContract contract. */ - public contract: string; - - /** MsgMigrateContract codeId. */ - public codeId: Long; - - /** MsgMigrateContract migrateMsg. */ - public migrateMsg: Uint8Array; - - /** - * Creates a new MsgMigrateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMigrateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - - /** - * Encodes the specified MsgMigrateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContract.verify|verify} messages. - * @param m MsgMigrateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgMigrateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgMigrateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - } - - /** Properties of a MsgMigrateContractResponse. */ - interface IMsgMigrateContractResponse { - /** MsgMigrateContractResponse data */ - data?: Uint8Array | null; - } - - /** Represents a MsgMigrateContractResponse. */ - class MsgMigrateContractResponse implements IMsgMigrateContractResponse { - /** - * Constructs a new MsgMigrateContractResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse); - - /** MsgMigrateContractResponse data. */ - public data: Uint8Array; - - /** - * Creates a new MsgMigrateContractResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMigrateContractResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, - ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; - - /** - * Encodes the specified MsgMigrateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContractResponse.verify|verify} messages. - * @param m MsgMigrateContractResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgMigrateContractResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgMigrateContractResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; - } - - /** Properties of a MsgUpdateAdmin. */ - interface IMsgUpdateAdmin { - /** MsgUpdateAdmin sender */ - sender?: string | null; - - /** MsgUpdateAdmin newAdmin */ - newAdmin?: string | null; - - /** MsgUpdateAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgUpdateAdmin. */ - class MsgUpdateAdmin implements IMsgUpdateAdmin { - /** - * Constructs a new MsgUpdateAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin); - - /** MsgUpdateAdmin sender. */ - public sender: string; - - /** MsgUpdateAdmin newAdmin. */ - public newAdmin: string; - - /** MsgUpdateAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgUpdateAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - - /** - * Encodes the specified MsgUpdateAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdmin.verify|verify} messages. - * @param m MsgUpdateAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - } - - /** Properties of a MsgUpdateAdminResponse. */ - interface IMsgUpdateAdminResponse {} - - /** Represents a MsgUpdateAdminResponse. */ - class MsgUpdateAdminResponse implements IMsgUpdateAdminResponse { - /** - * Constructs a new MsgUpdateAdminResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse); - - /** - * Creates a new MsgUpdateAdminResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateAdminResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; - - /** - * Encodes the specified MsgUpdateAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse.verify|verify} messages. - * @param m MsgUpdateAdminResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateAdminResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateAdminResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; - } - - /** Properties of a MsgClearAdmin. */ - interface IMsgClearAdmin { - /** MsgClearAdmin sender */ - sender?: string | null; - - /** MsgClearAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgClearAdmin. */ - class MsgClearAdmin implements IMsgClearAdmin { - /** - * Constructs a new MsgClearAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdmin); - - /** MsgClearAdmin sender. */ - public sender: string; - - /** MsgClearAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgClearAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgClearAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - - /** - * Encodes the specified MsgClearAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdmin.verify|verify} messages. - * @param m MsgClearAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgClearAdmin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgClearAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgClearAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - } - - /** Properties of a MsgClearAdminResponse. */ - interface IMsgClearAdminResponse {} - - /** Represents a MsgClearAdminResponse. */ - class MsgClearAdminResponse implements IMsgClearAdminResponse { - /** - * Constructs a new MsgClearAdminResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse); - - /** - * Creates a new MsgClearAdminResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgClearAdminResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, - ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; - - /** - * Encodes the specified MsgClearAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdminResponse.verify|verify} messages. - * @param m MsgClearAdminResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgClearAdminResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgClearAdminResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; - } - - /** AccessType enum. */ - enum AccessType { - ACCESS_TYPE_UNSPECIFIED = 0, - ACCESS_TYPE_NOBODY = 1, - ACCESS_TYPE_ONLY_ADDRESS = 2, - ACCESS_TYPE_EVERYBODY = 3, - } - - /** Properties of an AccessTypeParam. */ - interface IAccessTypeParam { - /** AccessTypeParam value */ - value?: cosmwasm.wasm.v1beta1.AccessType | null; - } - - /** Represents an AccessTypeParam. */ - class AccessTypeParam implements IAccessTypeParam { - /** - * Constructs a new AccessTypeParam. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IAccessTypeParam); - - /** AccessTypeParam value. */ - public value: cosmwasm.wasm.v1beta1.AccessType; - - /** - * Creates a new AccessTypeParam instance using the specified properties. - * @param [properties] Properties to set - * @returns AccessTypeParam instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IAccessTypeParam, - ): cosmwasm.wasm.v1beta1.AccessTypeParam; - - /** - * Encodes the specified AccessTypeParam message. Does not implicitly {@link cosmwasm.wasm.v1beta1.AccessTypeParam.verify|verify} messages. - * @param m AccessTypeParam message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IAccessTypeParam, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an AccessTypeParam message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns AccessTypeParam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.AccessTypeParam; - } - - /** Properties of an AccessConfig. */ - interface IAccessConfig { - /** AccessConfig permission */ - permission?: cosmwasm.wasm.v1beta1.AccessType | null; - - /** AccessConfig address */ - address?: string | null; - } - - /** Represents an AccessConfig. */ - class AccessConfig implements IAccessConfig { - /** - * Constructs a new AccessConfig. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IAccessConfig); - - /** AccessConfig permission. */ - public permission: cosmwasm.wasm.v1beta1.AccessType; - - /** AccessConfig address. */ - public address: string; - - /** - * Creates a new AccessConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AccessConfig instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IAccessConfig, - ): cosmwasm.wasm.v1beta1.AccessConfig; - - /** - * Encodes the specified AccessConfig message. Does not implicitly {@link cosmwasm.wasm.v1beta1.AccessConfig.verify|verify} messages. - * @param m AccessConfig message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IAccessConfig, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AccessConfig message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns AccessConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.AccessConfig; - } - - /** Properties of a Params. */ - interface IParams { - /** Params codeUploadAccess */ - codeUploadAccess?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** Params instantiateDefaultPermission */ - instantiateDefaultPermission?: cosmwasm.wasm.v1beta1.AccessType | null; - - /** Params maxWasmCodeSize */ - maxWasmCodeSize?: Long | null; - } - - /** Represents a Params. */ - class Params implements IParams { - /** - * Constructs a new Params. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IParams); - - /** Params codeUploadAccess. */ - public codeUploadAccess?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** Params instantiateDefaultPermission. */ - public instantiateDefaultPermission: cosmwasm.wasm.v1beta1.AccessType; - - /** Params maxWasmCodeSize. */ - public maxWasmCodeSize: Long; - - /** - * Creates a new Params instance using the specified properties. - * @param [properties] Properties to set - * @returns Params instance - */ - public static create(properties?: cosmwasm.wasm.v1beta1.IParams): cosmwasm.wasm.v1beta1.Params; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmwasm.wasm.v1beta1.Params.verify|verify} messages. - * @param m Params message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IParams, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Params message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmwasm.wasm.v1beta1.Params; - } - - /** Properties of a CodeInfo. */ - interface ICodeInfo { - /** CodeInfo codeHash */ - codeHash?: Uint8Array | null; - - /** CodeInfo creator */ - creator?: string | null; - - /** CodeInfo source */ - source?: string | null; - - /** CodeInfo builder */ - builder?: string | null; - - /** CodeInfo instantiateConfig */ - instantiateConfig?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - } - - /** Represents a CodeInfo. */ - class CodeInfo implements ICodeInfo { - /** - * Constructs a new CodeInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.ICodeInfo); - - /** CodeInfo codeHash. */ - public codeHash: Uint8Array; - - /** CodeInfo creator. */ - public creator: string; - - /** CodeInfo source. */ - public source: string; - - /** CodeInfo builder. */ - public builder: string; - - /** CodeInfo instantiateConfig. */ - public instantiateConfig?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** - * Creates a new CodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns CodeInfo instance - */ - public static create(properties?: cosmwasm.wasm.v1beta1.ICodeInfo): cosmwasm.wasm.v1beta1.CodeInfo; - - /** - * Encodes the specified CodeInfo message. Does not implicitly {@link cosmwasm.wasm.v1beta1.CodeInfo.verify|verify} messages. - * @param m CodeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.ICodeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CodeInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns CodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmwasm.wasm.v1beta1.CodeInfo; - } - - /** Properties of a ContractInfo. */ - interface IContractInfo { - /** ContractInfo codeId */ - codeId?: Long | null; - - /** ContractInfo creator */ - creator?: string | null; - - /** ContractInfo admin */ - admin?: string | null; - - /** ContractInfo label */ - label?: string | null; - - /** ContractInfo created */ - created?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - } - - /** Represents a ContractInfo. */ - class ContractInfo implements IContractInfo { - /** - * Constructs a new ContractInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IContractInfo); - - /** ContractInfo codeId. */ - public codeId: Long; - - /** ContractInfo creator. */ - public creator: string; - - /** ContractInfo admin. */ - public admin: string; - - /** ContractInfo label. */ - public label: string; - - /** ContractInfo created. */ - public created?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - - /** - * Creates a new ContractInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ContractInfo instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IContractInfo, - ): cosmwasm.wasm.v1beta1.ContractInfo; - - /** - * Encodes the specified ContractInfo message. Does not implicitly {@link cosmwasm.wasm.v1beta1.ContractInfo.verify|verify} messages. - * @param m ContractInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IContractInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContractInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ContractInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.ContractInfo; - } - - /** ContractCodeHistoryOperationType enum. */ - enum ContractCodeHistoryOperationType { - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0, - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1, - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2, - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3, - } - - /** Properties of a ContractCodeHistoryEntry. */ - interface IContractCodeHistoryEntry { - /** ContractCodeHistoryEntry operation */ - operation?: cosmwasm.wasm.v1beta1.ContractCodeHistoryOperationType | null; - - /** ContractCodeHistoryEntry codeId */ - codeId?: Long | null; - - /** ContractCodeHistoryEntry updated */ - updated?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - - /** ContractCodeHistoryEntry msg */ - msg?: Uint8Array | null; - } - - /** Represents a ContractCodeHistoryEntry. */ - class ContractCodeHistoryEntry implements IContractCodeHistoryEntry { - /** - * Constructs a new ContractCodeHistoryEntry. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry); - - /** ContractCodeHistoryEntry operation. */ - public operation: cosmwasm.wasm.v1beta1.ContractCodeHistoryOperationType; - - /** ContractCodeHistoryEntry codeId. */ - public codeId: Long; - - /** ContractCodeHistoryEntry updated. */ - public updated?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - - /** ContractCodeHistoryEntry msg. */ - public msg: Uint8Array; - - /** - * Creates a new ContractCodeHistoryEntry instance using the specified properties. - * @param [properties] Properties to set - * @returns ContractCodeHistoryEntry instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry, - ): cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry; - - /** - * Encodes the specified ContractCodeHistoryEntry message. Does not implicitly {@link cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry.verify|verify} messages. - * @param m ContractCodeHistoryEntry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ContractCodeHistoryEntry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ContractCodeHistoryEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry; - } - - /** Properties of an AbsoluteTxPosition. */ - interface IAbsoluteTxPosition { - /** AbsoluteTxPosition blockHeight */ - blockHeight?: Long | null; - - /** AbsoluteTxPosition txIndex */ - txIndex?: Long | null; - } - - /** Represents an AbsoluteTxPosition. */ - class AbsoluteTxPosition implements IAbsoluteTxPosition { - /** - * Constructs a new AbsoluteTxPosition. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition); - - /** AbsoluteTxPosition blockHeight. */ - public blockHeight: Long; - - /** AbsoluteTxPosition txIndex. */ - public txIndex: Long; - - /** - * Creates a new AbsoluteTxPosition instance using the specified properties. - * @param [properties] Properties to set - * @returns AbsoluteTxPosition instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition, - ): cosmwasm.wasm.v1beta1.AbsoluteTxPosition; - - /** - * Encodes the specified AbsoluteTxPosition message. Does not implicitly {@link cosmwasm.wasm.v1beta1.AbsoluteTxPosition.verify|verify} messages. - * @param m AbsoluteTxPosition message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an AbsoluteTxPosition message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns AbsoluteTxPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.AbsoluteTxPosition; - } - - /** Properties of a Model. */ - interface IModel { - /** Model key */ - key?: Uint8Array | null; - - /** Model value */ - value?: Uint8Array | null; - } - - /** Represents a Model. */ - class Model implements IModel { - /** - * Constructs a new Model. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IModel); - - /** Model key. */ - public key: Uint8Array; - - /** Model value. */ - public value: Uint8Array; - - /** - * Creates a new Model instance using the specified properties. - * @param [properties] Properties to set - * @returns Model instance - */ - public static create(properties?: cosmwasm.wasm.v1beta1.IModel): cosmwasm.wasm.v1beta1.Model; - - /** - * Encodes the specified Model message. Does not implicitly {@link cosmwasm.wasm.v1beta1.Model.verify|verify} messages. - * @param m Model message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IModel, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Model message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Model - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmwasm.wasm.v1beta1.Model; - } - } - } -} - -/** Namespace cosmos. */ -export namespace cosmos { - /** Namespace base. */ - namespace base { - /** Namespace v1beta1. */ - namespace v1beta1 { - /** Properties of a Coin. */ - interface ICoin { - /** Coin denom */ - denom?: string | null; - - /** Coin amount */ - amount?: string | null; - } - - /** Represents a Coin. */ - class Coin implements ICoin { - /** - * Constructs a new Coin. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.ICoin); - - /** Coin denom. */ - public denom: string; - - /** Coin amount. */ - public amount: string; - - /** - * Creates a new Coin instance using the specified properties. - * @param [properties] Properties to set - * @returns Coin instance - */ - public static create(properties?: cosmos.base.v1beta1.ICoin): cosmos.base.v1beta1.Coin; - - /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. - * @param m Coin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.ICoin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Coin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Coin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.Coin; - } - - /** Properties of a DecCoin. */ - interface IDecCoin { - /** DecCoin denom */ - denom?: string | null; - - /** DecCoin amount */ - amount?: string | null; - } - - /** Represents a DecCoin. */ - class DecCoin implements IDecCoin { - /** - * Constructs a new DecCoin. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.IDecCoin); - - /** DecCoin denom. */ - public denom: string; - - /** DecCoin amount. */ - public amount: string; - - /** - * Creates a new DecCoin instance using the specified properties. - * @param [properties] Properties to set - * @returns DecCoin instance - */ - public static create(properties?: cosmos.base.v1beta1.IDecCoin): cosmos.base.v1beta1.DecCoin; - - /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. - * @param m DecCoin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecCoin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DecCoin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.DecCoin; - } - - /** Properties of an IntProto. */ - interface IIntProto { - /** IntProto int */ - int?: string | null; - } - - /** Represents an IntProto. */ - class IntProto implements IIntProto { - /** - * Constructs a new IntProto. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.IIntProto); - - /** IntProto int. */ - public int: string; - - /** - * Creates a new IntProto instance using the specified properties. - * @param [properties] Properties to set - * @returns IntProto instance - */ - public static create(properties?: cosmos.base.v1beta1.IIntProto): cosmos.base.v1beta1.IntProto; - - /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. - * @param m IntProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns IntProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.IntProto; - } - - /** Properties of a DecProto. */ - interface IDecProto { - /** DecProto dec */ - dec?: string | null; - } - - /** Represents a DecProto. */ - class DecProto implements IDecProto { - /** - * Constructs a new DecProto. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.IDecProto); - - /** DecProto dec. */ - public dec: string; - - /** - * Creates a new DecProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DecProto instance - */ - public static create(properties?: cosmos.base.v1beta1.IDecProto): cosmos.base.v1beta1.DecProto; - - /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. - * @param m DecProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DecProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.DecProto; - } - } - - /** Namespace query. */ - namespace query { - /** Namespace v1beta1. */ - namespace v1beta1 { - /** Properties of a PageRequest. */ - interface IPageRequest { - /** PageRequest key */ - key?: Uint8Array | null; - - /** PageRequest offset */ - offset?: Long | null; - - /** PageRequest limit */ - limit?: Long | null; - - /** PageRequest countTotal */ - countTotal?: boolean | null; - } - - /** Represents a PageRequest. */ - class PageRequest implements IPageRequest { - /** - * Constructs a new PageRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.query.v1beta1.IPageRequest); - - /** PageRequest key. */ - public key: Uint8Array; - - /** PageRequest offset. */ - public offset: Long; - - /** PageRequest limit. */ - public limit: Long; - - /** PageRequest countTotal. */ - public countTotal: boolean; - - /** - * Creates a new PageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PageRequest instance - */ - public static create( - properties?: cosmos.base.query.v1beta1.IPageRequest, - ): cosmos.base.query.v1beta1.PageRequest; - - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @param m PageRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmos.base.query.v1beta1.IPageRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmos.base.query.v1beta1.PageRequest; - } - - /** Properties of a PageResponse. */ - interface IPageResponse { - /** PageResponse nextKey */ - nextKey?: Uint8Array | null; - - /** PageResponse total */ - total?: Long | null; - } - - /** Represents a PageResponse. */ - class PageResponse implements IPageResponse { - /** - * Constructs a new PageResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.query.v1beta1.IPageResponse); - - /** PageResponse nextKey. */ - public nextKey: Uint8Array; - - /** PageResponse total. */ - public total: Long; - - /** - * Creates a new PageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PageResponse instance - */ - public static create( - properties?: cosmos.base.query.v1beta1.IPageResponse, - ): cosmos.base.query.v1beta1.PageResponse; - - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @param m PageResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmos.base.query.v1beta1.IPageResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmos.base.query.v1beta1.PageResponse; - } - } - } - } -} diff --git a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js b/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js deleted file mode 100644 index 48086626..00000000 --- a/packages/cosmwasm-stargate/src/codec/generated/codecimpl.js +++ /dev/null @@ -1,2108 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.cosmos = exports.cosmwasm = void 0; -var $protobuf = require("protobufjs/minimal"); -const $Reader = $protobuf.Reader, - $Writer = $protobuf.Writer, - $util = $protobuf.util; -const $root = {}; -exports.cosmwasm = $root.cosmwasm = (() => { - const cosmwasm = {}; - cosmwasm.wasm = (function () { - const wasm = {}; - wasm.v1beta1 = (function () { - const v1beta1 = {}; - v1beta1.Query = (function () { - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (Query.prototype.contractInfo = function contractInfo(request, callback) { - return this.rpcCall( - contractInfo, - $root.cosmwasm.wasm.v1beta1.QueryContractInfoRequest, - $root.cosmwasm.wasm.v1beta1.QueryContractInfoResponse, - request, - callback, - ); - }), - "name", - { value: "ContractInfo" }, - ); - Object.defineProperty( - (Query.prototype.contractHistory = function contractHistory(request, callback) { - return this.rpcCall( - contractHistory, - $root.cosmwasm.wasm.v1beta1.QueryContractHistoryRequest, - $root.cosmwasm.wasm.v1beta1.QueryContractHistoryResponse, - request, - callback, - ); - }), - "name", - { value: "ContractHistory" }, - ); - Object.defineProperty( - (Query.prototype.contractsByCode = function contractsByCode(request, callback) { - return this.rpcCall( - contractsByCode, - $root.cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest, - $root.cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse, - request, - callback, - ); - }), - "name", - { value: "ContractsByCode" }, - ); - Object.defineProperty( - (Query.prototype.allContractState = function allContractState(request, callback) { - return this.rpcCall( - allContractState, - $root.cosmwasm.wasm.v1beta1.QueryAllContractStateRequest, - $root.cosmwasm.wasm.v1beta1.QueryAllContractStateResponse, - request, - callback, - ); - }), - "name", - { value: "AllContractState" }, - ); - Object.defineProperty( - (Query.prototype.rawContractState = function rawContractState(request, callback) { - return this.rpcCall( - rawContractState, - $root.cosmwasm.wasm.v1beta1.QueryRawContractStateRequest, - $root.cosmwasm.wasm.v1beta1.QueryRawContractStateResponse, - request, - callback, - ); - }), - "name", - { value: "RawContractState" }, - ); - Object.defineProperty( - (Query.prototype.smartContractState = function smartContractState(request, callback) { - return this.rpcCall( - smartContractState, - $root.cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest, - $root.cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse, - request, - callback, - ); - }), - "name", - { value: "SmartContractState" }, - ); - Object.defineProperty( - (Query.prototype.code = function code(request, callback) { - return this.rpcCall( - code, - $root.cosmwasm.wasm.v1beta1.QueryCodeRequest, - $root.cosmwasm.wasm.v1beta1.QueryCodeResponse, - request, - callback, - ); - }), - "name", - { value: "Code" }, - ); - Object.defineProperty( - (Query.prototype.codes = function codes(request, callback) { - return this.rpcCall( - codes, - $root.cosmwasm.wasm.v1beta1.QueryCodesRequest, - $root.cosmwasm.wasm.v1beta1.QueryCodesResponse, - request, - callback, - ); - }), - "name", - { value: "Codes" }, - ); - return Query; - })(); - v1beta1.QueryContractInfoRequest = (function () { - function QueryContractInfoRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryContractInfoRequest.prototype.address = ""; - QueryContractInfoRequest.create = function create(properties) { - return new QueryContractInfoRequest(properties); - }; - QueryContractInfoRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - return w; - }; - QueryContractInfoRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryContractInfoRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryContractInfoRequest; - })(); - v1beta1.QueryContractInfoResponse = (function () { - function QueryContractInfoResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryContractInfoResponse.prototype.address = ""; - QueryContractInfoResponse.prototype.contractInfo = null; - QueryContractInfoResponse.create = function create(properties) { - return new QueryContractInfoResponse(properties); - }; - QueryContractInfoResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - if (m.contractInfo != null && Object.hasOwnProperty.call(m, "contractInfo")) - $root.cosmwasm.wasm.v1beta1.ContractInfo.encode(m.contractInfo, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryContractInfoResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryContractInfoResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - case 2: - m.contractInfo = $root.cosmwasm.wasm.v1beta1.ContractInfo.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryContractInfoResponse; - })(); - v1beta1.QueryContractHistoryRequest = (function () { - function QueryContractHistoryRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryContractHistoryRequest.prototype.address = ""; - QueryContractHistoryRequest.prototype.pagination = null; - QueryContractHistoryRequest.create = function create(properties) { - return new QueryContractHistoryRequest(properties); - }; - QueryContractHistoryRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryContractHistoryRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryContractHistoryRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryContractHistoryRequest; - })(); - v1beta1.QueryContractHistoryResponse = (function () { - function QueryContractHistoryResponse(p) { - this.entries = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryContractHistoryResponse.prototype.entries = $util.emptyArray; - QueryContractHistoryResponse.prototype.pagination = null; - QueryContractHistoryResponse.create = function create(properties) { - return new QueryContractHistoryResponse(properties); - }; - QueryContractHistoryResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.entries != null && m.entries.length) { - for (var i = 0; i < m.entries.length; ++i) - $root.cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry.encode( - m.entries[i], - w.uint32(10).fork(), - ).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryContractHistoryResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryContractHistoryResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.entries && m.entries.length)) m.entries = []; - m.entries.push($root.cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryContractHistoryResponse; - })(); - v1beta1.QueryContractsByCodeRequest = (function () { - function QueryContractsByCodeRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryContractsByCodeRequest.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryContractsByCodeRequest.prototype.pagination = null; - QueryContractsByCodeRequest.create = function create(properties) { - return new QueryContractsByCodeRequest(properties); - }; - QueryContractsByCodeRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(8).uint64(m.codeId); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryContractsByCodeRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeId = r.uint64(); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryContractsByCodeRequest; - })(); - v1beta1.ContractInfoWithAddress = (function () { - function ContractInfoWithAddress(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ContractInfoWithAddress.prototype.address = ""; - ContractInfoWithAddress.prototype.contractInfo = null; - ContractInfoWithAddress.create = function create(properties) { - return new ContractInfoWithAddress(properties); - }; - ContractInfoWithAddress.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - if (m.contractInfo != null && Object.hasOwnProperty.call(m, "contractInfo")) - $root.cosmwasm.wasm.v1beta1.ContractInfo.encode(m.contractInfo, w.uint32(18).fork()).ldelim(); - return w; - }; - ContractInfoWithAddress.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.ContractInfoWithAddress(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - case 2: - m.contractInfo = $root.cosmwasm.wasm.v1beta1.ContractInfo.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ContractInfoWithAddress; - })(); - v1beta1.QueryContractsByCodeResponse = (function () { - function QueryContractsByCodeResponse(p) { - this.contractInfos = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryContractsByCodeResponse.prototype.contractInfos = $util.emptyArray; - QueryContractsByCodeResponse.prototype.pagination = null; - QueryContractsByCodeResponse.create = function create(properties) { - return new QueryContractsByCodeResponse(properties); - }; - QueryContractsByCodeResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.contractInfos != null && m.contractInfos.length) { - for (var i = 0; i < m.contractInfos.length; ++i) - $root.cosmwasm.wasm.v1beta1.ContractInfoWithAddress.encode( - m.contractInfos[i], - w.uint32(10).fork(), - ).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryContractsByCodeResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.contractInfos && m.contractInfos.length)) m.contractInfos = []; - m.contractInfos.push( - $root.cosmwasm.wasm.v1beta1.ContractInfoWithAddress.decode(r, r.uint32()), - ); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryContractsByCodeResponse; - })(); - v1beta1.QueryAllContractStateRequest = (function () { - function QueryAllContractStateRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryAllContractStateRequest.prototype.address = ""; - QueryAllContractStateRequest.prototype.pagination = null; - QueryAllContractStateRequest.create = function create(properties) { - return new QueryAllContractStateRequest(properties); - }; - QueryAllContractStateRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryAllContractStateRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryAllContractStateRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryAllContractStateRequest; - })(); - v1beta1.QueryAllContractStateResponse = (function () { - function QueryAllContractStateResponse(p) { - this.models = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryAllContractStateResponse.prototype.models = $util.emptyArray; - QueryAllContractStateResponse.prototype.pagination = null; - QueryAllContractStateResponse.create = function create(properties) { - return new QueryAllContractStateResponse(properties); - }; - QueryAllContractStateResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.models != null && m.models.length) { - for (var i = 0; i < m.models.length; ++i) - $root.cosmwasm.wasm.v1beta1.Model.encode(m.models[i], w.uint32(10).fork()).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryAllContractStateResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryAllContractStateResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.models && m.models.length)) m.models = []; - m.models.push($root.cosmwasm.wasm.v1beta1.Model.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryAllContractStateResponse; - })(); - v1beta1.QueryRawContractStateRequest = (function () { - function QueryRawContractStateRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryRawContractStateRequest.prototype.address = ""; - QueryRawContractStateRequest.prototype.queryData = $util.newBuffer([]); - QueryRawContractStateRequest.create = function create(properties) { - return new QueryRawContractStateRequest(properties); - }; - QueryRawContractStateRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - if (m.queryData != null && Object.hasOwnProperty.call(m, "queryData")) - w.uint32(18).bytes(m.queryData); - return w; - }; - QueryRawContractStateRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryRawContractStateRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - case 2: - m.queryData = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryRawContractStateRequest; - })(); - v1beta1.QueryRawContractStateResponse = (function () { - function QueryRawContractStateResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryRawContractStateResponse.prototype.data = $util.newBuffer([]); - QueryRawContractStateResponse.create = function create(properties) { - return new QueryRawContractStateResponse(properties); - }; - QueryRawContractStateResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); - return w; - }; - QueryRawContractStateResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryRawContractStateResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryRawContractStateResponse; - })(); - v1beta1.QuerySmartContractStateRequest = (function () { - function QuerySmartContractStateRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QuerySmartContractStateRequest.prototype.address = ""; - QuerySmartContractStateRequest.prototype.queryData = $util.newBuffer([]); - QuerySmartContractStateRequest.create = function create(properties) { - return new QuerySmartContractStateRequest(properties); - }; - QuerySmartContractStateRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - if (m.queryData != null && Object.hasOwnProperty.call(m, "queryData")) - w.uint32(18).bytes(m.queryData); - return w; - }; - QuerySmartContractStateRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - case 2: - m.queryData = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QuerySmartContractStateRequest; - })(); - v1beta1.QuerySmartContractStateResponse = (function () { - function QuerySmartContractStateResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QuerySmartContractStateResponse.prototype.data = $util.newBuffer([]); - QuerySmartContractStateResponse.create = function create(properties) { - return new QuerySmartContractStateResponse(properties); - }; - QuerySmartContractStateResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); - return w; - }; - QuerySmartContractStateResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QuerySmartContractStateResponse; - })(); - v1beta1.QueryCodeRequest = (function () { - function QueryCodeRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryCodeRequest.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryCodeRequest.create = function create(properties) { - return new QueryCodeRequest(properties); - }; - QueryCodeRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(8).uint64(m.codeId); - return w; - }; - QueryCodeRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryCodeRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeId = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryCodeRequest; - })(); - v1beta1.CodeInfoResponse = (function () { - function CodeInfoResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - CodeInfoResponse.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - CodeInfoResponse.prototype.creator = ""; - CodeInfoResponse.prototype.dataHash = $util.newBuffer([]); - CodeInfoResponse.prototype.source = ""; - CodeInfoResponse.prototype.builder = ""; - CodeInfoResponse.create = function create(properties) { - return new CodeInfoResponse(properties); - }; - CodeInfoResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(8).uint64(m.codeId); - if (m.creator != null && Object.hasOwnProperty.call(m, "creator")) w.uint32(18).string(m.creator); - if (m.dataHash != null && Object.hasOwnProperty.call(m, "dataHash")) w.uint32(26).bytes(m.dataHash); - if (m.source != null && Object.hasOwnProperty.call(m, "source")) w.uint32(34).string(m.source); - if (m.builder != null && Object.hasOwnProperty.call(m, "builder")) w.uint32(42).string(m.builder); - return w; - }; - CodeInfoResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.CodeInfoResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeId = r.uint64(); - break; - case 2: - m.creator = r.string(); - break; - case 3: - m.dataHash = r.bytes(); - break; - case 4: - m.source = r.string(); - break; - case 5: - m.builder = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return CodeInfoResponse; - })(); - v1beta1.QueryCodeResponse = (function () { - function QueryCodeResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryCodeResponse.prototype.codeInfo = null; - QueryCodeResponse.prototype.data = $util.newBuffer([]); - QueryCodeResponse.create = function create(properties) { - return new QueryCodeResponse(properties); - }; - QueryCodeResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeInfo != null && Object.hasOwnProperty.call(m, "codeInfo")) - $root.cosmwasm.wasm.v1beta1.CodeInfoResponse.encode(m.codeInfo, w.uint32(10).fork()).ldelim(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); - return w; - }; - QueryCodeResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryCodeResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeInfo = $root.cosmwasm.wasm.v1beta1.CodeInfoResponse.decode(r, r.uint32()); - break; - case 2: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryCodeResponse; - })(); - v1beta1.QueryCodesRequest = (function () { - function QueryCodesRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryCodesRequest.prototype.pagination = null; - QueryCodesRequest.create = function create(properties) { - return new QueryCodesRequest(properties); - }; - QueryCodesRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(10).fork()).ldelim(); - return w; - }; - QueryCodesRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryCodesRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryCodesRequest; - })(); - v1beta1.QueryCodesResponse = (function () { - function QueryCodesResponse(p) { - this.codeInfos = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - QueryCodesResponse.prototype.codeInfos = $util.emptyArray; - QueryCodesResponse.prototype.pagination = null; - QueryCodesResponse.create = function create(properties) { - return new QueryCodesResponse(properties); - }; - QueryCodesResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeInfos != null && m.codeInfos.length) { - for (var i = 0; i < m.codeInfos.length; ++i) - $root.cosmwasm.wasm.v1beta1.CodeInfoResponse.encode( - m.codeInfos[i], - w.uint32(10).fork(), - ).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryCodesResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.QueryCodesResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.codeInfos && m.codeInfos.length)) m.codeInfos = []; - m.codeInfos.push($root.cosmwasm.wasm.v1beta1.CodeInfoResponse.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryCodesResponse; - })(); - v1beta1.Msg = (function () { - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - Msg.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (Msg.prototype.storeCode = function storeCode(request, callback) { - return this.rpcCall( - storeCode, - $root.cosmwasm.wasm.v1beta1.MsgStoreCode, - $root.cosmwasm.wasm.v1beta1.MsgStoreCodeResponse, - request, - callback, - ); - }), - "name", - { value: "StoreCode" }, - ); - Object.defineProperty( - (Msg.prototype.instantiateContract = function instantiateContract(request, callback) { - return this.rpcCall( - instantiateContract, - $root.cosmwasm.wasm.v1beta1.MsgInstantiateContract, - $root.cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse, - request, - callback, - ); - }), - "name", - { value: "InstantiateContract" }, - ); - Object.defineProperty( - (Msg.prototype.executeContract = function executeContract(request, callback) { - return this.rpcCall( - executeContract, - $root.cosmwasm.wasm.v1beta1.MsgExecuteContract, - $root.cosmwasm.wasm.v1beta1.MsgExecuteContractResponse, - request, - callback, - ); - }), - "name", - { value: "ExecuteContract" }, - ); - Object.defineProperty( - (Msg.prototype.migrateContract = function migrateContract(request, callback) { - return this.rpcCall( - migrateContract, - $root.cosmwasm.wasm.v1beta1.MsgMigrateContract, - $root.cosmwasm.wasm.v1beta1.MsgMigrateContractResponse, - request, - callback, - ); - }), - "name", - { value: "MigrateContract" }, - ); - Object.defineProperty( - (Msg.prototype.updateAdmin = function updateAdmin(request, callback) { - return this.rpcCall( - updateAdmin, - $root.cosmwasm.wasm.v1beta1.MsgUpdateAdmin, - $root.cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse, - request, - callback, - ); - }), - "name", - { value: "UpdateAdmin" }, - ); - Object.defineProperty( - (Msg.prototype.clearAdmin = function clearAdmin(request, callback) { - return this.rpcCall( - clearAdmin, - $root.cosmwasm.wasm.v1beta1.MsgClearAdmin, - $root.cosmwasm.wasm.v1beta1.MsgClearAdminResponse, - request, - callback, - ); - }), - "name", - { value: "ClearAdmin" }, - ); - return Msg; - })(); - v1beta1.MsgStoreCode = (function () { - function MsgStoreCode(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgStoreCode.prototype.sender = ""; - MsgStoreCode.prototype.wasmByteCode = $util.newBuffer([]); - MsgStoreCode.prototype.source = ""; - MsgStoreCode.prototype.builder = ""; - MsgStoreCode.prototype.instantiatePermission = null; - MsgStoreCode.create = function create(properties) { - return new MsgStoreCode(properties); - }; - MsgStoreCode.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.wasmByteCode != null && Object.hasOwnProperty.call(m, "wasmByteCode")) - w.uint32(18).bytes(m.wasmByteCode); - if (m.source != null && Object.hasOwnProperty.call(m, "source")) w.uint32(26).string(m.source); - if (m.builder != null && Object.hasOwnProperty.call(m, "builder")) w.uint32(34).string(m.builder); - if (m.instantiatePermission != null && Object.hasOwnProperty.call(m, "instantiatePermission")) - $root.cosmwasm.wasm.v1beta1.AccessConfig.encode( - m.instantiatePermission, - w.uint32(42).fork(), - ).ldelim(); - return w; - }; - MsgStoreCode.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgStoreCode(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.wasmByteCode = r.bytes(); - break; - case 3: - m.source = r.string(); - break; - case 4: - m.builder = r.string(); - break; - case 5: - m.instantiatePermission = $root.cosmwasm.wasm.v1beta1.AccessConfig.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgStoreCode; - })(); - v1beta1.MsgStoreCodeResponse = (function () { - function MsgStoreCodeResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgStoreCodeResponse.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgStoreCodeResponse.create = function create(properties) { - return new MsgStoreCodeResponse(properties); - }; - MsgStoreCodeResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(8).uint64(m.codeId); - return w; - }; - MsgStoreCodeResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgStoreCodeResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeId = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgStoreCodeResponse; - })(); - v1beta1.MsgInstantiateContract = (function () { - function MsgInstantiateContract(p) { - this.initFunds = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgInstantiateContract.prototype.sender = ""; - MsgInstantiateContract.prototype.admin = ""; - MsgInstantiateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgInstantiateContract.prototype.label = ""; - MsgInstantiateContract.prototype.initMsg = $util.newBuffer([]); - MsgInstantiateContract.prototype.initFunds = $util.emptyArray; - MsgInstantiateContract.create = function create(properties) { - return new MsgInstantiateContract(properties); - }; - MsgInstantiateContract.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.admin != null && Object.hasOwnProperty.call(m, "admin")) w.uint32(18).string(m.admin); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(24).uint64(m.codeId); - if (m.label != null && Object.hasOwnProperty.call(m, "label")) w.uint32(34).string(m.label); - if (m.initMsg != null && Object.hasOwnProperty.call(m, "initMsg")) w.uint32(42).bytes(m.initMsg); - if (m.initFunds != null && m.initFunds.length) { - for (var i = 0; i < m.initFunds.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(m.initFunds[i], w.uint32(50).fork()).ldelim(); - } - return w; - }; - MsgInstantiateContract.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgInstantiateContract(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.admin = r.string(); - break; - case 3: - m.codeId = r.uint64(); - break; - case 4: - m.label = r.string(); - break; - case 5: - m.initMsg = r.bytes(); - break; - case 6: - if (!(m.initFunds && m.initFunds.length)) m.initFunds = []; - m.initFunds.push($root.cosmos.base.v1beta1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgInstantiateContract; - })(); - v1beta1.MsgInstantiateContractResponse = (function () { - function MsgInstantiateContractResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgInstantiateContractResponse.prototype.address = ""; - MsgInstantiateContractResponse.create = function create(properties) { - return new MsgInstantiateContractResponse(properties); - }; - MsgInstantiateContractResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); - return w; - }; - MsgInstantiateContractResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgInstantiateContractResponse; - })(); - v1beta1.MsgExecuteContract = (function () { - function MsgExecuteContract(p) { - this.sentFunds = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgExecuteContract.prototype.sender = ""; - MsgExecuteContract.prototype.contract = ""; - MsgExecuteContract.prototype.msg = $util.newBuffer([]); - MsgExecuteContract.prototype.sentFunds = $util.emptyArray; - MsgExecuteContract.create = function create(properties) { - return new MsgExecuteContract(properties); - }; - MsgExecuteContract.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(18).string(m.contract); - if (m.msg != null && Object.hasOwnProperty.call(m, "msg")) w.uint32(26).bytes(m.msg); - if (m.sentFunds != null && m.sentFunds.length) { - for (var i = 0; i < m.sentFunds.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(m.sentFunds[i], w.uint32(42).fork()).ldelim(); - } - return w; - }; - MsgExecuteContract.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgExecuteContract(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.contract = r.string(); - break; - case 3: - m.msg = r.bytes(); - break; - case 5: - if (!(m.sentFunds && m.sentFunds.length)) m.sentFunds = []; - m.sentFunds.push($root.cosmos.base.v1beta1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgExecuteContract; - })(); - v1beta1.MsgExecuteContractResponse = (function () { - function MsgExecuteContractResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgExecuteContractResponse.prototype.data = $util.newBuffer([]); - MsgExecuteContractResponse.create = function create(properties) { - return new MsgExecuteContractResponse(properties); - }; - MsgExecuteContractResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); - return w; - }; - MsgExecuteContractResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgExecuteContractResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgExecuteContractResponse; - })(); - v1beta1.MsgMigrateContract = (function () { - function MsgMigrateContract(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgMigrateContract.prototype.sender = ""; - MsgMigrateContract.prototype.contract = ""; - MsgMigrateContract.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgMigrateContract.prototype.migrateMsg = $util.newBuffer([]); - MsgMigrateContract.create = function create(properties) { - return new MsgMigrateContract(properties); - }; - MsgMigrateContract.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(18).string(m.contract); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(24).uint64(m.codeId); - if (m.migrateMsg != null && Object.hasOwnProperty.call(m, "migrateMsg")) - w.uint32(34).bytes(m.migrateMsg); - return w; - }; - MsgMigrateContract.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgMigrateContract(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.contract = r.string(); - break; - case 3: - m.codeId = r.uint64(); - break; - case 4: - m.migrateMsg = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgMigrateContract; - })(); - v1beta1.MsgMigrateContractResponse = (function () { - function MsgMigrateContractResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgMigrateContractResponse.prototype.data = $util.newBuffer([]); - MsgMigrateContractResponse.create = function create(properties) { - return new MsgMigrateContractResponse(properties); - }; - MsgMigrateContractResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); - return w; - }; - MsgMigrateContractResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgMigrateContractResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgMigrateContractResponse; - })(); - v1beta1.MsgUpdateAdmin = (function () { - function MsgUpdateAdmin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgUpdateAdmin.prototype.sender = ""; - MsgUpdateAdmin.prototype.newAdmin = ""; - MsgUpdateAdmin.prototype.contract = ""; - MsgUpdateAdmin.create = function create(properties) { - return new MsgUpdateAdmin(properties); - }; - MsgUpdateAdmin.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.newAdmin != null && Object.hasOwnProperty.call(m, "newAdmin")) - w.uint32(18).string(m.newAdmin); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(26).string(m.contract); - return w; - }; - MsgUpdateAdmin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgUpdateAdmin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 2: - m.newAdmin = r.string(); - break; - case 3: - m.contract = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgUpdateAdmin; - })(); - v1beta1.MsgUpdateAdminResponse = (function () { - function MsgUpdateAdminResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgUpdateAdminResponse.create = function create(properties) { - return new MsgUpdateAdminResponse(properties); - }; - MsgUpdateAdminResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - MsgUpdateAdminResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgUpdateAdminResponse; - })(); - v1beta1.MsgClearAdmin = (function () { - function MsgClearAdmin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgClearAdmin.prototype.sender = ""; - MsgClearAdmin.prototype.contract = ""; - MsgClearAdmin.create = function create(properties) { - return new MsgClearAdmin(properties); - }; - MsgClearAdmin.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(10).string(m.sender); - if (m.contract != null && Object.hasOwnProperty.call(m, "contract")) - w.uint32(26).string(m.contract); - return w; - }; - MsgClearAdmin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgClearAdmin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.string(); - break; - case 3: - m.contract = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgClearAdmin; - })(); - v1beta1.MsgClearAdminResponse = (function () { - function MsgClearAdminResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - MsgClearAdminResponse.create = function create(properties) { - return new MsgClearAdminResponse(properties); - }; - MsgClearAdminResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - MsgClearAdminResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.MsgClearAdminResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgClearAdminResponse; - })(); - v1beta1.AccessType = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[0] = "ACCESS_TYPE_UNSPECIFIED")] = 0; - values[(valuesById[1] = "ACCESS_TYPE_NOBODY")] = 1; - values[(valuesById[2] = "ACCESS_TYPE_ONLY_ADDRESS")] = 2; - values[(valuesById[3] = "ACCESS_TYPE_EVERYBODY")] = 3; - return values; - })(); - v1beta1.AccessTypeParam = (function () { - function AccessTypeParam(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - AccessTypeParam.prototype.value = 0; - AccessTypeParam.create = function create(properties) { - return new AccessTypeParam(properties); - }; - AccessTypeParam.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(8).int32(m.value); - return w; - }; - AccessTypeParam.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.AccessTypeParam(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.value = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return AccessTypeParam; - })(); - v1beta1.AccessConfig = (function () { - function AccessConfig(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - AccessConfig.prototype.permission = 0; - AccessConfig.prototype.address = ""; - AccessConfig.create = function create(properties) { - return new AccessConfig(properties); - }; - AccessConfig.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.permission != null && Object.hasOwnProperty.call(m, "permission")) - w.uint32(8).int32(m.permission); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(18).string(m.address); - return w; - }; - AccessConfig.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.AccessConfig(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.permission = r.int32(); - break; - case 2: - m.address = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return AccessConfig; - })(); - v1beta1.Params = (function () { - function Params(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Params.prototype.codeUploadAccess = null; - Params.prototype.instantiateDefaultPermission = 0; - Params.prototype.maxWasmCodeSize = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Params.create = function create(properties) { - return new Params(properties); - }; - Params.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeUploadAccess != null && Object.hasOwnProperty.call(m, "codeUploadAccess")) - $root.cosmwasm.wasm.v1beta1.AccessConfig.encode(m.codeUploadAccess, w.uint32(10).fork()).ldelim(); - if ( - m.instantiateDefaultPermission != null && - Object.hasOwnProperty.call(m, "instantiateDefaultPermission") - ) - w.uint32(16).int32(m.instantiateDefaultPermission); - if (m.maxWasmCodeSize != null && Object.hasOwnProperty.call(m, "maxWasmCodeSize")) - w.uint32(24).uint64(m.maxWasmCodeSize); - return w; - }; - Params.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.Params(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeUploadAccess = $root.cosmwasm.wasm.v1beta1.AccessConfig.decode(r, r.uint32()); - break; - case 2: - m.instantiateDefaultPermission = r.int32(); - break; - case 3: - m.maxWasmCodeSize = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Params; - })(); - v1beta1.CodeInfo = (function () { - function CodeInfo(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - CodeInfo.prototype.codeHash = $util.newBuffer([]); - CodeInfo.prototype.creator = ""; - CodeInfo.prototype.source = ""; - CodeInfo.prototype.builder = ""; - CodeInfo.prototype.instantiateConfig = null; - CodeInfo.create = function create(properties) { - return new CodeInfo(properties); - }; - CodeInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeHash != null && Object.hasOwnProperty.call(m, "codeHash")) w.uint32(10).bytes(m.codeHash); - if (m.creator != null && Object.hasOwnProperty.call(m, "creator")) w.uint32(18).string(m.creator); - if (m.source != null && Object.hasOwnProperty.call(m, "source")) w.uint32(26).string(m.source); - if (m.builder != null && Object.hasOwnProperty.call(m, "builder")) w.uint32(34).string(m.builder); - if (m.instantiateConfig != null && Object.hasOwnProperty.call(m, "instantiateConfig")) - $root.cosmwasm.wasm.v1beta1.AccessConfig.encode( - m.instantiateConfig, - w.uint32(42).fork(), - ).ldelim(); - return w; - }; - CodeInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.CodeInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeHash = r.bytes(); - break; - case 2: - m.creator = r.string(); - break; - case 3: - m.source = r.string(); - break; - case 4: - m.builder = r.string(); - break; - case 5: - m.instantiateConfig = $root.cosmwasm.wasm.v1beta1.AccessConfig.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return CodeInfo; - })(); - v1beta1.ContractInfo = (function () { - function ContractInfo(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ContractInfo.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - ContractInfo.prototype.creator = ""; - ContractInfo.prototype.admin = ""; - ContractInfo.prototype.label = ""; - ContractInfo.prototype.created = null; - ContractInfo.create = function create(properties) { - return new ContractInfo(properties); - }; - ContractInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(8).uint64(m.codeId); - if (m.creator != null && Object.hasOwnProperty.call(m, "creator")) w.uint32(18).string(m.creator); - if (m.admin != null && Object.hasOwnProperty.call(m, "admin")) w.uint32(26).string(m.admin); - if (m.label != null && Object.hasOwnProperty.call(m, "label")) w.uint32(34).string(m.label); - if (m.created != null && Object.hasOwnProperty.call(m, "created")) - $root.cosmwasm.wasm.v1beta1.AbsoluteTxPosition.encode(m.created, w.uint32(42).fork()).ldelim(); - return w; - }; - ContractInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.ContractInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.codeId = r.uint64(); - break; - case 2: - m.creator = r.string(); - break; - case 3: - m.admin = r.string(); - break; - case 4: - m.label = r.string(); - break; - case 5: - m.created = $root.cosmwasm.wasm.v1beta1.AbsoluteTxPosition.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ContractInfo; - })(); - v1beta1.ContractCodeHistoryOperationType = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[0] = "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED")] = 0; - values[(valuesById[1] = "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT")] = 1; - values[(valuesById[2] = "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE")] = 2; - values[(valuesById[3] = "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS")] = 3; - return values; - })(); - v1beta1.ContractCodeHistoryEntry = (function () { - function ContractCodeHistoryEntry(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - ContractCodeHistoryEntry.prototype.operation = 0; - ContractCodeHistoryEntry.prototype.codeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - ContractCodeHistoryEntry.prototype.updated = null; - ContractCodeHistoryEntry.prototype.msg = $util.newBuffer([]); - ContractCodeHistoryEntry.create = function create(properties) { - return new ContractCodeHistoryEntry(properties); - }; - ContractCodeHistoryEntry.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.operation != null && Object.hasOwnProperty.call(m, "operation")) - w.uint32(8).int32(m.operation); - if (m.codeId != null && Object.hasOwnProperty.call(m, "codeId")) w.uint32(16).uint64(m.codeId); - if (m.updated != null && Object.hasOwnProperty.call(m, "updated")) - $root.cosmwasm.wasm.v1beta1.AbsoluteTxPosition.encode(m.updated, w.uint32(26).fork()).ldelim(); - if (m.msg != null && Object.hasOwnProperty.call(m, "msg")) w.uint32(34).bytes(m.msg); - return w; - }; - ContractCodeHistoryEntry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.operation = r.int32(); - break; - case 2: - m.codeId = r.uint64(); - break; - case 3: - m.updated = $root.cosmwasm.wasm.v1beta1.AbsoluteTxPosition.decode(r, r.uint32()); - break; - case 4: - m.msg = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ContractCodeHistoryEntry; - })(); - v1beta1.AbsoluteTxPosition = (function () { - function AbsoluteTxPosition(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - AbsoluteTxPosition.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - AbsoluteTxPosition.prototype.txIndex = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - AbsoluteTxPosition.create = function create(properties) { - return new AbsoluteTxPosition(properties); - }; - AbsoluteTxPosition.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.blockHeight != null && Object.hasOwnProperty.call(m, "blockHeight")) - w.uint32(8).uint64(m.blockHeight); - if (m.txIndex != null && Object.hasOwnProperty.call(m, "txIndex")) w.uint32(16).uint64(m.txIndex); - return w; - }; - AbsoluteTxPosition.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.AbsoluteTxPosition(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.blockHeight = r.uint64(); - break; - case 2: - m.txIndex = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return AbsoluteTxPosition; - })(); - v1beta1.Model = (function () { - function Model(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Model.prototype.key = $util.newBuffer([]); - Model.prototype.value = $util.newBuffer([]); - Model.create = function create(properties) { - return new Model(properties); - }; - Model.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).bytes(m.value); - return w; - }; - Model.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmwasm.wasm.v1beta1.Model(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.bytes(); - break; - case 2: - m.value = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Model; - })(); - return v1beta1; - })(); - return wasm; - })(); - return cosmwasm; -})(); -exports.cosmos = $root.cosmos = (() => { - const cosmos = {}; - cosmos.base = (function () { - const base = {}; - base.v1beta1 = (function () { - const v1beta1 = {}; - v1beta1.Coin = (function () { - function Coin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - Coin.prototype.denom = ""; - Coin.prototype.amount = ""; - Coin.create = function create(properties) { - return new Coin(properties); - }; - Coin.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) w.uint32(18).string(m.amount); - return w; - }; - Coin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmos.base.v1beta1.Coin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - case 2: - m.amount = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Coin; - })(); - v1beta1.DecCoin = (function () { - function DecCoin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - DecCoin.prototype.denom = ""; - DecCoin.prototype.amount = ""; - DecCoin.create = function create(properties) { - return new DecCoin(properties); - }; - DecCoin.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) w.uint32(18).string(m.amount); - return w; - }; - DecCoin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmos.base.v1beta1.DecCoin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - case 2: - m.amount = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return DecCoin; - })(); - v1beta1.IntProto = (function () { - function IntProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - IntProto.prototype.int = ""; - IntProto.create = function create(properties) { - return new IntProto(properties); - }; - IntProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.int != null && Object.hasOwnProperty.call(m, "int")) w.uint32(10).string(m.int); - return w; - }; - IntProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmos.base.v1beta1.IntProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.int = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return IntProto; - })(); - v1beta1.DecProto = (function () { - function DecProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - DecProto.prototype.dec = ""; - DecProto.create = function create(properties) { - return new DecProto(properties); - }; - DecProto.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.dec != null && Object.hasOwnProperty.call(m, "dec")) w.uint32(10).string(m.dec); - return w; - }; - DecProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmos.base.v1beta1.DecProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.dec = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return DecProto; - })(); - return v1beta1; - })(); - base.query = (function () { - const query = {}; - query.v1beta1 = (function () { - const v1beta1 = {}; - v1beta1.PageRequest = (function () { - function PageRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - PageRequest.prototype.key = $util.newBuffer([]); - PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PageRequest.prototype.countTotal = false; - PageRequest.create = function create(properties) { - return new PageRequest(properties); - }; - PageRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); - if (m.offset != null && Object.hasOwnProperty.call(m, "offset")) w.uint32(16).uint64(m.offset); - if (m.limit != null && Object.hasOwnProperty.call(m, "limit")) w.uint32(24).uint64(m.limit); - if (m.countTotal != null && Object.hasOwnProperty.call(m, "countTotal")) - w.uint32(32).bool(m.countTotal); - return w; - }; - PageRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmos.base.query.v1beta1.PageRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.bytes(); - break; - case 2: - m.offset = r.uint64(); - break; - case 3: - m.limit = r.uint64(); - break; - case 4: - m.countTotal = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PageRequest; - })(); - v1beta1.PageResponse = (function () { - function PageResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; - } - PageResponse.prototype.nextKey = $util.newBuffer([]); - PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PageResponse.create = function create(properties) { - return new PageResponse(properties); - }; - PageResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.nextKey != null && Object.hasOwnProperty.call(m, "nextKey")) w.uint32(10).bytes(m.nextKey); - if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(16).uint64(m.total); - return w; - }; - PageResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, - m = new $root.cosmos.base.query.v1beta1.PageResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.nextKey = r.bytes(); - break; - case 2: - m.total = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PageResponse; - })(); - return v1beta1; - })(); - return query; - })(); - return base; - })(); - return cosmos; -})(); -module.exports = $root; diff --git a/packages/cosmwasm-stargate/src/codec/index.ts b/packages/cosmwasm-stargate/src/codec/index.ts deleted file mode 100644 index c6204790..00000000 --- a/packages/cosmwasm-stargate/src/codec/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import Long from "long"; -import protobuf from "protobufjs/minimal"; - -// Ensure the protobuf module has a Long implementation, which otherwise only works -// in Node.js (see https://github.com/protobufjs/protobuf.js/issues/921#issuecomment-334925145) -protobuf.util.Long = Long; -protobuf.configure(); - -export { cosmwasm } from "./generated/codecimpl"; diff --git a/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts b/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts deleted file mode 100644 index 98d5e340..00000000 --- a/packages/cosmwasm-stargate/types/codec/generated/codecimpl.d.ts +++ /dev/null @@ -1,2995 +0,0 @@ -import * as $protobuf from "protobufjs"; -/** Namespace cosmwasm. */ -export namespace cosmwasm { - /** Namespace wasm. */ - namespace wasm { - /** Namespace v1beta1. */ - namespace v1beta1 { - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { - /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Query service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create( - rpcImpl: $protobuf.RPCImpl, - requestDelimited?: boolean, - responseDelimited?: boolean, - ): Query; - - /** - * Calls ContractInfo. - * @param request QueryContractInfoRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryContractInfoResponse - */ - public contractInfo( - request: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - callback: cosmwasm.wasm.v1beta1.Query.ContractInfoCallback, - ): void; - - /** - * Calls ContractInfo. - * @param request QueryContractInfoRequest message or plain object - * @returns Promise - */ - public contractInfo( - request: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - ): Promise; - - /** - * Calls ContractHistory. - * @param request QueryContractHistoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryContractHistoryResponse - */ - public contractHistory( - request: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - callback: cosmwasm.wasm.v1beta1.Query.ContractHistoryCallback, - ): void; - - /** - * Calls ContractHistory. - * @param request QueryContractHistoryRequest message or plain object - * @returns Promise - */ - public contractHistory( - request: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - ): Promise; - - /** - * Calls ContractsByCode. - * @param request QueryContractsByCodeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryContractsByCodeResponse - */ - public contractsByCode( - request: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - callback: cosmwasm.wasm.v1beta1.Query.ContractsByCodeCallback, - ): void; - - /** - * Calls ContractsByCode. - * @param request QueryContractsByCodeRequest message or plain object - * @returns Promise - */ - public contractsByCode( - request: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - ): Promise; - - /** - * Calls AllContractState. - * @param request QueryAllContractStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryAllContractStateResponse - */ - public allContractState( - request: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - callback: cosmwasm.wasm.v1beta1.Query.AllContractStateCallback, - ): void; - - /** - * Calls AllContractState. - * @param request QueryAllContractStateRequest message or plain object - * @returns Promise - */ - public allContractState( - request: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - ): Promise; - - /** - * Calls RawContractState. - * @param request QueryRawContractStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryRawContractStateResponse - */ - public rawContractState( - request: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - callback: cosmwasm.wasm.v1beta1.Query.RawContractStateCallback, - ): void; - - /** - * Calls RawContractState. - * @param request QueryRawContractStateRequest message or plain object - * @returns Promise - */ - public rawContractState( - request: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - ): Promise; - - /** - * Calls SmartContractState. - * @param request QuerySmartContractStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QuerySmartContractStateResponse - */ - public smartContractState( - request: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - callback: cosmwasm.wasm.v1beta1.Query.SmartContractStateCallback, - ): void; - - /** - * Calls SmartContractState. - * @param request QuerySmartContractStateRequest message or plain object - * @returns Promise - */ - public smartContractState( - request: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - ): Promise; - - /** - * Calls Code. - * @param request QueryCodeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryCodeResponse - */ - public code( - request: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - callback: cosmwasm.wasm.v1beta1.Query.CodeCallback, - ): void; - - /** - * Calls Code. - * @param request QueryCodeRequest message or plain object - * @returns Promise - */ - public code( - request: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - ): Promise; - - /** - * Calls Codes. - * @param request QueryCodesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryCodesResponse - */ - public codes( - request: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - callback: cosmwasm.wasm.v1beta1.Query.CodesCallback, - ): void; - - /** - * Calls Codes. - * @param request QueryCodesRequest message or plain object - * @returns Promise - */ - public codes( - request: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - ): Promise; - } - - namespace Query { - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#contractInfo}. - * @param error Error, if any - * @param [response] QueryContractInfoResponse - */ - type ContractInfoCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryContractInfoResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#contractHistory}. - * @param error Error, if any - * @param [response] QueryContractHistoryResponse - */ - type ContractHistoryCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryContractHistoryResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#contractsByCode}. - * @param error Error, if any - * @param [response] QueryContractsByCodeResponse - */ - type ContractsByCodeCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#allContractState}. - * @param error Error, if any - * @param [response] QueryAllContractStateResponse - */ - type AllContractStateCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryAllContractStateResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#rawContractState}. - * @param error Error, if any - * @param [response] QueryRawContractStateResponse - */ - type RawContractStateCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryRawContractStateResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#smartContractState}. - * @param error Error, if any - * @param [response] QuerySmartContractStateResponse - */ - type SmartContractStateCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#code}. - * @param error Error, if any - * @param [response] QueryCodeResponse - */ - type CodeCallback = (error: Error | null, response?: cosmwasm.wasm.v1beta1.QueryCodeResponse) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Query#codes}. - * @param error Error, if any - * @param [response] QueryCodesResponse - */ - type CodesCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.QueryCodesResponse, - ) => void; - } - - /** Properties of a QueryContractInfoRequest. */ - interface IQueryContractInfoRequest { - /** QueryContractInfoRequest address */ - address?: string | null; - } - - /** Represents a QueryContractInfoRequest. */ - class QueryContractInfoRequest implements IQueryContractInfoRequest { - /** - * Constructs a new QueryContractInfoRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest); - - /** QueryContractInfoRequest address. */ - public address: string; - - /** - * Creates a new QueryContractInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractInfoRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - ): cosmwasm.wasm.v1beta1.QueryContractInfoRequest; - - /** - * Encodes the specified QueryContractInfoRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractInfoRequest.verify|verify} messages. - * @param m QueryContractInfoRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractInfoRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractInfoRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractInfoRequest; - } - - /** Properties of a QueryContractInfoResponse. */ - interface IQueryContractInfoResponse { - /** QueryContractInfoResponse address */ - address?: string | null; - - /** QueryContractInfoResponse contractInfo */ - contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - } - - /** Represents a QueryContractInfoResponse. */ - class QueryContractInfoResponse implements IQueryContractInfoResponse { - /** - * Constructs a new QueryContractInfoResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractInfoResponse); - - /** QueryContractInfoResponse address. */ - public address: string; - - /** QueryContractInfoResponse contractInfo. */ - public contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - - /** - * Creates a new QueryContractInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractInfoResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractInfoResponse, - ): cosmwasm.wasm.v1beta1.QueryContractInfoResponse; - - /** - * Encodes the specified QueryContractInfoResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractInfoResponse.verify|verify} messages. - * @param m QueryContractInfoResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractInfoResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractInfoResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractInfoResponse; - } - - /** Properties of a QueryContractHistoryRequest. */ - interface IQueryContractHistoryRequest { - /** QueryContractHistoryRequest address */ - address?: string | null; - - /** QueryContractHistoryRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryContractHistoryRequest. */ - class QueryContractHistoryRequest implements IQueryContractHistoryRequest { - /** - * Constructs a new QueryContractHistoryRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest); - - /** QueryContractHistoryRequest address. */ - public address: string; - - /** QueryContractHistoryRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryContractHistoryRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractHistoryRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryRequest; - - /** - * Encodes the specified QueryContractHistoryRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractHistoryRequest.verify|verify} messages. - * @param m QueryContractHistoryRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractHistoryRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractHistoryRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractHistoryRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryRequest; - } - - /** Properties of a QueryContractHistoryResponse. */ - interface IQueryContractHistoryResponse { - /** QueryContractHistoryResponse entries */ - entries?: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry[] | null; - - /** QueryContractHistoryResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryContractHistoryResponse. */ - class QueryContractHistoryResponse implements IQueryContractHistoryResponse { - /** - * Constructs a new QueryContractHistoryResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractHistoryResponse); - - /** QueryContractHistoryResponse entries. */ - public entries: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry[]; - - /** QueryContractHistoryResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryContractHistoryResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractHistoryResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractHistoryResponse, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryResponse; - - /** - * Encodes the specified QueryContractHistoryResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractHistoryResponse.verify|verify} messages. - * @param m QueryContractHistoryResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractHistoryResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractHistoryResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractHistoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractHistoryResponse; - } - - /** Properties of a QueryContractsByCodeRequest. */ - interface IQueryContractsByCodeRequest { - /** QueryContractsByCodeRequest codeId */ - codeId?: Long | null; - - /** QueryContractsByCodeRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryContractsByCodeRequest. */ - class QueryContractsByCodeRequest implements IQueryContractsByCodeRequest { - /** - * Constructs a new QueryContractsByCodeRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest); - - /** QueryContractsByCodeRequest codeId. */ - public codeId: Long; - - /** QueryContractsByCodeRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryContractsByCodeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractsByCodeRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest; - - /** - * Encodes the specified QueryContractsByCodeRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest.verify|verify} messages. - * @param m QueryContractsByCodeRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractsByCodeRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractsByCodeRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractsByCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeRequest; - } - - /** Properties of a ContractInfoWithAddress. */ - interface IContractInfoWithAddress { - /** ContractInfoWithAddress address */ - address?: string | null; - - /** ContractInfoWithAddress contractInfo */ - contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - } - - /** Represents a ContractInfoWithAddress. */ - class ContractInfoWithAddress implements IContractInfoWithAddress { - /** - * Constructs a new ContractInfoWithAddress. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IContractInfoWithAddress); - - /** ContractInfoWithAddress address. */ - public address: string; - - /** ContractInfoWithAddress contractInfo. */ - public contractInfo?: cosmwasm.wasm.v1beta1.IContractInfo | null; - - /** - * Creates a new ContractInfoWithAddress instance using the specified properties. - * @param [properties] Properties to set - * @returns ContractInfoWithAddress instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IContractInfoWithAddress, - ): cosmwasm.wasm.v1beta1.ContractInfoWithAddress; - - /** - * Encodes the specified ContractInfoWithAddress message. Does not implicitly {@link cosmwasm.wasm.v1beta1.ContractInfoWithAddress.verify|verify} messages. - * @param m ContractInfoWithAddress message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IContractInfoWithAddress, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ContractInfoWithAddress message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ContractInfoWithAddress - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.ContractInfoWithAddress; - } - - /** Properties of a QueryContractsByCodeResponse. */ - interface IQueryContractsByCodeResponse { - /** QueryContractsByCodeResponse contractInfos */ - contractInfos?: cosmwasm.wasm.v1beta1.IContractInfoWithAddress[] | null; - - /** QueryContractsByCodeResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryContractsByCodeResponse. */ - class QueryContractsByCodeResponse implements IQueryContractsByCodeResponse { - /** - * Constructs a new QueryContractsByCodeResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeResponse); - - /** QueryContractsByCodeResponse contractInfos. */ - public contractInfos: cosmwasm.wasm.v1beta1.IContractInfoWithAddress[]; - - /** QueryContractsByCodeResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryContractsByCodeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryContractsByCodeResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryContractsByCodeResponse, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse; - - /** - * Encodes the specified QueryContractsByCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse.verify|verify} messages. - * @param m QueryContractsByCodeResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryContractsByCodeResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryContractsByCodeResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryContractsByCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryContractsByCodeResponse; - } - - /** Properties of a QueryAllContractStateRequest. */ - interface IQueryAllContractStateRequest { - /** QueryAllContractStateRequest address */ - address?: string | null; - - /** QueryAllContractStateRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryAllContractStateRequest. */ - class QueryAllContractStateRequest implements IQueryAllContractStateRequest { - /** - * Constructs a new QueryAllContractStateRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest); - - /** QueryAllContractStateRequest address. */ - public address: string; - - /** QueryAllContractStateRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryAllContractStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllContractStateRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateRequest; - - /** - * Encodes the specified QueryAllContractStateRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryAllContractStateRequest.verify|verify} messages. - * @param m QueryAllContractStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryAllContractStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryAllContractStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAllContractStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateRequest; - } - - /** Properties of a QueryAllContractStateResponse. */ - interface IQueryAllContractStateResponse { - /** QueryAllContractStateResponse models */ - models?: cosmwasm.wasm.v1beta1.IModel[] | null; - - /** QueryAllContractStateResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryAllContractStateResponse. */ - class QueryAllContractStateResponse implements IQueryAllContractStateResponse { - /** - * Constructs a new QueryAllContractStateResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryAllContractStateResponse); - - /** QueryAllContractStateResponse models. */ - public models: cosmwasm.wasm.v1beta1.IModel[]; - - /** QueryAllContractStateResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryAllContractStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllContractStateResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryAllContractStateResponse, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateResponse; - - /** - * Encodes the specified QueryAllContractStateResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryAllContractStateResponse.verify|verify} messages. - * @param m QueryAllContractStateResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryAllContractStateResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryAllContractStateResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAllContractStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryAllContractStateResponse; - } - - /** Properties of a QueryRawContractStateRequest. */ - interface IQueryRawContractStateRequest { - /** QueryRawContractStateRequest address */ - address?: string | null; - - /** QueryRawContractStateRequest queryData */ - queryData?: Uint8Array | null; - } - - /** Represents a QueryRawContractStateRequest. */ - class QueryRawContractStateRequest implements IQueryRawContractStateRequest { - /** - * Constructs a new QueryRawContractStateRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest); - - /** QueryRawContractStateRequest address. */ - public address: string; - - /** QueryRawContractStateRequest queryData. */ - public queryData: Uint8Array; - - /** - * Creates a new QueryRawContractStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryRawContractStateRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateRequest; - - /** - * Encodes the specified QueryRawContractStateRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryRawContractStateRequest.verify|verify} messages. - * @param m QueryRawContractStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryRawContractStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryRawContractStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryRawContractStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateRequest; - } - - /** Properties of a QueryRawContractStateResponse. */ - interface IQueryRawContractStateResponse { - /** QueryRawContractStateResponse data */ - data?: Uint8Array | null; - } - - /** Represents a QueryRawContractStateResponse. */ - class QueryRawContractStateResponse implements IQueryRawContractStateResponse { - /** - * Constructs a new QueryRawContractStateResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryRawContractStateResponse); - - /** QueryRawContractStateResponse data. */ - public data: Uint8Array; - - /** - * Creates a new QueryRawContractStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryRawContractStateResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryRawContractStateResponse, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateResponse; - - /** - * Encodes the specified QueryRawContractStateResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryRawContractStateResponse.verify|verify} messages. - * @param m QueryRawContractStateResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryRawContractStateResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryRawContractStateResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryRawContractStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryRawContractStateResponse; - } - - /** Properties of a QuerySmartContractStateRequest. */ - interface IQuerySmartContractStateRequest { - /** QuerySmartContractStateRequest address */ - address?: string | null; - - /** QuerySmartContractStateRequest queryData */ - queryData?: Uint8Array | null; - } - - /** Represents a QuerySmartContractStateRequest. */ - class QuerySmartContractStateRequest implements IQuerySmartContractStateRequest { - /** - * Constructs a new QuerySmartContractStateRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest); - - /** QuerySmartContractStateRequest address. */ - public address: string; - - /** QuerySmartContractStateRequest queryData. */ - public queryData: Uint8Array; - - /** - * Creates a new QuerySmartContractStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QuerySmartContractStateRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest; - - /** - * Encodes the specified QuerySmartContractStateRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest.verify|verify} messages. - * @param m QuerySmartContractStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQuerySmartContractStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QuerySmartContractStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QuerySmartContractStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateRequest; - } - - /** Properties of a QuerySmartContractStateResponse. */ - interface IQuerySmartContractStateResponse { - /** QuerySmartContractStateResponse data */ - data?: Uint8Array | null; - } - - /** Represents a QuerySmartContractStateResponse. */ - class QuerySmartContractStateResponse implements IQuerySmartContractStateResponse { - /** - * Constructs a new QuerySmartContractStateResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateResponse); - - /** QuerySmartContractStateResponse data. */ - public data: Uint8Array; - - /** - * Creates a new QuerySmartContractStateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QuerySmartContractStateResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQuerySmartContractStateResponse, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse; - - /** - * Encodes the specified QuerySmartContractStateResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse.verify|verify} messages. - * @param m QuerySmartContractStateResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQuerySmartContractStateResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QuerySmartContractStateResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QuerySmartContractStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QuerySmartContractStateResponse; - } - - /** Properties of a QueryCodeRequest. */ - interface IQueryCodeRequest { - /** QueryCodeRequest codeId */ - codeId?: Long | null; - } - - /** Represents a QueryCodeRequest. */ - class QueryCodeRequest implements IQueryCodeRequest { - /** - * Constructs a new QueryCodeRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodeRequest); - - /** QueryCodeRequest codeId. */ - public codeId: Long; - - /** - * Creates a new QueryCodeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodeRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - ): cosmwasm.wasm.v1beta1.QueryCodeRequest; - - /** - * Encodes the specified QueryCodeRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodeRequest.verify|verify} messages. - * @param m QueryCodeRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodeRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodeRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodeRequest; - } - - /** Properties of a CodeInfoResponse. */ - interface ICodeInfoResponse { - /** CodeInfoResponse codeId */ - codeId?: Long | null; - - /** CodeInfoResponse creator */ - creator?: string | null; - - /** CodeInfoResponse dataHash */ - dataHash?: Uint8Array | null; - - /** CodeInfoResponse source */ - source?: string | null; - - /** CodeInfoResponse builder */ - builder?: string | null; - } - - /** Represents a CodeInfoResponse. */ - class CodeInfoResponse implements ICodeInfoResponse { - /** - * Constructs a new CodeInfoResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.ICodeInfoResponse); - - /** CodeInfoResponse codeId. */ - public codeId: Long; - - /** CodeInfoResponse creator. */ - public creator: string; - - /** CodeInfoResponse dataHash. */ - public dataHash: Uint8Array; - - /** CodeInfoResponse source. */ - public source: string; - - /** CodeInfoResponse builder. */ - public builder: string; - - /** - * Creates a new CodeInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CodeInfoResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.ICodeInfoResponse, - ): cosmwasm.wasm.v1beta1.CodeInfoResponse; - - /** - * Encodes the specified CodeInfoResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.CodeInfoResponse.verify|verify} messages. - * @param m CodeInfoResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.ICodeInfoResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a CodeInfoResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns CodeInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.CodeInfoResponse; - } - - /** Properties of a QueryCodeResponse. */ - interface IQueryCodeResponse { - /** QueryCodeResponse codeInfo */ - codeInfo?: cosmwasm.wasm.v1beta1.ICodeInfoResponse | null; - - /** QueryCodeResponse data */ - data?: Uint8Array | null; - } - - /** Represents a QueryCodeResponse. */ - class QueryCodeResponse implements IQueryCodeResponse { - /** - * Constructs a new QueryCodeResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodeResponse); - - /** QueryCodeResponse codeInfo. */ - public codeInfo?: cosmwasm.wasm.v1beta1.ICodeInfoResponse | null; - - /** QueryCodeResponse data. */ - public data: Uint8Array; - - /** - * Creates a new QueryCodeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodeResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodeResponse, - ): cosmwasm.wasm.v1beta1.QueryCodeResponse; - - /** - * Encodes the specified QueryCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodeResponse.verify|verify} messages. - * @param m QueryCodeResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodeResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodeResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodeResponse; - } - - /** Properties of a QueryCodesRequest. */ - interface IQueryCodesRequest { - /** QueryCodesRequest pagination */ - pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - } - - /** Represents a QueryCodesRequest. */ - class QueryCodesRequest implements IQueryCodesRequest { - /** - * Constructs a new QueryCodesRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodesRequest); - - /** QueryCodesRequest pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; - - /** - * Creates a new QueryCodesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodesRequest instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - ): cosmwasm.wasm.v1beta1.QueryCodesRequest; - - /** - * Encodes the specified QueryCodesRequest message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodesRequest.verify|verify} messages. - * @param m QueryCodesRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodesRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodesRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodesRequest; - } - - /** Properties of a QueryCodesResponse. */ - interface IQueryCodesResponse { - /** QueryCodesResponse codeInfos */ - codeInfos?: cosmwasm.wasm.v1beta1.ICodeInfoResponse[] | null; - - /** QueryCodesResponse pagination */ - pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - } - - /** Represents a QueryCodesResponse. */ - class QueryCodesResponse implements IQueryCodesResponse { - /** - * Constructs a new QueryCodesResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IQueryCodesResponse); - - /** QueryCodesResponse codeInfos. */ - public codeInfos: cosmwasm.wasm.v1beta1.ICodeInfoResponse[]; - - /** QueryCodesResponse pagination. */ - public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; - - /** - * Creates a new QueryCodesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryCodesResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IQueryCodesResponse, - ): cosmwasm.wasm.v1beta1.QueryCodesResponse; - - /** - * Encodes the specified QueryCodesResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.QueryCodesResponse.verify|verify} messages. - * @param m QueryCodesResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IQueryCodesResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryCodesResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryCodesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.QueryCodesResponse; - } - - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Msg service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create( - rpcImpl: $protobuf.RPCImpl, - requestDelimited?: boolean, - responseDelimited?: boolean, - ): Msg; - - /** - * Calls StoreCode. - * @param request MsgStoreCode message or plain object - * @param callback Node-style callback called with the error, if any, and MsgStoreCodeResponse - */ - public storeCode( - request: cosmwasm.wasm.v1beta1.IMsgStoreCode, - callback: cosmwasm.wasm.v1beta1.Msg.StoreCodeCallback, - ): void; - - /** - * Calls StoreCode. - * @param request MsgStoreCode message or plain object - * @returns Promise - */ - public storeCode( - request: cosmwasm.wasm.v1beta1.IMsgStoreCode, - ): Promise; - - /** - * Calls InstantiateContract. - * @param request MsgInstantiateContract message or plain object - * @param callback Node-style callback called with the error, if any, and MsgInstantiateContractResponse - */ - public instantiateContract( - request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - callback: cosmwasm.wasm.v1beta1.Msg.InstantiateContractCallback, - ): void; - - /** - * Calls InstantiateContract. - * @param request MsgInstantiateContract message or plain object - * @returns Promise - */ - public instantiateContract( - request: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - ): Promise; - - /** - * Calls ExecuteContract. - * @param request MsgExecuteContract message or plain object - * @param callback Node-style callback called with the error, if any, and MsgExecuteContractResponse - */ - public executeContract( - request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - callback: cosmwasm.wasm.v1beta1.Msg.ExecuteContractCallback, - ): void; - - /** - * Calls ExecuteContract. - * @param request MsgExecuteContract message or plain object - * @returns Promise - */ - public executeContract( - request: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - ): Promise; - - /** - * Calls MigrateContract. - * @param request MsgMigrateContract message or plain object - * @param callback Node-style callback called with the error, if any, and MsgMigrateContractResponse - */ - public migrateContract( - request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - callback: cosmwasm.wasm.v1beta1.Msg.MigrateContractCallback, - ): void; - - /** - * Calls MigrateContract. - * @param request MsgMigrateContract message or plain object - * @returns Promise - */ - public migrateContract( - request: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - ): Promise; - - /** - * Calls UpdateAdmin. - * @param request MsgUpdateAdmin message or plain object - * @param callback Node-style callback called with the error, if any, and MsgUpdateAdminResponse - */ - public updateAdmin( - request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - callback: cosmwasm.wasm.v1beta1.Msg.UpdateAdminCallback, - ): void; - - /** - * Calls UpdateAdmin. - * @param request MsgUpdateAdmin message or plain object - * @returns Promise - */ - public updateAdmin( - request: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - ): Promise; - - /** - * Calls ClearAdmin. - * @param request MsgClearAdmin message or plain object - * @param callback Node-style callback called with the error, if any, and MsgClearAdminResponse - */ - public clearAdmin( - request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - callback: cosmwasm.wasm.v1beta1.Msg.ClearAdminCallback, - ): void; - - /** - * Calls ClearAdmin. - * @param request MsgClearAdmin message or plain object - * @returns Promise - */ - public clearAdmin( - request: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - ): Promise; - } - - namespace Msg { - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#storeCode}. - * @param error Error, if any - * @param [response] MsgStoreCodeResponse - */ - type StoreCodeCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgStoreCodeResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#instantiateContract}. - * @param error Error, if any - * @param [response] MsgInstantiateContractResponse - */ - type InstantiateContractCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#executeContract}. - * @param error Error, if any - * @param [response] MsgExecuteContractResponse - */ - type ExecuteContractCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgExecuteContractResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#migrateContract}. - * @param error Error, if any - * @param [response] MsgMigrateContractResponse - */ - type MigrateContractCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgMigrateContractResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#updateAdmin}. - * @param error Error, if any - * @param [response] MsgUpdateAdminResponse - */ - type UpdateAdminCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse, - ) => void; - - /** - * Callback as used by {@link cosmwasm.wasm.v1beta1.Msg#clearAdmin}. - * @param error Error, if any - * @param [response] MsgClearAdminResponse - */ - type ClearAdminCallback = ( - error: Error | null, - response?: cosmwasm.wasm.v1beta1.MsgClearAdminResponse, - ) => void; - } - - /** Properties of a MsgStoreCode. */ - interface IMsgStoreCode { - /** MsgStoreCode sender */ - sender?: string | null; - - /** MsgStoreCode wasmByteCode */ - wasmByteCode?: Uint8Array | null; - - /** MsgStoreCode source */ - source?: string | null; - - /** MsgStoreCode builder */ - builder?: string | null; - - /** MsgStoreCode instantiatePermission */ - instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - } - - /** Represents a MsgStoreCode. */ - class MsgStoreCode implements IMsgStoreCode { - /** - * Constructs a new MsgStoreCode. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCode); - - /** MsgStoreCode sender. */ - public sender: string; - - /** MsgStoreCode wasmByteCode. */ - public wasmByteCode: Uint8Array; - - /** MsgStoreCode source. */ - public source: string; - - /** MsgStoreCode builder. */ - public builder: string; - - /** MsgStoreCode instantiatePermission. */ - public instantiatePermission?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** - * Creates a new MsgStoreCode instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgStoreCode instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgStoreCode, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - - /** - * Encodes the specified MsgStoreCode message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCode.verify|verify} messages. - * @param m MsgStoreCode message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgStoreCode, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgStoreCode message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgStoreCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgStoreCode; - } - - /** Properties of a MsgStoreCodeResponse. */ - interface IMsgStoreCodeResponse { - /** MsgStoreCodeResponse codeId */ - codeId?: Long | null; - } - - /** Represents a MsgStoreCodeResponse. */ - class MsgStoreCodeResponse implements IMsgStoreCodeResponse { - /** - * Constructs a new MsgStoreCodeResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse); - - /** MsgStoreCodeResponse codeId. */ - public codeId: Long; - - /** - * Creates a new MsgStoreCodeResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgStoreCodeResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, - ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; - - /** - * Encodes the specified MsgStoreCodeResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgStoreCodeResponse.verify|verify} messages. - * @param m MsgStoreCodeResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgStoreCodeResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgStoreCodeResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgStoreCodeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgStoreCodeResponse; - } - - /** Properties of a MsgInstantiateContract. */ - interface IMsgInstantiateContract { - /** MsgInstantiateContract sender */ - sender?: string | null; - - /** MsgInstantiateContract admin */ - admin?: string | null; - - /** MsgInstantiateContract codeId */ - codeId?: Long | null; - - /** MsgInstantiateContract label */ - label?: string | null; - - /** MsgInstantiateContract initMsg */ - initMsg?: Uint8Array | null; - - /** MsgInstantiateContract initFunds */ - initFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgInstantiateContract. */ - class MsgInstantiateContract implements IMsgInstantiateContract { - /** - * Constructs a new MsgInstantiateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract); - - /** MsgInstantiateContract sender. */ - public sender: string; - - /** MsgInstantiateContract admin. */ - public admin: string; - - /** MsgInstantiateContract codeId. */ - public codeId: Long; - - /** MsgInstantiateContract label. */ - public label: string; - - /** MsgInstantiateContract initMsg. */ - public initMsg: Uint8Array; - - /** MsgInstantiateContract initFunds. */ - public initFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgInstantiateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgInstantiateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - - /** - * Encodes the specified MsgInstantiateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContract.verify|verify} messages. - * @param m MsgInstantiateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgInstantiateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgInstantiateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgInstantiateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContract; - } - - /** Properties of a MsgInstantiateContractResponse. */ - interface IMsgInstantiateContractResponse { - /** MsgInstantiateContractResponse address */ - address?: string | null; - } - - /** Represents a MsgInstantiateContractResponse. */ - class MsgInstantiateContractResponse implements IMsgInstantiateContractResponse { - /** - * Constructs a new MsgInstantiateContractResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse); - - /** MsgInstantiateContractResponse address. */ - public address: string; - - /** - * Creates a new MsgInstantiateContractResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgInstantiateContractResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; - - /** - * Encodes the specified MsgInstantiateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse.verify|verify} messages. - * @param m MsgInstantiateContractResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgInstantiateContractResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgInstantiateContractResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgInstantiateContractResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgInstantiateContractResponse; - } - - /** Properties of a MsgExecuteContract. */ - interface IMsgExecuteContract { - /** MsgExecuteContract sender */ - sender?: string | null; - - /** MsgExecuteContract contract */ - contract?: string | null; - - /** MsgExecuteContract msg */ - msg?: Uint8Array | null; - - /** MsgExecuteContract sentFunds */ - sentFunds?: cosmos.base.v1beta1.ICoin[] | null; - } - - /** Represents a MsgExecuteContract. */ - class MsgExecuteContract implements IMsgExecuteContract { - /** - * Constructs a new MsgExecuteContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContract); - - /** MsgExecuteContract sender. */ - public sender: string; - - /** MsgExecuteContract contract. */ - public contract: string; - - /** MsgExecuteContract msg. */ - public msg: Uint8Array; - - /** MsgExecuteContract sentFunds. */ - public sentFunds: cosmos.base.v1beta1.ICoin[]; - - /** - * Creates a new MsgExecuteContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgExecuteContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - - /** - * Encodes the specified MsgExecuteContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContract.verify|verify} messages. - * @param m MsgExecuteContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgExecuteContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgExecuteContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgExecuteContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgExecuteContract; - } - - /** Properties of a MsgExecuteContractResponse. */ - interface IMsgExecuteContractResponse { - /** MsgExecuteContractResponse data */ - data?: Uint8Array | null; - } - - /** Represents a MsgExecuteContractResponse. */ - class MsgExecuteContractResponse implements IMsgExecuteContractResponse { - /** - * Constructs a new MsgExecuteContractResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse); - - /** MsgExecuteContractResponse data. */ - public data: Uint8Array; - - /** - * Creates a new MsgExecuteContractResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgExecuteContractResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, - ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; - - /** - * Encodes the specified MsgExecuteContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgExecuteContractResponse.verify|verify} messages. - * @param m MsgExecuteContractResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgExecuteContractResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgExecuteContractResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgExecuteContractResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgExecuteContractResponse; - } - - /** Properties of a MsgMigrateContract. */ - interface IMsgMigrateContract { - /** MsgMigrateContract sender */ - sender?: string | null; - - /** MsgMigrateContract contract */ - contract?: string | null; - - /** MsgMigrateContract codeId */ - codeId?: Long | null; - - /** MsgMigrateContract migrateMsg */ - migrateMsg?: Uint8Array | null; - } - - /** Represents a MsgMigrateContract. */ - class MsgMigrateContract implements IMsgMigrateContract { - /** - * Constructs a new MsgMigrateContract. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContract); - - /** MsgMigrateContract sender. */ - public sender: string; - - /** MsgMigrateContract contract. */ - public contract: string; - - /** MsgMigrateContract codeId. */ - public codeId: Long; - - /** MsgMigrateContract migrateMsg. */ - public migrateMsg: Uint8Array; - - /** - * Creates a new MsgMigrateContract instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMigrateContract instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - - /** - * Encodes the specified MsgMigrateContract message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContract.verify|verify} messages. - * @param m MsgMigrateContract message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgMigrateContract, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgMigrateContract message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgMigrateContract - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgMigrateContract; - } - - /** Properties of a MsgMigrateContractResponse. */ - interface IMsgMigrateContractResponse { - /** MsgMigrateContractResponse data */ - data?: Uint8Array | null; - } - - /** Represents a MsgMigrateContractResponse. */ - class MsgMigrateContractResponse implements IMsgMigrateContractResponse { - /** - * Constructs a new MsgMigrateContractResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse); - - /** MsgMigrateContractResponse data. */ - public data: Uint8Array; - - /** - * Creates a new MsgMigrateContractResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMigrateContractResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, - ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; - - /** - * Encodes the specified MsgMigrateContractResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgMigrateContractResponse.verify|verify} messages. - * @param m MsgMigrateContractResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgMigrateContractResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgMigrateContractResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgMigrateContractResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgMigrateContractResponse; - } - - /** Properties of a MsgUpdateAdmin. */ - interface IMsgUpdateAdmin { - /** MsgUpdateAdmin sender */ - sender?: string | null; - - /** MsgUpdateAdmin newAdmin */ - newAdmin?: string | null; - - /** MsgUpdateAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgUpdateAdmin. */ - class MsgUpdateAdmin implements IMsgUpdateAdmin { - /** - * Constructs a new MsgUpdateAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin); - - /** MsgUpdateAdmin sender. */ - public sender: string; - - /** MsgUpdateAdmin newAdmin. */ - public newAdmin: string; - - /** MsgUpdateAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgUpdateAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - - /** - * Encodes the specified MsgUpdateAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdmin.verify|verify} messages. - * @param m MsgUpdateAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgUpdateAdmin, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdmin; - } - - /** Properties of a MsgUpdateAdminResponse. */ - interface IMsgUpdateAdminResponse {} - - /** Represents a MsgUpdateAdminResponse. */ - class MsgUpdateAdminResponse implements IMsgUpdateAdminResponse { - /** - * Constructs a new MsgUpdateAdminResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse); - - /** - * Creates a new MsgUpdateAdminResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgUpdateAdminResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; - - /** - * Encodes the specified MsgUpdateAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse.verify|verify} messages. - * @param m MsgUpdateAdminResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgUpdateAdminResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgUpdateAdminResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgUpdateAdminResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgUpdateAdminResponse; - } - - /** Properties of a MsgClearAdmin. */ - interface IMsgClearAdmin { - /** MsgClearAdmin sender */ - sender?: string | null; - - /** MsgClearAdmin contract */ - contract?: string | null; - } - - /** Represents a MsgClearAdmin. */ - class MsgClearAdmin implements IMsgClearAdmin { - /** - * Constructs a new MsgClearAdmin. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdmin); - - /** MsgClearAdmin sender. */ - public sender: string; - - /** MsgClearAdmin contract. */ - public contract: string; - - /** - * Creates a new MsgClearAdmin instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgClearAdmin instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgClearAdmin, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - - /** - * Encodes the specified MsgClearAdmin message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdmin.verify|verify} messages. - * @param m MsgClearAdmin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IMsgClearAdmin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgClearAdmin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgClearAdmin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgClearAdmin; - } - - /** Properties of a MsgClearAdminResponse. */ - interface IMsgClearAdminResponse {} - - /** Represents a MsgClearAdminResponse. */ - class MsgClearAdminResponse implements IMsgClearAdminResponse { - /** - * Constructs a new MsgClearAdminResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse); - - /** - * Creates a new MsgClearAdminResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgClearAdminResponse instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, - ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; - - /** - * Encodes the specified MsgClearAdminResponse message. Does not implicitly {@link cosmwasm.wasm.v1beta1.MsgClearAdminResponse.verify|verify} messages. - * @param m MsgClearAdminResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IMsgClearAdminResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a MsgClearAdminResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgClearAdminResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.MsgClearAdminResponse; - } - - /** AccessType enum. */ - enum AccessType { - ACCESS_TYPE_UNSPECIFIED = 0, - ACCESS_TYPE_NOBODY = 1, - ACCESS_TYPE_ONLY_ADDRESS = 2, - ACCESS_TYPE_EVERYBODY = 3, - } - - /** Properties of an AccessTypeParam. */ - interface IAccessTypeParam { - /** AccessTypeParam value */ - value?: cosmwasm.wasm.v1beta1.AccessType | null; - } - - /** Represents an AccessTypeParam. */ - class AccessTypeParam implements IAccessTypeParam { - /** - * Constructs a new AccessTypeParam. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IAccessTypeParam); - - /** AccessTypeParam value. */ - public value: cosmwasm.wasm.v1beta1.AccessType; - - /** - * Creates a new AccessTypeParam instance using the specified properties. - * @param [properties] Properties to set - * @returns AccessTypeParam instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IAccessTypeParam, - ): cosmwasm.wasm.v1beta1.AccessTypeParam; - - /** - * Encodes the specified AccessTypeParam message. Does not implicitly {@link cosmwasm.wasm.v1beta1.AccessTypeParam.verify|verify} messages. - * @param m AccessTypeParam message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IAccessTypeParam, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an AccessTypeParam message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns AccessTypeParam - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.AccessTypeParam; - } - - /** Properties of an AccessConfig. */ - interface IAccessConfig { - /** AccessConfig permission */ - permission?: cosmwasm.wasm.v1beta1.AccessType | null; - - /** AccessConfig address */ - address?: string | null; - } - - /** Represents an AccessConfig. */ - class AccessConfig implements IAccessConfig { - /** - * Constructs a new AccessConfig. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IAccessConfig); - - /** AccessConfig permission. */ - public permission: cosmwasm.wasm.v1beta1.AccessType; - - /** AccessConfig address. */ - public address: string; - - /** - * Creates a new AccessConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns AccessConfig instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IAccessConfig, - ): cosmwasm.wasm.v1beta1.AccessConfig; - - /** - * Encodes the specified AccessConfig message. Does not implicitly {@link cosmwasm.wasm.v1beta1.AccessConfig.verify|verify} messages. - * @param m AccessConfig message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IAccessConfig, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AccessConfig message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns AccessConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.AccessConfig; - } - - /** Properties of a Params. */ - interface IParams { - /** Params codeUploadAccess */ - codeUploadAccess?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** Params instantiateDefaultPermission */ - instantiateDefaultPermission?: cosmwasm.wasm.v1beta1.AccessType | null; - - /** Params maxWasmCodeSize */ - maxWasmCodeSize?: Long | null; - } - - /** Represents a Params. */ - class Params implements IParams { - /** - * Constructs a new Params. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IParams); - - /** Params codeUploadAccess. */ - public codeUploadAccess?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** Params instantiateDefaultPermission. */ - public instantiateDefaultPermission: cosmwasm.wasm.v1beta1.AccessType; - - /** Params maxWasmCodeSize. */ - public maxWasmCodeSize: Long; - - /** - * Creates a new Params instance using the specified properties. - * @param [properties] Properties to set - * @returns Params instance - */ - public static create(properties?: cosmwasm.wasm.v1beta1.IParams): cosmwasm.wasm.v1beta1.Params; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmwasm.wasm.v1beta1.Params.verify|verify} messages. - * @param m Params message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IParams, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Params message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmwasm.wasm.v1beta1.Params; - } - - /** Properties of a CodeInfo. */ - interface ICodeInfo { - /** CodeInfo codeHash */ - codeHash?: Uint8Array | null; - - /** CodeInfo creator */ - creator?: string | null; - - /** CodeInfo source */ - source?: string | null; - - /** CodeInfo builder */ - builder?: string | null; - - /** CodeInfo instantiateConfig */ - instantiateConfig?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - } - - /** Represents a CodeInfo. */ - class CodeInfo implements ICodeInfo { - /** - * Constructs a new CodeInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.ICodeInfo); - - /** CodeInfo codeHash. */ - public codeHash: Uint8Array; - - /** CodeInfo creator. */ - public creator: string; - - /** CodeInfo source. */ - public source: string; - - /** CodeInfo builder. */ - public builder: string; - - /** CodeInfo instantiateConfig. */ - public instantiateConfig?: cosmwasm.wasm.v1beta1.IAccessConfig | null; - - /** - * Creates a new CodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns CodeInfo instance - */ - public static create(properties?: cosmwasm.wasm.v1beta1.ICodeInfo): cosmwasm.wasm.v1beta1.CodeInfo; - - /** - * Encodes the specified CodeInfo message. Does not implicitly {@link cosmwasm.wasm.v1beta1.CodeInfo.verify|verify} messages. - * @param m CodeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.ICodeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CodeInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns CodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmwasm.wasm.v1beta1.CodeInfo; - } - - /** Properties of a ContractInfo. */ - interface IContractInfo { - /** ContractInfo codeId */ - codeId?: Long | null; - - /** ContractInfo creator */ - creator?: string | null; - - /** ContractInfo admin */ - admin?: string | null; - - /** ContractInfo label */ - label?: string | null; - - /** ContractInfo created */ - created?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - } - - /** Represents a ContractInfo. */ - class ContractInfo implements IContractInfo { - /** - * Constructs a new ContractInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IContractInfo); - - /** ContractInfo codeId. */ - public codeId: Long; - - /** ContractInfo creator. */ - public creator: string; - - /** ContractInfo admin. */ - public admin: string; - - /** ContractInfo label. */ - public label: string; - - /** ContractInfo created. */ - public created?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - - /** - * Creates a new ContractInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ContractInfo instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IContractInfo, - ): cosmwasm.wasm.v1beta1.ContractInfo; - - /** - * Encodes the specified ContractInfo message. Does not implicitly {@link cosmwasm.wasm.v1beta1.ContractInfo.verify|verify} messages. - * @param m ContractInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IContractInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContractInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ContractInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.ContractInfo; - } - - /** ContractCodeHistoryOperationType enum. */ - enum ContractCodeHistoryOperationType { - CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0, - CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1, - CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2, - CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3, - } - - /** Properties of a ContractCodeHistoryEntry. */ - interface IContractCodeHistoryEntry { - /** ContractCodeHistoryEntry operation */ - operation?: cosmwasm.wasm.v1beta1.ContractCodeHistoryOperationType | null; - - /** ContractCodeHistoryEntry codeId */ - codeId?: Long | null; - - /** ContractCodeHistoryEntry updated */ - updated?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - - /** ContractCodeHistoryEntry msg */ - msg?: Uint8Array | null; - } - - /** Represents a ContractCodeHistoryEntry. */ - class ContractCodeHistoryEntry implements IContractCodeHistoryEntry { - /** - * Constructs a new ContractCodeHistoryEntry. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry); - - /** ContractCodeHistoryEntry operation. */ - public operation: cosmwasm.wasm.v1beta1.ContractCodeHistoryOperationType; - - /** ContractCodeHistoryEntry codeId. */ - public codeId: Long; - - /** ContractCodeHistoryEntry updated. */ - public updated?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition | null; - - /** ContractCodeHistoryEntry msg. */ - public msg: Uint8Array; - - /** - * Creates a new ContractCodeHistoryEntry instance using the specified properties. - * @param [properties] Properties to set - * @returns ContractCodeHistoryEntry instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry, - ): cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry; - - /** - * Encodes the specified ContractCodeHistoryEntry message. Does not implicitly {@link cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry.verify|verify} messages. - * @param m ContractCodeHistoryEntry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IContractCodeHistoryEntry, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ContractCodeHistoryEntry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ContractCodeHistoryEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.ContractCodeHistoryEntry; - } - - /** Properties of an AbsoluteTxPosition. */ - interface IAbsoluteTxPosition { - /** AbsoluteTxPosition blockHeight */ - blockHeight?: Long | null; - - /** AbsoluteTxPosition txIndex */ - txIndex?: Long | null; - } - - /** Represents an AbsoluteTxPosition. */ - class AbsoluteTxPosition implements IAbsoluteTxPosition { - /** - * Constructs a new AbsoluteTxPosition. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition); - - /** AbsoluteTxPosition blockHeight. */ - public blockHeight: Long; - - /** AbsoluteTxPosition txIndex. */ - public txIndex: Long; - - /** - * Creates a new AbsoluteTxPosition instance using the specified properties. - * @param [properties] Properties to set - * @returns AbsoluteTxPosition instance - */ - public static create( - properties?: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition, - ): cosmwasm.wasm.v1beta1.AbsoluteTxPosition; - - /** - * Encodes the specified AbsoluteTxPosition message. Does not implicitly {@link cosmwasm.wasm.v1beta1.AbsoluteTxPosition.verify|verify} messages. - * @param m AbsoluteTxPosition message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmwasm.wasm.v1beta1.IAbsoluteTxPosition, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an AbsoluteTxPosition message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns AbsoluteTxPosition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmwasm.wasm.v1beta1.AbsoluteTxPosition; - } - - /** Properties of a Model. */ - interface IModel { - /** Model key */ - key?: Uint8Array | null; - - /** Model value */ - value?: Uint8Array | null; - } - - /** Represents a Model. */ - class Model implements IModel { - /** - * Constructs a new Model. - * @param [p] Properties to set - */ - constructor(p?: cosmwasm.wasm.v1beta1.IModel); - - /** Model key. */ - public key: Uint8Array; - - /** Model value. */ - public value: Uint8Array; - - /** - * Creates a new Model instance using the specified properties. - * @param [properties] Properties to set - * @returns Model instance - */ - public static create(properties?: cosmwasm.wasm.v1beta1.IModel): cosmwasm.wasm.v1beta1.Model; - - /** - * Encodes the specified Model message. Does not implicitly {@link cosmwasm.wasm.v1beta1.Model.verify|verify} messages. - * @param m Model message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmwasm.wasm.v1beta1.IModel, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Model message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Model - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmwasm.wasm.v1beta1.Model; - } - } - } -} - -/** Namespace cosmos. */ -export namespace cosmos { - /** Namespace base. */ - namespace base { - /** Namespace v1beta1. */ - namespace v1beta1 { - /** Properties of a Coin. */ - interface ICoin { - /** Coin denom */ - denom?: string | null; - - /** Coin amount */ - amount?: string | null; - } - - /** Represents a Coin. */ - class Coin implements ICoin { - /** - * Constructs a new Coin. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.ICoin); - - /** Coin denom. */ - public denom: string; - - /** Coin amount. */ - public amount: string; - - /** - * Creates a new Coin instance using the specified properties. - * @param [properties] Properties to set - * @returns Coin instance - */ - public static create(properties?: cosmos.base.v1beta1.ICoin): cosmos.base.v1beta1.Coin; - - /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. - * @param m Coin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.ICoin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Coin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Coin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.Coin; - } - - /** Properties of a DecCoin. */ - interface IDecCoin { - /** DecCoin denom */ - denom?: string | null; - - /** DecCoin amount */ - amount?: string | null; - } - - /** Represents a DecCoin. */ - class DecCoin implements IDecCoin { - /** - * Constructs a new DecCoin. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.IDecCoin); - - /** DecCoin denom. */ - public denom: string; - - /** DecCoin amount. */ - public amount: string; - - /** - * Creates a new DecCoin instance using the specified properties. - * @param [properties] Properties to set - * @returns DecCoin instance - */ - public static create(properties?: cosmos.base.v1beta1.IDecCoin): cosmos.base.v1beta1.DecCoin; - - /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. - * @param m DecCoin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecCoin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DecCoin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.DecCoin; - } - - /** Properties of an IntProto. */ - interface IIntProto { - /** IntProto int */ - int?: string | null; - } - - /** Represents an IntProto. */ - class IntProto implements IIntProto { - /** - * Constructs a new IntProto. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.IIntProto); - - /** IntProto int. */ - public int: string; - - /** - * Creates a new IntProto instance using the specified properties. - * @param [properties] Properties to set - * @returns IntProto instance - */ - public static create(properties?: cosmos.base.v1beta1.IIntProto): cosmos.base.v1beta1.IntProto; - - /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. - * @param m IntProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns IntProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.IntProto; - } - - /** Properties of a DecProto. */ - interface IDecProto { - /** DecProto dec */ - dec?: string | null; - } - - /** Represents a DecProto. */ - class DecProto implements IDecProto { - /** - * Constructs a new DecProto. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.v1beta1.IDecProto); - - /** DecProto dec. */ - public dec: string; - - /** - * Creates a new DecProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DecProto instance - */ - public static create(properties?: cosmos.base.v1beta1.IDecProto): cosmos.base.v1beta1.DecProto; - - /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. - * @param m DecProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.base.v1beta1.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DecProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.base.v1beta1.DecProto; - } - } - - /** Namespace query. */ - namespace query { - /** Namespace v1beta1. */ - namespace v1beta1 { - /** Properties of a PageRequest. */ - interface IPageRequest { - /** PageRequest key */ - key?: Uint8Array | null; - - /** PageRequest offset */ - offset?: Long | null; - - /** PageRequest limit */ - limit?: Long | null; - - /** PageRequest countTotal */ - countTotal?: boolean | null; - } - - /** Represents a PageRequest. */ - class PageRequest implements IPageRequest { - /** - * Constructs a new PageRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.query.v1beta1.IPageRequest); - - /** PageRequest key. */ - public key: Uint8Array; - - /** PageRequest offset. */ - public offset: Long; - - /** PageRequest limit. */ - public limit: Long; - - /** PageRequest countTotal. */ - public countTotal: boolean; - - /** - * Creates a new PageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PageRequest instance - */ - public static create( - properties?: cosmos.base.query.v1beta1.IPageRequest, - ): cosmos.base.query.v1beta1.PageRequest; - - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @param m PageRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmos.base.query.v1beta1.IPageRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmos.base.query.v1beta1.PageRequest; - } - - /** Properties of a PageResponse. */ - interface IPageResponse { - /** PageResponse nextKey */ - nextKey?: Uint8Array | null; - - /** PageResponse total */ - total?: Long | null; - } - - /** Represents a PageResponse. */ - class PageResponse implements IPageResponse { - /** - * Constructs a new PageResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.base.query.v1beta1.IPageResponse); - - /** PageResponse nextKey. */ - public nextKey: Uint8Array; - - /** PageResponse total. */ - public total: Long; - - /** - * Creates a new PageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PageResponse instance - */ - public static create( - properties?: cosmos.base.query.v1beta1.IPageResponse, - ): cosmos.base.query.v1beta1.PageResponse; - - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @param m PageResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmos.base.query.v1beta1.IPageResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): cosmos.base.query.v1beta1.PageResponse; - } - } - } - } -} diff --git a/packages/cosmwasm-stargate/types/codec/index.d.ts b/packages/cosmwasm-stargate/types/codec/index.d.ts deleted file mode 100644 index 7cc01b17..00000000 --- a/packages/cosmwasm-stargate/types/codec/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { cosmwasm } from "./generated/codecimpl";