mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
@@ -0,0 +1,505 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/authz.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
||||
import { AccessConfig } from "./types_pb.js";
|
||||
import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js";
|
||||
|
||||
/**
|
||||
* StoreCodeAuthorization defines authorization for wasm code upload.
|
||||
* Since: wasmd 0.42
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.StoreCodeAuthorization
|
||||
*/
|
||||
export class StoreCodeAuthorization extends Message<StoreCodeAuthorization> {
|
||||
/**
|
||||
* Grants for code upload
|
||||
*
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.CodeGrant grants = 1;
|
||||
*/
|
||||
grants: CodeGrant[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<StoreCodeAuthorization>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.StoreCodeAuthorization";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grants", kind: "message", T: CodeGrant, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StoreCodeAuthorization {
|
||||
return new StoreCodeAuthorization().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StoreCodeAuthorization {
|
||||
return new StoreCodeAuthorization().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StoreCodeAuthorization {
|
||||
return new StoreCodeAuthorization().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: StoreCodeAuthorization | PlainMessage<StoreCodeAuthorization> | undefined, b: StoreCodeAuthorization | PlainMessage<StoreCodeAuthorization> | undefined): boolean {
|
||||
return proto3.util.equals(StoreCodeAuthorization, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractExecutionAuthorization defines authorization for wasm execute.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractExecutionAuthorization
|
||||
*/
|
||||
export class ContractExecutionAuthorization extends Message<ContractExecutionAuthorization> {
|
||||
/**
|
||||
* Grants for contract executions
|
||||
*
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1;
|
||||
*/
|
||||
grants: ContractGrant[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ContractExecutionAuthorization>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractExecutionAuthorization";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractExecutionAuthorization {
|
||||
return new ContractExecutionAuthorization().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractExecutionAuthorization {
|
||||
return new ContractExecutionAuthorization().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractExecutionAuthorization {
|
||||
return new ContractExecutionAuthorization().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractExecutionAuthorization | PlainMessage<ContractExecutionAuthorization> | undefined, b: ContractExecutionAuthorization | PlainMessage<ContractExecutionAuthorization> | undefined): boolean {
|
||||
return proto3.util.equals(ContractExecutionAuthorization, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractMigrationAuthorization defines authorization for wasm contract
|
||||
* migration. Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractMigrationAuthorization
|
||||
*/
|
||||
export class ContractMigrationAuthorization extends Message<ContractMigrationAuthorization> {
|
||||
/**
|
||||
* Grants for contract migrations
|
||||
*
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1;
|
||||
*/
|
||||
grants: ContractGrant[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<ContractMigrationAuthorization>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractMigrationAuthorization";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractMigrationAuthorization {
|
||||
return new ContractMigrationAuthorization().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractMigrationAuthorization {
|
||||
return new ContractMigrationAuthorization().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractMigrationAuthorization {
|
||||
return new ContractMigrationAuthorization().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractMigrationAuthorization | PlainMessage<ContractMigrationAuthorization> | undefined, b: ContractMigrationAuthorization | PlainMessage<ContractMigrationAuthorization> | undefined): boolean {
|
||||
return proto3.util.equals(ContractMigrationAuthorization, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CodeGrant a granted permission for a single code
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.CodeGrant
|
||||
*/
|
||||
export class CodeGrant extends Message<CodeGrant> {
|
||||
/**
|
||||
* CodeHash is the unique identifier created by wasmvm
|
||||
* Wildcard "*" is used to specify any kind of grant.
|
||||
*
|
||||
* @generated from field: bytes code_hash = 1;
|
||||
*/
|
||||
codeHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* InstantiatePermission is the superset access control to apply
|
||||
* on contract creation.
|
||||
* Optional
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 2;
|
||||
*/
|
||||
instantiatePermission?: AccessConfig;
|
||||
|
||||
constructor(data?: PartialMessage<CodeGrant>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.CodeGrant";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "instantiate_permission", kind: "message", T: AccessConfig },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CodeGrant {
|
||||
return new CodeGrant().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CodeGrant {
|
||||
return new CodeGrant().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CodeGrant {
|
||||
return new CodeGrant().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CodeGrant | PlainMessage<CodeGrant> | undefined, b: CodeGrant | PlainMessage<CodeGrant> | undefined): boolean {
|
||||
return proto3.util.equals(CodeGrant, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractGrant a granted permission for a single contract
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractGrant
|
||||
*/
|
||||
export class ContractGrant extends Message<ContractGrant> {
|
||||
/**
|
||||
* Contract is the bech32 address of the smart contract
|
||||
*
|
||||
* @generated from field: string contract = 1;
|
||||
*/
|
||||
contract = "";
|
||||
|
||||
/**
|
||||
* Limit defines execution limits that are enforced and updated when the grant
|
||||
* is applied. When the limit lapsed the grant is removed.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any limit = 2;
|
||||
*/
|
||||
limit?: Any;
|
||||
|
||||
/**
|
||||
* Filter define more fine-grained control on the message payload passed
|
||||
* to the contract in the operation. When no filter applies on execution, the
|
||||
* operation is prohibited.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any filter = 3;
|
||||
*/
|
||||
filter?: Any;
|
||||
|
||||
constructor(data?: PartialMessage<ContractGrant>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractGrant";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "limit", kind: "message", T: Any },
|
||||
{ no: 3, name: "filter", kind: "message", T: Any },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractGrant {
|
||||
return new ContractGrant().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractGrant {
|
||||
return new ContractGrant().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractGrant {
|
||||
return new ContractGrant().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractGrant | PlainMessage<ContractGrant> | undefined, b: ContractGrant | PlainMessage<ContractGrant> | undefined): boolean {
|
||||
return proto3.util.equals(ContractGrant, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MaxCallsLimit limited number of calls to the contract. No funds transferable.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MaxCallsLimit
|
||||
*/
|
||||
export class MaxCallsLimit extends Message<MaxCallsLimit> {
|
||||
/**
|
||||
* Remaining number that is decremented on each execution
|
||||
*
|
||||
* @generated from field: uint64 remaining = 1;
|
||||
*/
|
||||
remaining = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MaxCallsLimit>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MaxCallsLimit";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaxCallsLimit {
|
||||
return new MaxCallsLimit().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaxCallsLimit {
|
||||
return new MaxCallsLimit().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaxCallsLimit {
|
||||
return new MaxCallsLimit().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MaxCallsLimit | PlainMessage<MaxCallsLimit> | undefined, b: MaxCallsLimit | PlainMessage<MaxCallsLimit> | undefined): boolean {
|
||||
return proto3.util.equals(MaxCallsLimit, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MaxFundsLimit defines the maximal amounts that can be sent to the contract.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MaxFundsLimit
|
||||
*/
|
||||
export class MaxFundsLimit extends Message<MaxFundsLimit> {
|
||||
/**
|
||||
* Amounts is the maximal amount of tokens transferable to the contract.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 1;
|
||||
*/
|
||||
amounts: Coin[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<MaxFundsLimit>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MaxFundsLimit";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "amounts", kind: "message", T: Coin, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaxFundsLimit {
|
||||
return new MaxFundsLimit().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaxFundsLimit {
|
||||
return new MaxFundsLimit().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaxFundsLimit {
|
||||
return new MaxFundsLimit().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MaxFundsLimit | PlainMessage<MaxFundsLimit> | undefined, b: MaxFundsLimit | PlainMessage<MaxFundsLimit> | undefined): boolean {
|
||||
return proto3.util.equals(MaxFundsLimit, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CombinedLimit defines the maximal amounts that can be sent to a contract and
|
||||
* the maximal number of calls executable. Both need to remain >0 to be valid.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.CombinedLimit
|
||||
*/
|
||||
export class CombinedLimit extends Message<CombinedLimit> {
|
||||
/**
|
||||
* Remaining number that is decremented on each execution
|
||||
*
|
||||
* @generated from field: uint64 calls_remaining = 1;
|
||||
*/
|
||||
callsRemaining = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Amounts is the maximal amount of tokens transferable to the contract.
|
||||
*
|
||||
* @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 2;
|
||||
*/
|
||||
amounts: Coin[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<CombinedLimit>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.CombinedLimit";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "calls_remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "amounts", kind: "message", T: Coin, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CombinedLimit {
|
||||
return new CombinedLimit().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CombinedLimit {
|
||||
return new CombinedLimit().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CombinedLimit {
|
||||
return new CombinedLimit().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CombinedLimit | PlainMessage<CombinedLimit> | undefined, b: CombinedLimit | PlainMessage<CombinedLimit> | undefined): boolean {
|
||||
return proto3.util.equals(CombinedLimit, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AllowAllMessagesFilter is a wildcard to allow any type of contract payload
|
||||
* message.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AllowAllMessagesFilter
|
||||
*/
|
||||
export class AllowAllMessagesFilter extends Message<AllowAllMessagesFilter> {
|
||||
constructor(data?: PartialMessage<AllowAllMessagesFilter>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AllowAllMessagesFilter";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllowAllMessagesFilter {
|
||||
return new AllowAllMessagesFilter().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllowAllMessagesFilter {
|
||||
return new AllowAllMessagesFilter().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllowAllMessagesFilter {
|
||||
return new AllowAllMessagesFilter().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AllowAllMessagesFilter | PlainMessage<AllowAllMessagesFilter> | undefined, b: AllowAllMessagesFilter | PlainMessage<AllowAllMessagesFilter> | undefined): boolean {
|
||||
return proto3.util.equals(AllowAllMessagesFilter, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AcceptedMessageKeysFilter accept only the specific contract message keys in
|
||||
* the json object to be executed.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AcceptedMessageKeysFilter
|
||||
*/
|
||||
export class AcceptedMessageKeysFilter extends Message<AcceptedMessageKeysFilter> {
|
||||
/**
|
||||
* Messages is the list of unique keys
|
||||
*
|
||||
* @generated from field: repeated string keys = 1;
|
||||
*/
|
||||
keys: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AcceptedMessageKeysFilter>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessageKeysFilter";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptedMessageKeysFilter {
|
||||
return new AcceptedMessageKeysFilter().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptedMessageKeysFilter {
|
||||
return new AcceptedMessageKeysFilter().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptedMessageKeysFilter {
|
||||
return new AcceptedMessageKeysFilter().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AcceptedMessageKeysFilter | PlainMessage<AcceptedMessageKeysFilter> | undefined, b: AcceptedMessageKeysFilter | PlainMessage<AcceptedMessageKeysFilter> | undefined): boolean {
|
||||
return proto3.util.equals(AcceptedMessageKeysFilter, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AcceptedMessagesFilter accept only the specific raw contract messages to be
|
||||
* executed.
|
||||
* Since: wasmd 0.30
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AcceptedMessagesFilter
|
||||
*/
|
||||
export class AcceptedMessagesFilter extends Message<AcceptedMessagesFilter> {
|
||||
/**
|
||||
* Messages is the list of raw contract messages
|
||||
*
|
||||
* @generated from field: repeated bytes messages = 1;
|
||||
*/
|
||||
messages: Uint8Array[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AcceptedMessagesFilter>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessagesFilter";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "messages", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptedMessagesFilter {
|
||||
return new AcceptedMessagesFilter().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptedMessagesFilter {
|
||||
return new AcceptedMessagesFilter().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptedMessagesFilter {
|
||||
return new AcceptedMessagesFilter().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AcceptedMessagesFilter | PlainMessage<AcceptedMessagesFilter> | undefined, b: AcceptedMessagesFilter | PlainMessage<AcceptedMessagesFilter> | undefined): boolean {
|
||||
return proto3.util.equals(AcceptedMessagesFilter, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/genesis.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
||||
import { CodeInfo, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js";
|
||||
|
||||
/**
|
||||
* GenesisState - genesis state of x/wasm
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.GenesisState
|
||||
*/
|
||||
export class GenesisState extends Message<GenesisState> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.Params params = 1;
|
||||
*/
|
||||
params?: Params;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Code codes = 2;
|
||||
*/
|
||||
codes: Code[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Contract contracts = 3;
|
||||
*/
|
||||
contracts: Contract[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Sequence sequences = 4;
|
||||
*/
|
||||
sequences: Sequence[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<GenesisState>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.GenesisState";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "params", kind: "message", T: Params },
|
||||
{ no: 2, name: "codes", kind: "message", T: Code, repeated: true },
|
||||
{ no: 3, name: "contracts", kind: "message", T: Contract, repeated: true },
|
||||
{ no: 4, name: "sequences", kind: "message", T: Sequence, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState {
|
||||
return new GenesisState().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState {
|
||||
return new GenesisState().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean {
|
||||
return proto3.util.equals(GenesisState, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Code struct encompasses CodeInfo and CodeBytes
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Code
|
||||
*/
|
||||
export class Code extends Message<Code> {
|
||||
/**
|
||||
* @generated from field: uint64 code_id = 1;
|
||||
*/
|
||||
codeId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.CodeInfo code_info = 2;
|
||||
*/
|
||||
codeInfo?: CodeInfo;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes code_bytes = 3;
|
||||
*/
|
||||
codeBytes = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Pinned to wasmvm cache
|
||||
*
|
||||
* @generated from field: bool pinned = 4;
|
||||
*/
|
||||
pinned = false;
|
||||
|
||||
constructor(data?: PartialMessage<Code>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Code";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "code_info", kind: "message", T: CodeInfo },
|
||||
{ no: 3, name: "code_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 4, name: "pinned", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Code {
|
||||
return new Code().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Code {
|
||||
return new Code().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Code {
|
||||
return new Code().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Code | PlainMessage<Code> | undefined, b: Code | PlainMessage<Code> | undefined): boolean {
|
||||
return proto3.util.equals(Code, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Contract struct encompasses ContractAddress, ContractInfo, and ContractState
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Contract
|
||||
*/
|
||||
export class Contract extends Message<Contract> {
|
||||
/**
|
||||
* @generated from field: string contract_address = 1;
|
||||
*/
|
||||
contractAddress = "";
|
||||
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2;
|
||||
*/
|
||||
contractInfo?: ContractInfo;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.Model contract_state = 3;
|
||||
*/
|
||||
contractState: Model[] = [];
|
||||
|
||||
/**
|
||||
* @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry contract_code_history = 4;
|
||||
*/
|
||||
contractCodeHistory: ContractCodeHistoryEntry[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<Contract>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Contract";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 2, name: "contract_info", kind: "message", T: ContractInfo },
|
||||
{ no: 3, name: "contract_state", kind: "message", T: Model, repeated: true },
|
||||
{ no: 4, name: "contract_code_history", kind: "message", T: ContractCodeHistoryEntry, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Contract {
|
||||
return new Contract().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Contract {
|
||||
return new Contract().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Contract {
|
||||
return new Contract().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Contract | PlainMessage<Contract> | undefined, b: Contract | PlainMessage<Contract> | undefined): boolean {
|
||||
return proto3.util.equals(Contract, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sequence key and value of an id generation counter
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Sequence
|
||||
*/
|
||||
export class Sequence extends Message<Sequence> {
|
||||
/**
|
||||
* @generated from field: bytes id_key = 1;
|
||||
*/
|
||||
idKey = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* @generated from field: uint64 value = 2;
|
||||
*/
|
||||
value = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<Sequence>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Sequence";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "id_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sequence {
|
||||
return new Sequence().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sequence {
|
||||
return new Sequence().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sequence {
|
||||
return new Sequence().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Sequence | PlainMessage<Sequence> | undefined, b: Sequence | PlainMessage<Sequence> | undefined): boolean {
|
||||
return proto3.util.equals(Sequence, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/ibc.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* MsgIBCSend
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCSend
|
||||
*/
|
||||
export class MsgIBCSend extends Message<MsgIBCSend> {
|
||||
/**
|
||||
* the channel by which the packet will be sent
|
||||
*
|
||||
* @generated from field: string channel = 2;
|
||||
*/
|
||||
channel = "";
|
||||
|
||||
/**
|
||||
* Timeout height relative to the current block height.
|
||||
* The timeout is disabled when set to 0.
|
||||
*
|
||||
* @generated from field: uint64 timeout_height = 4;
|
||||
*/
|
||||
timeoutHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Timeout timestamp (in nanoseconds) relative to the current block timestamp.
|
||||
* The timeout is disabled when set to 0.
|
||||
*
|
||||
* @generated from field: uint64 timeout_timestamp = 5;
|
||||
*/
|
||||
timeoutTimestamp = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Data is the payload to transfer. We must not make assumption what format or
|
||||
* content is in here.
|
||||
*
|
||||
* @generated from field: bytes data = 6;
|
||||
*/
|
||||
data = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<MsgIBCSend>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSend";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "timeout_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 5, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCSend {
|
||||
return new MsgIBCSend().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCSend {
|
||||
return new MsgIBCSend().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCSend {
|
||||
return new MsgIBCSend().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCSend | PlainMessage<MsgIBCSend> | undefined, b: MsgIBCSend | PlainMessage<MsgIBCSend> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCSend, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgIBCSendResponse
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCSendResponse
|
||||
*/
|
||||
export class MsgIBCSendResponse extends Message<MsgIBCSendResponse> {
|
||||
/**
|
||||
* Sequence number of the IBC packet sent
|
||||
*
|
||||
* @generated from field: uint64 sequence = 1;
|
||||
*/
|
||||
sequence = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<MsgIBCSendResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSendResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCSendResponse {
|
||||
return new MsgIBCSendResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCSendResponse {
|
||||
return new MsgIBCSendResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCSendResponse {
|
||||
return new MsgIBCSendResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCSendResponse | PlainMessage<MsgIBCSendResponse> | undefined, b: MsgIBCSendResponse | PlainMessage<MsgIBCSendResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCSendResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgIBCWriteAcknowledgementResponse
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse
|
||||
*/
|
||||
export class MsgIBCWriteAcknowledgementResponse extends Message<MsgIBCWriteAcknowledgementResponse> {
|
||||
constructor(data?: PartialMessage<MsgIBCWriteAcknowledgementResponse>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCWriteAcknowledgementResponse {
|
||||
return new MsgIBCWriteAcknowledgementResponse().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCWriteAcknowledgementResponse {
|
||||
return new MsgIBCWriteAcknowledgementResponse().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCWriteAcknowledgementResponse {
|
||||
return new MsgIBCWriteAcknowledgementResponse().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCWriteAcknowledgementResponse | PlainMessage<MsgIBCWriteAcknowledgementResponse> | undefined, b: MsgIBCWriteAcknowledgementResponse | PlainMessage<MsgIBCWriteAcknowledgementResponse> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCWriteAcknowledgementResponse, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MsgIBCCloseChannel port and channel need to be owned by the contract
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.MsgIBCCloseChannel
|
||||
*/
|
||||
export class MsgIBCCloseChannel extends Message<MsgIBCCloseChannel> {
|
||||
/**
|
||||
* @generated from field: string channel = 2;
|
||||
*/
|
||||
channel = "";
|
||||
|
||||
constructor(data?: PartialMessage<MsgIBCCloseChannel>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.MsgIBCCloseChannel";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MsgIBCCloseChannel {
|
||||
return new MsgIBCCloseChannel().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MsgIBCCloseChannel {
|
||||
return new MsgIBCCloseChannel().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MsgIBCCloseChannel {
|
||||
return new MsgIBCCloseChannel().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: MsgIBCCloseChannel | PlainMessage<MsgIBCCloseChannel> | undefined, b: MsgIBCCloseChannel | PlainMessage<MsgIBCCloseChannel> | undefined): boolean {
|
||||
return proto3.util.equals(MsgIBCCloseChannel, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,178 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/query.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { QueryAllContractStateRequest, QueryAllContractStateResponse, QueryBuildAddressRequest, QueryBuildAddressResponse, QueryCodeInfoRequest, QueryCodeInfoResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse, QueryParamsRequest, QueryParamsResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryWasmLimitsConfigRequest, QueryWasmLimitsConfigResponse } from "./query_pb.js";
|
||||
|
||||
const TYPE_NAME = "cosmwasm.wasm.v1.Query";
|
||||
|
||||
/**
|
||||
* ContractInfo gets the contract meta data
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractInfo
|
||||
*/
|
||||
export const QueryContractInfoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractInfo",
|
||||
Request: QueryContractInfoRequest,
|
||||
Response: QueryContractInfoResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ContractHistory gets the contract code history
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractHistory
|
||||
*/
|
||||
export const QueryContractHistoryService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractHistory",
|
||||
Request: QueryContractHistoryRequest,
|
||||
Response: QueryContractHistoryResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ContractsByCode lists all smart contracts for a code id
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCode
|
||||
*/
|
||||
export const QueryContractsByCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractsByCode",
|
||||
Request: QueryContractsByCodeRequest,
|
||||
Response: QueryContractsByCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* AllContractState gets all raw store data for a single contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.AllContractState
|
||||
*/
|
||||
export const QueryAllContractStateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "AllContractState",
|
||||
Request: QueryAllContractStateRequest,
|
||||
Response: QueryAllContractStateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RawContractState gets single key from the raw store data of a contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.RawContractState
|
||||
*/
|
||||
export const QueryRawContractStateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RawContractState",
|
||||
Request: QueryRawContractStateRequest,
|
||||
Response: QueryRawContractStateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* SmartContractState get smart query result from the contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.SmartContractState
|
||||
*/
|
||||
export const QuerySmartContractStateService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "SmartContractState",
|
||||
Request: QuerySmartContractStateRequest,
|
||||
Response: QuerySmartContractStateResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Code gets the binary code and metadata for a single wasm code
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.Code
|
||||
*/
|
||||
export const QueryCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Code",
|
||||
Request: QueryCodeRequest,
|
||||
Response: QueryCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Codes gets the metadata for all stored wasm codes
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.Codes
|
||||
*/
|
||||
export const QueryCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Codes",
|
||||
Request: QueryCodesRequest,
|
||||
Response: QueryCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* CodeInfo gets the metadata for a single wasm code
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.CodeInfo
|
||||
*/
|
||||
export const QueryCodeInfoService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "CodeInfo",
|
||||
Request: QueryCodeInfoRequest,
|
||||
Response: QueryCodeInfoResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* PinnedCodes gets the pinned code ids
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.PinnedCodes
|
||||
*/
|
||||
export const QueryPinnedCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "PinnedCodes",
|
||||
Request: QueryPinnedCodesRequest,
|
||||
Response: QueryPinnedCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Params gets the module params
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.Params
|
||||
*/
|
||||
export const QueryParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "Params",
|
||||
Request: QueryParamsRequest,
|
||||
Response: QueryParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ContractsByCreator gets the contracts by creator
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCreator
|
||||
*/
|
||||
export const QueryContractsByCreatorService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ContractsByCreator",
|
||||
Request: QueryContractsByCreatorRequest,
|
||||
Response: QueryContractsByCreatorResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* WasmLimitsConfig gets the configured limits for static validation of Wasm
|
||||
* files, encoded in JSON.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.WasmLimitsConfig
|
||||
*/
|
||||
export const QueryWasmLimitsConfigService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "WasmLimitsConfig",
|
||||
Request: QueryWasmLimitsConfigRequest,
|
||||
Response: QueryWasmLimitsConfigResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* BuildAddress builds a contract address
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Query.BuildAddress
|
||||
*/
|
||||
export const QueryBuildAddressService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "BuildAddress",
|
||||
Request: QueryBuildAddressRequest,
|
||||
Response: QueryBuildAddressResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,239 @@
|
||||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import { MsgAddCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddressesResponse, MsgClearAdmin, MsgClearAdminResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgInstantiateContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgPinCodes, MsgPinCodesResponse, MsgRemoveCodeUploadParamsAddresses, MsgRemoveCodeUploadParamsAddressesResponse, MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse, MsgStoreAndMigrateContract, MsgStoreAndMigrateContractResponse, MsgStoreCode, MsgStoreCodeResponse, MsgSudoContract, MsgSudoContractResponse, MsgUnpinCodes, MsgUnpinCodesResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgUpdateContractLabel, MsgUpdateContractLabelResponse, MsgUpdateInstantiateConfig, MsgUpdateInstantiateConfigResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js";
|
||||
|
||||
const TYPE_NAME = "cosmwasm.wasm.v1.Msg";
|
||||
|
||||
/**
|
||||
* StoreCode to submit Wasm code to the system
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.StoreCode
|
||||
*/
|
||||
export const MsgStoreCodeService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "StoreCode",
|
||||
Request: MsgStoreCode,
|
||||
Response: MsgStoreCodeResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* InstantiateContract creates a new smart contract instance for the given
|
||||
* code id.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract
|
||||
*/
|
||||
export const MsgInstantiateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "InstantiateContract",
|
||||
Request: MsgInstantiateContract,
|
||||
Response: MsgInstantiateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* InstantiateContract2 creates a new smart contract instance for the given
|
||||
* code id with a predictable address
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract2
|
||||
*/
|
||||
export const MsgInstantiateContract2Service = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "InstantiateContract2",
|
||||
Request: MsgInstantiateContract2,
|
||||
Response: MsgInstantiateContract2Response,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Execute submits the given message data to a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.ExecuteContract
|
||||
*/
|
||||
export const MsgExecuteContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ExecuteContract",
|
||||
Request: MsgExecuteContract,
|
||||
Response: MsgExecuteContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Migrate runs a code upgrade/ downgrade for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.MigrateContract
|
||||
*/
|
||||
export const MsgMigrateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "MigrateContract",
|
||||
Request: MsgMigrateContract,
|
||||
Response: MsgMigrateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateAdmin sets a new admin for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateAdmin
|
||||
*/
|
||||
export const MsgUpdateAdminService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateAdmin",
|
||||
Request: MsgUpdateAdmin,
|
||||
Response: MsgUpdateAdminResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* ClearAdmin removes any admin stored for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.ClearAdmin
|
||||
*/
|
||||
export const MsgClearAdminService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "ClearAdmin",
|
||||
Request: MsgClearAdmin,
|
||||
Response: MsgClearAdminResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateInstantiateConfig updates instantiate config for a smart contract
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateInstantiateConfig
|
||||
*/
|
||||
export const MsgUpdateInstantiateConfigService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateInstantiateConfig",
|
||||
Request: MsgUpdateInstantiateConfig,
|
||||
Response: MsgUpdateInstantiateConfigResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateParams defines a governance operation for updating the x/wasm
|
||||
* module parameters. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateParams
|
||||
*/
|
||||
export const MsgUpdateParamsService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateParams",
|
||||
Request: MsgUpdateParams,
|
||||
Response: MsgUpdateParamsResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* SudoContract defines a governance operation for calling sudo
|
||||
* on a contract. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.SudoContract
|
||||
*/
|
||||
export const MsgSudoContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "SudoContract",
|
||||
Request: MsgSudoContract,
|
||||
Response: MsgSudoContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* PinCodes defines a governance operation for pinning a set of
|
||||
* code ids in the wasmvm cache. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.PinCodes
|
||||
*/
|
||||
export const MsgPinCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "PinCodes",
|
||||
Request: MsgPinCodes,
|
||||
Response: MsgPinCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UnpinCodes defines a governance operation for unpinning a set of
|
||||
* code ids in the wasmvm cache. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UnpinCodes
|
||||
*/
|
||||
export const MsgUnpinCodesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UnpinCodes",
|
||||
Request: MsgUnpinCodes,
|
||||
Response: MsgUnpinCodesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* StoreAndInstantiateContract defines a governance operation for storing
|
||||
* and instantiating the contract. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.40
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndInstantiateContract
|
||||
*/
|
||||
export const MsgStoreAndInstantiateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "StoreAndInstantiateContract",
|
||||
Request: MsgStoreAndInstantiateContract,
|
||||
Response: MsgStoreAndInstantiateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* RemoveCodeUploadParamsAddresses defines a governance operation for
|
||||
* removing addresses from code upload params.
|
||||
* The authority is defined in the keeper.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.RemoveCodeUploadParamsAddresses
|
||||
*/
|
||||
export const MsgRemoveCodeUploadParamsAddressesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "RemoveCodeUploadParamsAddresses",
|
||||
Request: MsgRemoveCodeUploadParamsAddresses,
|
||||
Response: MsgRemoveCodeUploadParamsAddressesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* AddCodeUploadParamsAddresses defines a governance operation for
|
||||
* adding addresses to code upload params.
|
||||
* The authority is defined in the keeper.
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.AddCodeUploadParamsAddresses
|
||||
*/
|
||||
export const MsgAddCodeUploadParamsAddressesService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "AddCodeUploadParamsAddresses",
|
||||
Request: MsgAddCodeUploadParamsAddresses,
|
||||
Response: MsgAddCodeUploadParamsAddressesResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* StoreAndMigrateContract defines a governance operation for storing
|
||||
* and migrating the contract. The authority is defined in the keeper.
|
||||
*
|
||||
* Since: 0.42
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndMigrateContract
|
||||
*/
|
||||
export const MsgStoreAndMigrateContractService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "StoreAndMigrateContract",
|
||||
Request: MsgStoreAndMigrateContract,
|
||||
Response: MsgStoreAndMigrateContractResponse,
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* UpdateContractLabel sets a new label for a smart contract
|
||||
*
|
||||
* Since: 0.43
|
||||
*
|
||||
* @generated from rpc cosmwasm.wasm.v1.Msg.UpdateContractLabel
|
||||
*/
|
||||
export const MsgUpdateContractLabelService = {
|
||||
typeName: TYPE_NAME,
|
||||
method: "UpdateContractLabel",
|
||||
Request: MsgUpdateContractLabel,
|
||||
Response: MsgUpdateContractLabelResponse,
|
||||
} as const;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,533 @@
|
||||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
||||
// @generated from file cosmwasm/wasm/v1/types.proto (package cosmwasm.wasm.v1, syntax proto3)
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
||||
import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
||||
|
||||
/**
|
||||
* AccessType permission types
|
||||
*
|
||||
* @generated from enum cosmwasm.wasm.v1.AccessType
|
||||
*/
|
||||
export enum AccessType {
|
||||
/**
|
||||
* AccessTypeUnspecified placeholder for empty value
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* AccessTypeNobody forbidden
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_NOBODY = 1;
|
||||
*/
|
||||
NOBODY = 1,
|
||||
|
||||
/**
|
||||
* AccessTypeEverybody unrestricted
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_EVERYBODY = 3;
|
||||
*/
|
||||
EVERYBODY = 3,
|
||||
|
||||
/**
|
||||
* AccessTypeAnyOfAddresses allow any of the addresses
|
||||
*
|
||||
* @generated from enum value: ACCESS_TYPE_ANY_OF_ADDRESSES = 4;
|
||||
*/
|
||||
ANY_OF_ADDRESSES = 4,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(AccessType)
|
||||
proto3.util.setEnumType(AccessType, "cosmwasm.wasm.v1.AccessType", [
|
||||
{ no: 0, name: "ACCESS_TYPE_UNSPECIFIED" },
|
||||
{ no: 1, name: "ACCESS_TYPE_NOBODY" },
|
||||
{ no: 3, name: "ACCESS_TYPE_EVERYBODY" },
|
||||
{ no: 4, name: "ACCESS_TYPE_ANY_OF_ADDRESSES" },
|
||||
]);
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationType actions that caused a code change
|
||||
*
|
||||
* @generated from enum cosmwasm.wasm.v1.ContractCodeHistoryOperationType
|
||||
*/
|
||||
export enum ContractCodeHistoryOperationType {
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeUnspecified placeholder for empty value
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0;
|
||||
*/
|
||||
UNSPECIFIED = 0,
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeInit on chain contract instantiation
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1;
|
||||
*/
|
||||
INIT = 1,
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeMigrate code migration
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2;
|
||||
*/
|
||||
MIGRATE = 2,
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryOperationTypeGenesis based on genesis data
|
||||
*
|
||||
* @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3;
|
||||
*/
|
||||
GENESIS = 3,
|
||||
}
|
||||
// Retrieve enum metadata with: proto3.getEnumType(ContractCodeHistoryOperationType)
|
||||
proto3.util.setEnumType(ContractCodeHistoryOperationType, "cosmwasm.wasm.v1.ContractCodeHistoryOperationType", [
|
||||
{ no: 0, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" },
|
||||
{ no: 1, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT" },
|
||||
{ no: 2, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE" },
|
||||
{ no: 3, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS" },
|
||||
]);
|
||||
|
||||
/**
|
||||
* AccessTypeParam
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AccessTypeParam
|
||||
*/
|
||||
export class AccessTypeParam extends Message<AccessTypeParam> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessType value = 1;
|
||||
*/
|
||||
value = AccessType.UNSPECIFIED;
|
||||
|
||||
constructor(data?: PartialMessage<AccessTypeParam>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AccessTypeParam";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "value", kind: "enum", T: proto3.getEnumType(AccessType) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessTypeParam {
|
||||
return new AccessTypeParam().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessTypeParam {
|
||||
return new AccessTypeParam().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessTypeParam {
|
||||
return new AccessTypeParam().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AccessTypeParam | PlainMessage<AccessTypeParam> | undefined, b: AccessTypeParam | PlainMessage<AccessTypeParam> | undefined): boolean {
|
||||
return proto3.util.equals(AccessTypeParam, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AccessConfig access control type.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AccessConfig
|
||||
*/
|
||||
export class AccessConfig extends Message<AccessConfig> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessType permission = 1;
|
||||
*/
|
||||
permission = AccessType.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* @generated from field: repeated string addresses = 3;
|
||||
*/
|
||||
addresses: string[] = [];
|
||||
|
||||
constructor(data?: PartialMessage<AccessConfig>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AccessConfig";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "permission", kind: "enum", T: proto3.getEnumType(AccessType) },
|
||||
{ no: 3, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AccessConfig {
|
||||
return new AccessConfig().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AccessConfig {
|
||||
return new AccessConfig().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AccessConfig {
|
||||
return new AccessConfig().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AccessConfig | PlainMessage<AccessConfig> | undefined, b: AccessConfig | PlainMessage<AccessConfig> | undefined): boolean {
|
||||
return proto3.util.equals(AccessConfig, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Params defines the set of wasm parameters.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Params
|
||||
*/
|
||||
export class Params extends Message<Params> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessConfig code_upload_access = 1;
|
||||
*/
|
||||
codeUploadAccess?: AccessConfig;
|
||||
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessType instantiate_default_permission = 2;
|
||||
*/
|
||||
instantiateDefaultPermission = AccessType.UNSPECIFIED;
|
||||
|
||||
constructor(data?: PartialMessage<Params>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Params";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_upload_access", kind: "message", T: AccessConfig },
|
||||
{ no: 2, name: "instantiate_default_permission", kind: "enum", T: proto3.getEnumType(AccessType) },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Params {
|
||||
return new Params().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params {
|
||||
return new Params().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean {
|
||||
return proto3.util.equals(Params, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* CodeInfo is data for the uploaded contract WASM code
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.CodeInfo
|
||||
*/
|
||||
export class CodeInfo extends Message<CodeInfo> {
|
||||
/**
|
||||
* CodeHash is the unique identifier created by wasmvm
|
||||
*
|
||||
* @generated from field: bytes code_hash = 1;
|
||||
*/
|
||||
codeHash = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* Creator address who initially stored the code
|
||||
*
|
||||
* @generated from field: string creator = 2;
|
||||
*/
|
||||
creator = "";
|
||||
|
||||
/**
|
||||
* InstantiateConfig access control to apply on contract creation, optional
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_config = 5;
|
||||
*/
|
||||
instantiateConfig?: AccessConfig;
|
||||
|
||||
constructor(data?: PartialMessage<CodeInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.CodeInfo";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "instantiate_config", kind: "message", T: AccessConfig },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CodeInfo {
|
||||
return new CodeInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CodeInfo {
|
||||
return new CodeInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CodeInfo {
|
||||
return new CodeInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: CodeInfo | PlainMessage<CodeInfo> | undefined, b: CodeInfo | PlainMessage<CodeInfo> | undefined): boolean {
|
||||
return proto3.util.equals(CodeInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractInfo stores a WASM contract instance
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractInfo
|
||||
*/
|
||||
export class ContractInfo extends Message<ContractInfo> {
|
||||
/**
|
||||
* CodeID is the reference to the stored Wasm code
|
||||
*
|
||||
* @generated from field: uint64 code_id = 1;
|
||||
*/
|
||||
codeId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Creator address who initially instantiated the contract
|
||||
*
|
||||
* @generated from field: string creator = 2;
|
||||
*/
|
||||
creator = "";
|
||||
|
||||
/**
|
||||
* Admin is an optional address that can execute migrations
|
||||
*
|
||||
* @generated from field: string admin = 3;
|
||||
*/
|
||||
admin = "";
|
||||
|
||||
/**
|
||||
* Label is optional metadata to be stored with a contract instance.
|
||||
*
|
||||
* @generated from field: string label = 4;
|
||||
*/
|
||||
label = "";
|
||||
|
||||
/**
|
||||
* Created Tx position when the contract was instantiated.
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition created = 5;
|
||||
*/
|
||||
created?: AbsoluteTxPosition;
|
||||
|
||||
/**
|
||||
* @generated from field: string ibc_port_id = 6;
|
||||
*/
|
||||
ibcPortId = "";
|
||||
|
||||
/**
|
||||
* @generated from field: string ibc2_port_id = 7;
|
||||
*/
|
||||
ibc2PortId = "";
|
||||
|
||||
/**
|
||||
* Extension is an extension point to store custom metadata within the
|
||||
* persistence model.
|
||||
*
|
||||
* @generated from field: google.protobuf.Any extension = 8;
|
||||
*/
|
||||
extension?: Any;
|
||||
|
||||
constructor(data?: PartialMessage<ContractInfo>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractInfo";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 5, name: "created", kind: "message", T: AbsoluteTxPosition },
|
||||
{ no: 6, name: "ibc_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 7, name: "ibc2_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
||||
{ no: 8, name: "extension", kind: "message", T: Any },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractInfo {
|
||||
return new ContractInfo().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractInfo {
|
||||
return new ContractInfo().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractInfo {
|
||||
return new ContractInfo().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractInfo | PlainMessage<ContractInfo> | undefined, b: ContractInfo | PlainMessage<ContractInfo> | undefined): boolean {
|
||||
return proto3.util.equals(ContractInfo, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContractCodeHistoryEntry metadata to a contract.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.ContractCodeHistoryEntry
|
||||
*/
|
||||
export class ContractCodeHistoryEntry extends Message<ContractCodeHistoryEntry> {
|
||||
/**
|
||||
* @generated from field: cosmwasm.wasm.v1.ContractCodeHistoryOperationType operation = 1;
|
||||
*/
|
||||
operation = ContractCodeHistoryOperationType.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* CodeID is the reference to the stored WASM code
|
||||
*
|
||||
* @generated from field: uint64 code_id = 2;
|
||||
*/
|
||||
codeId = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* Updated Tx position when the operation was executed.
|
||||
*
|
||||
* @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition updated = 3;
|
||||
*/
|
||||
updated?: AbsoluteTxPosition;
|
||||
|
||||
/**
|
||||
* @generated from field: bytes msg = 4;
|
||||
*/
|
||||
msg = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<ContractCodeHistoryEntry>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.ContractCodeHistoryEntry";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "operation", kind: "enum", T: proto3.getEnumType(ContractCodeHistoryOperationType) },
|
||||
{ no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 3, name: "updated", kind: "message", T: AbsoluteTxPosition },
|
||||
{ no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContractCodeHistoryEntry {
|
||||
return new ContractCodeHistoryEntry().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ContractCodeHistoryEntry {
|
||||
return new ContractCodeHistoryEntry().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ContractCodeHistoryEntry {
|
||||
return new ContractCodeHistoryEntry().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: ContractCodeHistoryEntry | PlainMessage<ContractCodeHistoryEntry> | undefined, b: ContractCodeHistoryEntry | PlainMessage<ContractCodeHistoryEntry> | undefined): boolean {
|
||||
return proto3.util.equals(ContractCodeHistoryEntry, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AbsoluteTxPosition is a unique transaction position that allows for global
|
||||
* ordering of transactions.
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.AbsoluteTxPosition
|
||||
*/
|
||||
export class AbsoluteTxPosition extends Message<AbsoluteTxPosition> {
|
||||
/**
|
||||
* BlockHeight is the block the contract was created at
|
||||
*
|
||||
* @generated from field: uint64 block_height = 1;
|
||||
*/
|
||||
blockHeight = protoInt64.zero;
|
||||
|
||||
/**
|
||||
* TxIndex is a monotonic counter within the block (actual transaction index,
|
||||
* or gas consumed)
|
||||
*
|
||||
* @generated from field: uint64 tx_index = 2;
|
||||
*/
|
||||
txIndex = protoInt64.zero;
|
||||
|
||||
constructor(data?: PartialMessage<AbsoluteTxPosition>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.AbsoluteTxPosition";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
{ no: 2, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AbsoluteTxPosition {
|
||||
return new AbsoluteTxPosition().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AbsoluteTxPosition {
|
||||
return new AbsoluteTxPosition().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AbsoluteTxPosition {
|
||||
return new AbsoluteTxPosition().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: AbsoluteTxPosition | PlainMessage<AbsoluteTxPosition> | undefined, b: AbsoluteTxPosition | PlainMessage<AbsoluteTxPosition> | undefined): boolean {
|
||||
return proto3.util.equals(AbsoluteTxPosition, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Model is a struct that holds a KV pair
|
||||
*
|
||||
* @generated from message cosmwasm.wasm.v1.Model
|
||||
*/
|
||||
export class Model extends Message<Model> {
|
||||
/**
|
||||
* hex-encode key to read it better (this is often ascii)
|
||||
*
|
||||
* @generated from field: bytes key = 1;
|
||||
*/
|
||||
key = new Uint8Array(0);
|
||||
|
||||
/**
|
||||
* base64-encode raw value
|
||||
*
|
||||
* @generated from field: bytes value = 2;
|
||||
*/
|
||||
value = new Uint8Array(0);
|
||||
|
||||
constructor(data?: PartialMessage<Model>) {
|
||||
super();
|
||||
proto3.util.initPartial(data, this);
|
||||
}
|
||||
|
||||
static readonly runtime: typeof proto3 = proto3;
|
||||
static readonly typeName = "cosmwasm.wasm.v1.Model";
|
||||
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
||||
{ no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
{ no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
||||
]);
|
||||
|
||||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Model {
|
||||
return new Model().fromBinary(bytes, options);
|
||||
}
|
||||
|
||||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Model {
|
||||
return new Model().fromJson(jsonValue, options);
|
||||
}
|
||||
|
||||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Model {
|
||||
return new Model().fromJsonString(jsonString, options);
|
||||
}
|
||||
|
||||
static equals(a: Model | PlainMessage<Model> | undefined, b: Model | PlainMessage<Model> | undefined): boolean {
|
||||
return proto3.util.equals(Model, a, b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user