Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/core-proto-ts

Package Overview
Dependencies
Maintainers
11
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/core-proto-ts - npm Package Compare versions

Comparing version 0.0.28 to 0.0.29

cjs/ibc/applications/transfer/v1/denomtrace.d.ts

2

cjs/ibc/applications/fee/v1/genesis.d.ts

@@ -49,3 +49,3 @@ import _m0 from "protobufjs/minimal";

address: string;
/** unique packet identifer comprised of the channel ID, port ID and sequence */
/** unique packet identifier comprised of the channel ID, port ID and sequence */
packetId: PacketId | undefined;

@@ -52,0 +52,0 @@ }

@@ -29,3 +29,3 @@ import { grpc } from "@injectivelabs/grpc-web";

}
/** QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPacket rpc */
/** QueryIncentivizedPacketResponse defines the response type for the IncentivizedPacket rpc */
export interface QueryIncentivizedPacketResponse {

@@ -47,3 +47,6 @@ /** the identified fees for the incentivized packet */

}
/** QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC */
/**
* QueryIncentivizedPacketsForChannelResponse defines the response type for querying for all incentivized packets
* for a specific channel
*/
export interface QueryIncentivizedPacketsForChannelResponse {

@@ -50,0 +53,0 @@ /** Map of all incentivized_packets */

@@ -43,3 +43,3 @@ import { grpc } from "@injectivelabs/grpc-web";

sourcePortId: string;
/** the source channel unique identifer */
/** the source channel unique identifier */
sourceChannelId: string;

@@ -46,0 +46,0 @@ /** account address to refund fee if necessary */

import _m0 from "protobufjs/minimal";
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
import { Hop } from "./transfer";
/** Allocation defines the spend limit for a particular port and channel */

@@ -18,3 +19,13 @@ export interface Allocation {

allowedPacketData: string[];
/** Forwarding options that are allowed. */
allowedForwarding: AllowedForwarding[];
}
/** AllowedForwarding defines which options are allowed for forwarding. */
export interface AllowedForwarding {
/**
* a list of allowed source port ID/channel ID pairs through which the packet is allowed to be forwarded until final
* destination
*/
hops: Hop[];
}
/**

@@ -36,2 +47,10 @@ * TransferAuthorization allows the grantee to spend up to spend_limit coins from

};
export declare const AllowedForwarding: {
encode(message: AllowedForwarding, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): AllowedForwarding;
fromJSON(object: any): AllowedForwarding;
toJSON(message: AllowedForwarding): unknown;
create(base?: DeepPartial<AllowedForwarding>): AllowedForwarding;
fromPartial(object: DeepPartial<AllowedForwarding>): AllowedForwarding;
};
export declare const TransferAuthorization: {

@@ -38,0 +57,0 @@ encode(message: TransferAuthorization, writer?: _m0.Writer): _m0.Writer;

@@ -11,8 +11,16 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TransferAuthorization = exports.Allocation = void 0;
exports.TransferAuthorization = exports.AllowedForwarding = exports.Allocation = void 0;
/* eslint-disable */
const minimal_1 = __importDefault(require("protobufjs/minimal"));
const coin_1 = require("../../../../cosmos/base/v1beta1/coin");
const transfer_1 = require("./transfer");
function createBaseAllocation() {
return { sourcePort: "", sourceChannel: "", spendLimit: [], allowList: [], allowedPacketData: [] };
return {
sourcePort: "",
sourceChannel: "",
spendLimit: [],
allowList: [],
allowedPacketData: [],
allowedForwarding: [],
};
}

@@ -36,2 +44,5 @@ exports.Allocation = {

}
for (const v of message.allowedForwarding) {
exports.AllowedForwarding.encode(v, writer.uint32(50).fork()).ldelim();
}
return writer;

@@ -76,2 +87,8 @@ },

continue;
case 6:
if (tag !== 50) {
break;
}
message.allowedForwarding.push(exports.AllowedForwarding.decode(reader, reader.uint32()));
continue;
}

@@ -98,6 +115,9 @@ if ((tag & 7) === 4 || tag === 0) {

: [],
allowedForwarding: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.allowedForwarding)
? object.allowedForwarding.map((e) => exports.AllowedForwarding.fromJSON(e))
: [],
};
},
toJSON(message) {
var _a, _b, _c;
var _a, _b, _c, _d;
const obj = {};

@@ -119,2 +139,5 @@ if (message.sourcePort !== "") {

}
if ((_d = message.allowedForwarding) === null || _d === void 0 ? void 0 : _d.length) {
obj.allowedForwarding = message.allowedForwarding.map((e) => exports.AllowedForwarding.toJSON(e));
}
return obj;

@@ -126,3 +149,3 @@ },

fromPartial(object) {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f;
const message = createBaseAllocation();

@@ -134,5 +157,58 @@ message.sourcePort = (_a = object.sourcePort) !== null && _a !== void 0 ? _a : "";

message.allowedPacketData = ((_e = object.allowedPacketData) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
message.allowedForwarding = ((_f = object.allowedForwarding) === null || _f === void 0 ? void 0 : _f.map((e) => exports.AllowedForwarding.fromPartial(e))) || [];
return message;
},
};
function createBaseAllowedForwarding() {
return { hops: [] };
}
exports.AllowedForwarding = {
encode(message, writer = minimal_1.default.Writer.create()) {
for (const v of message.hops) {
transfer_1.Hop.encode(v, writer.uint32(10).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseAllowedForwarding();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.hops.push(transfer_1.Hop.decode(reader, reader.uint32()));
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { hops: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hops) ? object.hops.map((e) => transfer_1.Hop.fromJSON(e)) : [] };
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.hops) === null || _a === void 0 ? void 0 : _a.length) {
obj.hops = message.hops.map((e) => transfer_1.Hop.toJSON(e));
}
return obj;
},
create(base) {
return exports.AllowedForwarding.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseAllowedForwarding();
message.hops = ((_a = object.hops) === null || _a === void 0 ? void 0 : _a.map((e) => transfer_1.Hop.fromPartial(e))) || [];
return message;
},
};
function createBaseTransferAuthorization() {

@@ -139,0 +215,0 @@ return { allocations: [] };

import { grpc } from "@injectivelabs/grpc-web";
import _m0 from "protobufjs/minimal";
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
import { DenomTrace, Params } from "./transfer";
/**
* QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC
* method
*/
export interface QueryDenomTraceRequest {
/** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */
hash: string;
}
/**
* QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC
* method.
*/
export interface QueryDenomTraceResponse {
/** denom_trace returns the requested denomination trace information. */
denomTrace: DenomTrace | undefined;
}
/**
* QueryConnectionsRequest is the request type for the Query/DenomTraces RPC
* method
*/
export interface QueryDenomTracesRequest {
/** pagination defines an optional pagination for the request. */
pagination: PageRequest | undefined;
}
/**
* QueryConnectionsResponse is the response type for the Query/DenomTraces RPC
* method.
*/
export interface QueryDenomTracesResponse {
/** denom_traces returns all denominations trace information. */
denomTraces: DenomTrace[];
/** pagination defines the pagination in the response. */
pagination: PageResponse | undefined;
}
import { Params } from "./transfer";
/** QueryParamsRequest is the request type for the Query/Params RPC method. */

@@ -84,34 +49,2 @@ export interface QueryParamsRequest {

}
export declare const QueryDenomTraceRequest: {
encode(message: QueryDenomTraceRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTraceRequest;
fromJSON(object: any): QueryDenomTraceRequest;
toJSON(message: QueryDenomTraceRequest): unknown;
create(base?: DeepPartial<QueryDenomTraceRequest>): QueryDenomTraceRequest;
fromPartial(object: DeepPartial<QueryDenomTraceRequest>): QueryDenomTraceRequest;
};
export declare const QueryDenomTraceResponse: {
encode(message: QueryDenomTraceResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTraceResponse;
fromJSON(object: any): QueryDenomTraceResponse;
toJSON(message: QueryDenomTraceResponse): unknown;
create(base?: DeepPartial<QueryDenomTraceResponse>): QueryDenomTraceResponse;
fromPartial(object: DeepPartial<QueryDenomTraceResponse>): QueryDenomTraceResponse;
};
export declare const QueryDenomTracesRequest: {
encode(message: QueryDenomTracesRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTracesRequest;
fromJSON(object: any): QueryDenomTracesRequest;
toJSON(message: QueryDenomTracesRequest): unknown;
create(base?: DeepPartial<QueryDenomTracesRequest>): QueryDenomTracesRequest;
fromPartial(object: DeepPartial<QueryDenomTracesRequest>): QueryDenomTracesRequest;
};
export declare const QueryDenomTracesResponse: {
encode(message: QueryDenomTracesResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTracesResponse;
fromJSON(object: any): QueryDenomTracesResponse;
toJSON(message: QueryDenomTracesResponse): unknown;
create(base?: DeepPartial<QueryDenomTracesResponse>): QueryDenomTracesResponse;
fromPartial(object: DeepPartial<QueryDenomTracesResponse>): QueryDenomTracesResponse;
};
export declare const QueryParamsRequest: {

@@ -183,6 +116,2 @@ encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;

export interface Query {
/** DenomTraces queries all denomination traces. */
DenomTraces(request: DeepPartial<QueryDenomTracesRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTracesResponse>;
/** DenomTrace queries a denomination trace information. */
DenomTrace(request: DeepPartial<QueryDenomTraceRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTraceResponse>;
/** Params queries all parameters of the ibc-transfer module. */

@@ -200,4 +129,2 @@ Params(request: DeepPartial<QueryParamsRequest>, metadata?: grpc.Metadata): Promise<QueryParamsResponse>;

constructor(rpc: Rpc);
DenomTraces(request: DeepPartial<QueryDenomTracesRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTracesResponse>;
DenomTrace(request: DeepPartial<QueryDenomTraceRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTraceResponse>;
Params(request: DeepPartial<QueryParamsRequest>, metadata?: grpc.Metadata): Promise<QueryParamsResponse>;

@@ -211,4 +138,2 @@ DenomHash(request: DeepPartial<QueryDenomHashRequest>, metadata?: grpc.Metadata): Promise<QueryDenomHashResponse>;

};
export declare const QueryDenomTracesDesc: UnaryMethodDefinitionish;
export declare const QueryDenomTraceDesc: UnaryMethodDefinitionish;
export declare const QueryParamsDesc: UnaryMethodDefinitionish;

@@ -215,0 +140,0 @@ export declare const QueryDenomHashDesc: UnaryMethodDefinitionish;

@@ -11,3 +11,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.GrpcWebError = exports.GrpcWebImpl = exports.QueryTotalEscrowForDenomDesc = exports.QueryEscrowAddressDesc = exports.QueryDenomHashDesc = exports.QueryParamsDesc = exports.QueryDenomTraceDesc = exports.QueryDenomTracesDesc = exports.QueryDesc = exports.QueryClientImpl = exports.QueryTotalEscrowForDenomResponse = exports.QueryTotalEscrowForDenomRequest = exports.QueryEscrowAddressResponse = exports.QueryEscrowAddressRequest = exports.QueryDenomHashResponse = exports.QueryDenomHashRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = void 0;
exports.GrpcWebError = exports.GrpcWebImpl = exports.QueryTotalEscrowForDenomDesc = exports.QueryEscrowAddressDesc = exports.QueryDenomHashDesc = exports.QueryParamsDesc = exports.QueryDesc = exports.QueryClientImpl = exports.QueryTotalEscrowForDenomResponse = exports.QueryTotalEscrowForDenomRequest = exports.QueryEscrowAddressResponse = exports.QueryEscrowAddressRequest = exports.QueryDenomHashResponse = exports.QueryDenomHashRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
/* eslint-disable */

@@ -17,232 +17,4 @@ const grpc_web_1 = require("@injectivelabs/grpc-web");

const minimal_1 = __importDefault(require("protobufjs/minimal"));
const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination");
const coin_1 = require("../../../../cosmos/base/v1beta1/coin");
const transfer_1 = require("./transfer");
function createBaseQueryDenomTraceRequest() {
return { hash: "" };
}
exports.QueryDenomTraceRequest = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.hash !== "") {
writer.uint32(10).string(message.hash);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTraceRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.hash = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { hash: isSet(object.hash) ? globalThis.String(object.hash) : "" };
},
toJSON(message) {
const obj = {};
if (message.hash !== "") {
obj.hash = message.hash;
}
return obj;
},
create(base) {
return exports.QueryDenomTraceRequest.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseQueryDenomTraceRequest();
message.hash = (_a = object.hash) !== null && _a !== void 0 ? _a : "";
return message;
},
};
function createBaseQueryDenomTraceResponse() {
return { denomTrace: undefined };
}
exports.QueryDenomTraceResponse = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.denomTrace !== undefined) {
transfer_1.DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTraceResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.denomTrace = transfer_1.DenomTrace.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { denomTrace: isSet(object.denomTrace) ? transfer_1.DenomTrace.fromJSON(object.denomTrace) : undefined };
},
toJSON(message) {
const obj = {};
if (message.denomTrace !== undefined) {
obj.denomTrace = transfer_1.DenomTrace.toJSON(message.denomTrace);
}
return obj;
},
create(base) {
return exports.QueryDenomTraceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
const message = createBaseQueryDenomTraceResponse();
message.denomTrace = (object.denomTrace !== undefined && object.denomTrace !== null)
? transfer_1.DenomTrace.fromPartial(object.denomTrace)
: undefined;
return message;
},
};
function createBaseQueryDenomTracesRequest() {
return { pagination: undefined };
}
exports.QueryDenomTracesRequest = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.pagination !== undefined) {
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTracesRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { pagination: isSet(object.pagination) ? pagination_1.PageRequest.fromJSON(object.pagination) : undefined };
},
toJSON(message) {
const obj = {};
if (message.pagination !== undefined) {
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
}
return obj;
},
create(base) {
return exports.QueryDenomTracesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
const message = createBaseQueryDenomTracesRequest();
message.pagination = (object.pagination !== undefined && object.pagination !== null)
? pagination_1.PageRequest.fromPartial(object.pagination)
: undefined;
return message;
},
};
function createBaseQueryDenomTracesResponse() {
return { denomTraces: [], pagination: undefined };
}
exports.QueryDenomTracesResponse = {
encode(message, writer = minimal_1.default.Writer.create()) {
for (const v of message.denomTraces) {
transfer_1.DenomTrace.encode(v, writer.uint32(10).fork()).ldelim();
}
if (message.pagination !== undefined) {
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTracesResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.denomTraces.push(transfer_1.DenomTrace.decode(reader, reader.uint32()));
continue;
case 2:
if (tag !== 18) {
break;
}
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
denomTraces: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.denomTraces)
? object.denomTraces.map((e) => transfer_1.DenomTrace.fromJSON(e))
: [],
pagination: isSet(object.pagination) ? pagination_1.PageResponse.fromJSON(object.pagination) : undefined,
};
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.denomTraces) === null || _a === void 0 ? void 0 : _a.length) {
obj.denomTraces = message.denomTraces.map((e) => transfer_1.DenomTrace.toJSON(e));
}
if (message.pagination !== undefined) {
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
}
return obj;
},
create(base) {
return exports.QueryDenomTracesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseQueryDenomTracesResponse();
message.denomTraces = ((_a = object.denomTraces) === null || _a === void 0 ? void 0 : _a.map((e) => transfer_1.DenomTrace.fromPartial(e))) || [];
message.pagination = (object.pagination !== undefined && object.pagination !== null)
? pagination_1.PageResponse.fromPartial(object.pagination)
: undefined;
return message;
},
};
function createBaseQueryParamsRequest() {

@@ -663,4 +435,2 @@ return {};

this.rpc = rpc;
this.DenomTraces = this.DenomTraces.bind(this);
this.DenomTrace = this.DenomTrace.bind(this);
this.Params = this.Params.bind(this);

@@ -671,8 +441,2 @@ this.DenomHash = this.DenomHash.bind(this);

}
DenomTraces(request, metadata) {
return this.rpc.unary(exports.QueryDenomTracesDesc, exports.QueryDenomTracesRequest.fromPartial(request), metadata);
}
DenomTrace(request, metadata) {
return this.rpc.unary(exports.QueryDenomTraceDesc, exports.QueryDenomTraceRequest.fromPartial(request), metadata);
}
Params(request, metadata) {

@@ -693,40 +457,2 @@ return this.rpc.unary(exports.QueryParamsDesc, exports.QueryParamsRequest.fromPartial(request), metadata);

exports.QueryDesc = { serviceName: "ibc.applications.transfer.v1.Query" };
exports.QueryDenomTracesDesc = {
methodName: "DenomTraces",
service: exports.QueryDesc,
requestStream: false,
responseStream: false,
requestType: {
serializeBinary() {
return exports.QueryDenomTracesRequest.encode(this).finish();
},
},
responseType: {
deserializeBinary(data) {
const value = exports.QueryDenomTracesResponse.decode(data);
return Object.assign(Object.assign({}, value), { toObject() {
return value;
} });
},
},
};
exports.QueryDenomTraceDesc = {
methodName: "DenomTrace",
service: exports.QueryDesc,
requestStream: false,
responseStream: false,
requestType: {
serializeBinary() {
return exports.QueryDenomTraceRequest.encode(this).finish();
},
},
responseType: {
deserializeBinary(data) {
const value = exports.QueryDenomTraceResponse.decode(data);
return Object.assign(Object.assign({}, value), { toObject() {
return value;
} });
},
},
};
exports.QueryParamsDesc = {

@@ -733,0 +459,0 @@ methodName: "Params",

import _m0 from "protobufjs/minimal";
/**
* DenomTrace contains the base denomination for ICS20 fungible tokens and the
* source tracing information path.
*/
export interface DenomTrace {
/**
* path defines the chain of port/channel identifiers used for tracing the
* source of the fungible token.
*/
path: string;
/** base denomination of the relayed fungible token. */
baseDenom: string;
}
/**
* Params defines the set of IBC transfer parameters.

@@ -33,10 +20,21 @@ * NOTE: To prevent a single token from being transferred, set the

}
export declare const DenomTrace: {
encode(message: DenomTrace, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): DenomTrace;
fromJSON(object: any): DenomTrace;
toJSON(message: DenomTrace): unknown;
create(base?: DeepPartial<DenomTrace>): DenomTrace;
fromPartial(object: DeepPartial<DenomTrace>): DenomTrace;
};
/**
* Forwarding defines a list of port ID, channel ID pairs determining the path
* through which a packet must be forwarded, and an unwind boolean indicating if
* the coin should be unwinded to its native chain before forwarding.
*/
export interface Forwarding {
/** optional unwinding for the token transfered */
unwind: boolean;
/** optional intermediate path through which packet will be forwarded */
hops: Hop[];
}
/**
* Hop defines a port ID, channel ID pair specifying where tokens must be forwarded
* next in a multihop transfer.
*/
export interface Hop {
portId: string;
channelId: string;
}
export declare const Params: {

@@ -50,2 +48,18 @@ encode(message: Params, writer?: _m0.Writer): _m0.Writer;

};
export declare const Forwarding: {
encode(message: Forwarding, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Forwarding;
fromJSON(object: any): Forwarding;
toJSON(message: Forwarding): unknown;
create(base?: DeepPartial<Forwarding>): Forwarding;
fromPartial(object: DeepPartial<Forwarding>): Forwarding;
};
export declare const Hop: {
encode(message: Hop, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Hop;
fromJSON(object: any): Hop;
toJSON(message: Hop): unknown;
create(base?: DeepPartial<Hop>): Hop;
fromPartial(object: DeepPartial<Hop>): Hop;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

@@ -52,0 +66,0 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -11,15 +11,15 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Params = exports.DenomTrace = void 0;
exports.Hop = exports.Forwarding = exports.Params = void 0;
/* eslint-disable */
const minimal_1 = __importDefault(require("protobufjs/minimal"));
function createBaseDenomTrace() {
return { path: "", baseDenom: "" };
function createBaseParams() {
return { sendEnabled: false, receiveEnabled: false };
}
exports.DenomTrace = {
exports.Params = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.path !== "") {
writer.uint32(10).string(message.path);
if (message.sendEnabled !== false) {
writer.uint32(8).bool(message.sendEnabled);
}
if (message.baseDenom !== "") {
writer.uint32(18).string(message.baseDenom);
if (message.receiveEnabled !== false) {
writer.uint32(16).bool(message.receiveEnabled);
}

@@ -31,3 +31,3 @@ return writer;

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseDenomTrace();
const message = createBaseParams();
while (reader.pos < end) {

@@ -37,12 +37,12 @@ const tag = reader.uint32();

case 1:
if (tag !== 10) {
if (tag !== 8) {
break;
}
message.path = reader.string();
message.sendEnabled = reader.bool();
continue;
case 2:
if (tag !== 18) {
if (tag !== 16) {
break;
}
message.baseDenom = reader.string();
message.receiveEnabled = reader.bool();
continue;

@@ -59,4 +59,4 @@ }

return {
path: isSet(object.path) ? globalThis.String(object.path) : "",
baseDenom: isSet(object.baseDenom) ? globalThis.String(object.baseDenom) : "",
sendEnabled: isSet(object.sendEnabled) ? globalThis.Boolean(object.sendEnabled) : false,
receiveEnabled: isSet(object.receiveEnabled) ? globalThis.Boolean(object.receiveEnabled) : false,
};

@@ -66,7 +66,7 @@ },

const obj = {};
if (message.path !== "") {
obj.path = message.path;
if (message.sendEnabled !== false) {
obj.sendEnabled = message.sendEnabled;
}
if (message.baseDenom !== "") {
obj.baseDenom = message.baseDenom;
if (message.receiveEnabled !== false) {
obj.receiveEnabled = message.receiveEnabled;
}

@@ -76,22 +76,22 @@ return obj;

create(base) {
return exports.DenomTrace.fromPartial(base !== null && base !== void 0 ? base : {});
return exports.Params.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseDenomTrace();
message.path = (_a = object.path) !== null && _a !== void 0 ? _a : "";
message.baseDenom = (_b = object.baseDenom) !== null && _b !== void 0 ? _b : "";
const message = createBaseParams();
message.sendEnabled = (_a = object.sendEnabled) !== null && _a !== void 0 ? _a : false;
message.receiveEnabled = (_b = object.receiveEnabled) !== null && _b !== void 0 ? _b : false;
return message;
},
};
function createBaseParams() {
return { sendEnabled: false, receiveEnabled: false };
function createBaseForwarding() {
return { unwind: false, hops: [] };
}
exports.Params = {
exports.Forwarding = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.sendEnabled !== false) {
writer.uint32(8).bool(message.sendEnabled);
if (message.unwind !== false) {
writer.uint32(8).bool(message.unwind);
}
if (message.receiveEnabled !== false) {
writer.uint32(16).bool(message.receiveEnabled);
for (const v of message.hops) {
exports.Hop.encode(v, writer.uint32(18).fork()).ldelim();
}

@@ -103,3 +103,3 @@ return writer;

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseParams();
const message = createBaseForwarding();
while (reader.pos < end) {

@@ -112,9 +112,9 @@ const tag = reader.uint32();

}
message.sendEnabled = reader.bool();
message.unwind = reader.bool();
continue;
case 2:
if (tag !== 16) {
if (tag !== 18) {
break;
}
message.receiveEnabled = reader.bool();
message.hops.push(exports.Hop.decode(reader, reader.uint32()));
continue;

@@ -131,13 +131,14 @@ }

return {
sendEnabled: isSet(object.sendEnabled) ? globalThis.Boolean(object.sendEnabled) : false,
receiveEnabled: isSet(object.receiveEnabled) ? globalThis.Boolean(object.receiveEnabled) : false,
unwind: isSet(object.unwind) ? globalThis.Boolean(object.unwind) : false,
hops: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hops) ? object.hops.map((e) => exports.Hop.fromJSON(e)) : [],
};
},
toJSON(message) {
var _a;
const obj = {};
if (message.sendEnabled !== false) {
obj.sendEnabled = message.sendEnabled;
if (message.unwind !== false) {
obj.unwind = message.unwind;
}
if (message.receiveEnabled !== false) {
obj.receiveEnabled = message.receiveEnabled;
if ((_a = message.hops) === null || _a === void 0 ? void 0 : _a.length) {
obj.hops = message.hops.map((e) => exports.Hop.toJSON(e));
}

@@ -147,14 +148,81 @@ return obj;

create(base) {
return exports.Params.fromPartial(base !== null && base !== void 0 ? base : {});
return exports.Forwarding.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseParams();
message.sendEnabled = (_a = object.sendEnabled) !== null && _a !== void 0 ? _a : false;
message.receiveEnabled = (_b = object.receiveEnabled) !== null && _b !== void 0 ? _b : false;
const message = createBaseForwarding();
message.unwind = (_a = object.unwind) !== null && _a !== void 0 ? _a : false;
message.hops = ((_b = object.hops) === null || _b === void 0 ? void 0 : _b.map((e) => exports.Hop.fromPartial(e))) || [];
return message;
},
};
function createBaseHop() {
return { portId: "", channelId: "" };
}
exports.Hop = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.portId !== "") {
writer.uint32(10).string(message.portId);
}
if (message.channelId !== "") {
writer.uint32(18).string(message.channelId);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseHop();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.portId = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.channelId = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
};
},
toJSON(message) {
const obj = {};
if (message.portId !== "") {
obj.portId = message.portId;
}
if (message.channelId !== "") {
obj.channelId = message.channelId;
}
return obj;
},
create(base) {
return exports.Hop.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseHop();
message.portId = (_a = object.portId) !== null && _a !== void 0 ? _a : "";
message.channelId = (_b = object.channelId) !== null && _b !== void 0 ? _b : "";
return message;
},
};
function isSet(value) {
return value !== null && value !== undefined;
}

@@ -5,3 +5,3 @@ import { grpc } from "@injectivelabs/grpc-web";

import { Height } from "../../../core/client/v1/client";
import { Params } from "./transfer";
import { Forwarding, Params } from "./transfer";
/**

@@ -17,3 +17,7 @@ * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between

sourceChannel: string;
/** the tokens to be transferred */
/**
* the token to be transferred. this field has been replaced by the tokens field.
*
* @deprecated
*/
token: Coin | undefined;

@@ -36,2 +40,6 @@ /** the sender address */

memo: string;
/** tokens to be transferred */
tokens: Coin[];
/** optional forwarding information */
forwarding: Forwarding | undefined;
}

@@ -38,0 +46,0 @@ /** MsgTransferResponse defines the Msg/Transfer response type. */

@@ -30,2 +30,4 @@ "use strict";

memo: "",
tokens: [],
forwarding: undefined,
};

@@ -59,2 +61,8 @@ }

}
for (const v of message.tokens) {
coin_1.Coin.encode(v, writer.uint32(74).fork()).ldelim();
}
if (message.forwarding !== undefined) {
transfer_1.Forwarding.encode(message.forwarding, writer.uint32(82).fork()).ldelim();
}
return writer;

@@ -117,2 +125,14 @@ },

continue;
case 9:
if (tag !== 74) {
break;
}
message.tokens.push(coin_1.Coin.decode(reader, reader.uint32()));
continue;
case 10:
if (tag !== 82) {
break;
}
message.forwarding = transfer_1.Forwarding.decode(reader, reader.uint32());
continue;
}

@@ -136,5 +156,8 @@ if ((tag & 7) === 4 || tag === 0) {

memo: isSet(object.memo) ? globalThis.String(object.memo) : "",
tokens: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tokens) ? object.tokens.map((e) => coin_1.Coin.fromJSON(e)) : [],
forwarding: isSet(object.forwarding) ? transfer_1.Forwarding.fromJSON(object.forwarding) : undefined,
};
},
toJSON(message) {
var _a;
const obj = {};

@@ -165,2 +188,8 @@ if (message.sourcePort !== "") {

}
if ((_a = message.tokens) === null || _a === void 0 ? void 0 : _a.length) {
obj.tokens = message.tokens.map((e) => coin_1.Coin.toJSON(e));
}
if (message.forwarding !== undefined) {
obj.forwarding = transfer_1.Forwarding.toJSON(message.forwarding);
}
return obj;

@@ -172,3 +201,3 @@ },

fromPartial(object) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e, _f, _g;
const message = createBaseMsgTransfer();

@@ -185,2 +214,6 @@ message.sourcePort = (_a = object.sourcePort) !== null && _a !== void 0 ? _a : "";

message.memo = (_f = object.memo) !== null && _f !== void 0 ? _f : "";
message.tokens = ((_g = object.tokens) === null || _g === void 0 ? void 0 : _g.map((e) => coin_1.Coin.fromPartial(e))) || [];
message.forwarding = (object.forwarding !== undefined && object.forwarding !== null)
? transfer_1.Forwarding.fromPartial(object.forwarding)
: undefined;
return message;

@@ -187,0 +220,0 @@ },

import _m0 from "protobufjs/minimal";
import { Hop } from "../v1/transfer";
import { Token } from "./token";
/**

@@ -19,2 +21,30 @@ * FungibleTokenPacketData defines a struct for the packet payload

}
/**
* FungibleTokenPacketDataV2 defines a struct for the packet payload
* See FungibleTokenPacketDataV2 spec:
* https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
*/
export interface FungibleTokenPacketDataV2 {
/** the tokens to be transferred */
tokens: Token[];
/** the sender address */
sender: string;
/** the recipient address on the destination chain */
receiver: string;
/** optional memo */
memo: string;
/** optional forwarding information */
forwarding: ForwardingPacketData | undefined;
}
/**
* ForwardingPacketData defines a list of port ID, channel ID pairs determining the path
* through which a packet must be forwarded, and the destination memo string to be used in the
* final destination of the tokens.
*/
export interface ForwardingPacketData {
/** optional memo consumed by final destination chain */
destinationMemo: string;
/** optional intermediate path through which packet will be forwarded. */
hops: Hop[];
}
export declare const FungibleTokenPacketData: {

@@ -28,2 +58,18 @@ encode(message: FungibleTokenPacketData, writer?: _m0.Writer): _m0.Writer;

};
export declare const FungibleTokenPacketDataV2: {
encode(message: FungibleTokenPacketDataV2, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): FungibleTokenPacketDataV2;
fromJSON(object: any): FungibleTokenPacketDataV2;
toJSON(message: FungibleTokenPacketDataV2): unknown;
create(base?: DeepPartial<FungibleTokenPacketDataV2>): FungibleTokenPacketDataV2;
fromPartial(object: DeepPartial<FungibleTokenPacketDataV2>): FungibleTokenPacketDataV2;
};
export declare const ForwardingPacketData: {
encode(message: ForwardingPacketData, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ForwardingPacketData;
fromJSON(object: any): ForwardingPacketData;
toJSON(message: ForwardingPacketData): unknown;
create(base?: DeepPartial<ForwardingPacketData>): ForwardingPacketData;
fromPartial(object: DeepPartial<ForwardingPacketData>): ForwardingPacketData;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

@@ -30,0 +76,0 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -11,5 +11,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.FungibleTokenPacketData = void 0;
exports.ForwardingPacketData = exports.FungibleTokenPacketDataV2 = exports.FungibleTokenPacketData = void 0;
/* eslint-disable */
const minimal_1 = __importDefault(require("protobufjs/minimal"));
const transfer_1 = require("../v1/transfer");
const token_1 = require("./token");
function createBaseFungibleTokenPacketData() {

@@ -124,4 +126,184 @@ return { denom: "", amount: "", sender: "", receiver: "", memo: "" };

};
function createBaseFungibleTokenPacketDataV2() {
return { tokens: [], sender: "", receiver: "", memo: "", forwarding: undefined };
}
exports.FungibleTokenPacketDataV2 = {
encode(message, writer = minimal_1.default.Writer.create()) {
for (const v of message.tokens) {
token_1.Token.encode(v, writer.uint32(10).fork()).ldelim();
}
if (message.sender !== "") {
writer.uint32(18).string(message.sender);
}
if (message.receiver !== "") {
writer.uint32(26).string(message.receiver);
}
if (message.memo !== "") {
writer.uint32(34).string(message.memo);
}
if (message.forwarding !== undefined) {
exports.ForwardingPacketData.encode(message.forwarding, writer.uint32(42).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseFungibleTokenPacketDataV2();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.tokens.push(token_1.Token.decode(reader, reader.uint32()));
continue;
case 2:
if (tag !== 18) {
break;
}
message.sender = reader.string();
continue;
case 3:
if (tag !== 26) {
break;
}
message.receiver = reader.string();
continue;
case 4:
if (tag !== 34) {
break;
}
message.memo = reader.string();
continue;
case 5:
if (tag !== 42) {
break;
}
message.forwarding = exports.ForwardingPacketData.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
tokens: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tokens) ? object.tokens.map((e) => token_1.Token.fromJSON(e)) : [],
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
receiver: isSet(object.receiver) ? globalThis.String(object.receiver) : "",
memo: isSet(object.memo) ? globalThis.String(object.memo) : "",
forwarding: isSet(object.forwarding) ? exports.ForwardingPacketData.fromJSON(object.forwarding) : undefined,
};
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.tokens) === null || _a === void 0 ? void 0 : _a.length) {
obj.tokens = message.tokens.map((e) => token_1.Token.toJSON(e));
}
if (message.sender !== "") {
obj.sender = message.sender;
}
if (message.receiver !== "") {
obj.receiver = message.receiver;
}
if (message.memo !== "") {
obj.memo = message.memo;
}
if (message.forwarding !== undefined) {
obj.forwarding = exports.ForwardingPacketData.toJSON(message.forwarding);
}
return obj;
},
create(base) {
return exports.FungibleTokenPacketDataV2.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b, _c, _d;
const message = createBaseFungibleTokenPacketDataV2();
message.tokens = ((_a = object.tokens) === null || _a === void 0 ? void 0 : _a.map((e) => token_1.Token.fromPartial(e))) || [];
message.sender = (_b = object.sender) !== null && _b !== void 0 ? _b : "";
message.receiver = (_c = object.receiver) !== null && _c !== void 0 ? _c : "";
message.memo = (_d = object.memo) !== null && _d !== void 0 ? _d : "";
message.forwarding = (object.forwarding !== undefined && object.forwarding !== null)
? exports.ForwardingPacketData.fromPartial(object.forwarding)
: undefined;
return message;
},
};
function createBaseForwardingPacketData() {
return { destinationMemo: "", hops: [] };
}
exports.ForwardingPacketData = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.destinationMemo !== "") {
writer.uint32(10).string(message.destinationMemo);
}
for (const v of message.hops) {
transfer_1.Hop.encode(v, writer.uint32(18).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseForwardingPacketData();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.destinationMemo = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.hops.push(transfer_1.Hop.decode(reader, reader.uint32()));
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
destinationMemo: isSet(object.destinationMemo) ? globalThis.String(object.destinationMemo) : "",
hops: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hops) ? object.hops.map((e) => transfer_1.Hop.fromJSON(e)) : [],
};
},
toJSON(message) {
var _a;
const obj = {};
if (message.destinationMemo !== "") {
obj.destinationMemo = message.destinationMemo;
}
if ((_a = message.hops) === null || _a === void 0 ? void 0 : _a.length) {
obj.hops = message.hops.map((e) => transfer_1.Hop.toJSON(e));
}
return obj;
},
create(base) {
return exports.ForwardingPacketData.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseForwardingPacketData();
message.destinationMemo = (_a = object.destinationMemo) !== null && _a !== void 0 ? _a : "";
message.hops = ((_b = object.hops) === null || _b === void 0 ? void 0 : _b.map((e) => transfer_1.Hop.fromPartial(e))) || [];
return message;
},
};
function isSet(value) {
return value !== null && value !== undefined;
}

@@ -147,3 +147,3 @@ import _m0 from "protobufjs/minimal";

/**
* PacketId is an identifer for a unique Packet
* PacketId is an identifier for a unique Packet
* Source chains refer to packets by source port/channel

@@ -150,0 +150,0 @@ * Destination chains refer to packets by destination port/channel

@@ -259,3 +259,3 @@ import { grpc } from "@injectivelabs/grpc-web";

}
/** MsgChannelUpgradeTimeoutRepsonse defines the MsgChannelUpgradeTimeout response type */
/** MsgChannelUpgradeTimeoutResponse defines the MsgChannelUpgradeTimeout response type */
export interface MsgChannelUpgradeTimeoutResponse {

@@ -262,0 +262,0 @@ }

import _m0 from "protobufjs/minimal";
import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade";
import { Any } from "../../../../google/protobuf/any";

@@ -45,2 +44,5 @@ /**

* gets reset
*
* Please note that json tags for generated Go code are overridden to explicitly exclude the omitempty jsontag.
* This enforces the Go json marshaller to always emit zero values for both revision_number and revision_height.
*/

@@ -62,47 +64,2 @@ export interface Height {

}
/**
* ClientUpdateProposal is a legacy governance proposal. If it passes, the substitute
* client's latest consensus state is copied over to the subject client. The proposal
* handler may fail if the subject and the substitute do not match in client and
* chain parameters (with exception to latest height, frozen height, and chain-id).
*
* Deprecated: Please use MsgRecoverClient in favour of this message type.
*
* @deprecated
*/
export interface ClientUpdateProposal {
/** the title of the update proposal */
title: string;
/** the description of the proposal */
description: string;
/** the client identifier for the client to be updated if the proposal passes */
subjectClientId: string;
/**
* the substitute client identifier for the client standing in for the subject
* client
*/
substituteClientId: string;
}
/**
* UpgradeProposal is a gov Content type for initiating an IBC breaking
* upgrade.
*
* Deprecated: Please use MsgIBCSoftwareUpgrade in favour of this message type.
*
* @deprecated
*/
export interface UpgradeProposal {
title: string;
description: string;
plan: Plan | undefined;
/**
* An UpgradedClientState must be provided to perform an IBC breaking upgrade.
* This will make the chain commit to the correct upgraded (self) client state
* before the upgrade occurs, so that connecting chains can verify that the
* new upgraded client is valid by verifying a proof on the previous version
* of the chain. This will allow IBC connections to persist smoothly across
* planned chain upgrades
*/
upgradedClientState: Any | undefined;
}
export declare const IdentifiedClientState: {

@@ -148,18 +105,2 @@ encode(message: IdentifiedClientState, writer?: _m0.Writer): _m0.Writer;

};
export declare const ClientUpdateProposal: {
encode(message: ClientUpdateProposal, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ClientUpdateProposal;
fromJSON(object: any): ClientUpdateProposal;
toJSON(message: ClientUpdateProposal): unknown;
create(base?: DeepPartial<ClientUpdateProposal>): ClientUpdateProposal;
fromPartial(object: DeepPartial<ClientUpdateProposal>): ClientUpdateProposal;
};
export declare const UpgradeProposal: {
encode(message: UpgradeProposal, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): UpgradeProposal;
fromJSON(object: any): UpgradeProposal;
toJSON(message: UpgradeProposal): unknown;
create(base?: DeepPartial<UpgradeProposal>): UpgradeProposal;
fromPartial(object: DeepPartial<UpgradeProposal>): UpgradeProposal;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

@@ -166,0 +107,0 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -11,7 +11,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UpgradeProposal = exports.ClientUpdateProposal = exports.Params = exports.Height = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0;
exports.Params = exports.Height = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const minimal_1 = __importDefault(require("protobufjs/minimal"));
const upgrade_1 = require("../../../../cosmos/upgrade/v1beta1/upgrade");
const any_1 = require("../../../../google/protobuf/any");

@@ -350,194 +349,2 @@ function createBaseIdentifiedClientState() {

};
function createBaseClientUpdateProposal() {
return { title: "", description: "", subjectClientId: "", substituteClientId: "" };
}
exports.ClientUpdateProposal = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.title !== "") {
writer.uint32(10).string(message.title);
}
if (message.description !== "") {
writer.uint32(18).string(message.description);
}
if (message.subjectClientId !== "") {
writer.uint32(26).string(message.subjectClientId);
}
if (message.substituteClientId !== "") {
writer.uint32(34).string(message.substituteClientId);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseClientUpdateProposal();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.title = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.description = reader.string();
continue;
case 3:
if (tag !== 26) {
break;
}
message.subjectClientId = reader.string();
continue;
case 4:
if (tag !== 34) {
break;
}
message.substituteClientId = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
title: isSet(object.title) ? globalThis.String(object.title) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
subjectClientId: isSet(object.subjectClientId) ? globalThis.String(object.subjectClientId) : "",
substituteClientId: isSet(object.substituteClientId) ? globalThis.String(object.substituteClientId) : "",
};
},
toJSON(message) {
const obj = {};
if (message.title !== "") {
obj.title = message.title;
}
if (message.description !== "") {
obj.description = message.description;
}
if (message.subjectClientId !== "") {
obj.subjectClientId = message.subjectClientId;
}
if (message.substituteClientId !== "") {
obj.substituteClientId = message.substituteClientId;
}
return obj;
},
create(base) {
return exports.ClientUpdateProposal.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b, _c, _d;
const message = createBaseClientUpdateProposal();
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
message.subjectClientId = (_c = object.subjectClientId) !== null && _c !== void 0 ? _c : "";
message.substituteClientId = (_d = object.substituteClientId) !== null && _d !== void 0 ? _d : "";
return message;
},
};
function createBaseUpgradeProposal() {
return { title: "", description: "", plan: undefined, upgradedClientState: undefined };
}
exports.UpgradeProposal = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.title !== "") {
writer.uint32(10).string(message.title);
}
if (message.description !== "") {
writer.uint32(18).string(message.description);
}
if (message.plan !== undefined) {
upgrade_1.Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
}
if (message.upgradedClientState !== undefined) {
any_1.Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseUpgradeProposal();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.title = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.description = reader.string();
continue;
case 3:
if (tag !== 26) {
break;
}
message.plan = upgrade_1.Plan.decode(reader, reader.uint32());
continue;
case 4:
if (tag !== 34) {
break;
}
message.upgradedClientState = any_1.Any.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
title: isSet(object.title) ? globalThis.String(object.title) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
plan: isSet(object.plan) ? upgrade_1.Plan.fromJSON(object.plan) : undefined,
upgradedClientState: isSet(object.upgradedClientState) ? any_1.Any.fromJSON(object.upgradedClientState) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.title !== "") {
obj.title = message.title;
}
if (message.description !== "") {
obj.description = message.description;
}
if (message.plan !== undefined) {
obj.plan = upgrade_1.Plan.toJSON(message.plan);
}
if (message.upgradedClientState !== undefined) {
obj.upgradedClientState = any_1.Any.toJSON(message.upgradedClientState);
}
return obj;
},
create(base) {
return exports.UpgradeProposal.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseUpgradeProposal();
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
message.plan = (object.plan !== undefined && object.plan !== null) ? upgrade_1.Plan.fromPartial(object.plan) : undefined;
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
? any_1.Any.fromPartial(object.upgradedClientState)
: undefined;
return message;
},
};
function longToString(long) {

@@ -544,0 +351,0 @@ return long.toString();

@@ -23,4 +23,4 @@ import _m0 from "protobufjs/minimal";

/**
* GenesisMetadata defines the genesis type for metadata that clients may return
* with ExportMetadata
* GenesisMetadata defines the genesis type for metadata that will be used
* to export all client store keys that are not client or consensus states.
*/

@@ -27,0 +27,0 @@ export interface GenesisMetadata {

@@ -5,3 +5,3 @@ import { grpc } from "@injectivelabs/grpc-web";

import { Any } from "../../../../google/protobuf/any";
import { MerklePath } from "../../commitment/v1/commitment";
import { MerklePath } from "../../commitment/v2/commitment";
import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client";

@@ -60,3 +60,3 @@ /**

/**
* latest_height overrrides the height field and queries the latest stored
* latest_height overrides the height field and queries the latest stored
* ConsensusState

@@ -183,4 +183,2 @@ */

proofHeight: Height | undefined;
/** the commitment key path. */
merklePath: MerklePath | undefined;
/** the value which is proven. */

@@ -192,2 +190,4 @@ value: Uint8Array;

blockDelay: string;
/** the commitment key path. */
merklePath: MerklePath | undefined;
}

@@ -194,0 +194,0 @@ /** QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method */

@@ -19,3 +19,3 @@ "use strict";

const any_1 = require("../../../../google/protobuf/any");
const commitment_1 = require("../../commitment/v1/commitment");
const commitment_1 = require("../../commitment/v2/commitment");
const client_1 = require("./client");

@@ -1125,6 +1125,6 @@ function createBaseQueryClientStateRequest() {

proofHeight: undefined,
merklePath: undefined,
value: new Uint8Array(0),
timeDelay: "0",
blockDelay: "0",
merklePath: undefined,
};

@@ -1143,5 +1143,2 @@ }

}
if (message.merklePath !== undefined) {
commitment_1.MerklePath.encode(message.merklePath, writer.uint32(34).fork()).ldelim();
}
if (message.value.length !== 0) {

@@ -1156,2 +1153,5 @@ writer.uint32(42).bytes(message.value);

}
if (message.merklePath !== undefined) {
commitment_1.MerklePath.encode(message.merklePath, writer.uint32(66).fork()).ldelim();
}
return writer;

@@ -1184,8 +1184,2 @@ },

continue;
case 4:
if (tag !== 34) {
break;
}
message.merklePath = commitment_1.MerklePath.decode(reader, reader.uint32());
continue;
case 5:

@@ -1209,2 +1203,8 @@ if (tag !== 42) {

continue;
case 8:
if (tag !== 66) {
break;
}
message.merklePath = commitment_1.MerklePath.decode(reader, reader.uint32());
continue;
}

@@ -1223,6 +1223,6 @@ if ((tag & 7) === 4 || tag === 0) {

proofHeight: isSet(object.proofHeight) ? client_1.Height.fromJSON(object.proofHeight) : undefined,
merklePath: isSet(object.merklePath) ? commitment_1.MerklePath.fromJSON(object.merklePath) : undefined,
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
timeDelay: isSet(object.timeDelay) ? globalThis.String(object.timeDelay) : "0",
blockDelay: isSet(object.blockDelay) ? globalThis.String(object.blockDelay) : "0",
merklePath: isSet(object.merklePath) ? commitment_1.MerklePath.fromJSON(object.merklePath) : undefined,
};

@@ -1241,5 +1241,2 @@ },

}
if (message.merklePath !== undefined) {
obj.merklePath = commitment_1.MerklePath.toJSON(message.merklePath);
}
if (message.value.length !== 0) {

@@ -1254,2 +1251,5 @@ obj.value = base64FromBytes(message.value);

}
if (message.merklePath !== undefined) {
obj.merklePath = commitment_1.MerklePath.toJSON(message.merklePath);
}
return obj;

@@ -1268,8 +1268,8 @@ },

: undefined;
message.value = (_c = object.value) !== null && _c !== void 0 ? _c : new Uint8Array(0);
message.timeDelay = (_d = object.timeDelay) !== null && _d !== void 0 ? _d : "0";
message.blockDelay = (_e = object.blockDelay) !== null && _e !== void 0 ? _e : "0";
message.merklePath = (object.merklePath !== undefined && object.merklePath !== null)
? commitment_1.MerklePath.fromPartial(object.merklePath)
: undefined;
message.value = (_c = object.value) !== null && _c !== void 0 ? _c : new Uint8Array(0);
message.timeDelay = (_d = object.timeDelay) !== null && _d !== void 0 ? _d : "0";
message.blockDelay = (_e = object.blockDelay) !== null && _e !== void 0 ? _e : "0";
return message;

@@ -1276,0 +1276,0 @@ },

@@ -20,2 +20,3 @@ import { grpc } from "@injectivelabs/grpc-web";

export interface MsgCreateClientResponse {
clientId: string;
}

@@ -140,8 +141,8 @@ /**

export declare const MsgCreateClientResponse: {
encode(_: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer;
encode(message: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClientResponse;
fromJSON(_: any): MsgCreateClientResponse;
toJSON(_: MsgCreateClientResponse): unknown;
fromJSON(object: any): MsgCreateClientResponse;
toJSON(message: MsgCreateClientResponse): unknown;
create(base?: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
fromPartial(_: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
fromPartial(object: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
};

@@ -148,0 +149,0 @@ export declare const MsgUpdateClient: {

@@ -105,6 +105,9 @@ "use strict";

function createBaseMsgCreateClientResponse() {
return {};
return { clientId: "" };
}
exports.MsgCreateClientResponse = {
encode(_, writer = minimal_1.default.Writer.create()) {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.clientId !== "") {
writer.uint32(10).string(message.clientId);
}
return writer;

@@ -119,2 +122,8 @@ },

switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.clientId = reader.string();
continue;
}

@@ -128,7 +137,10 @@ if ((tag & 7) === 4 || tag === 0) {

},
fromJSON(_) {
return {};
fromJSON(object) {
return { clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "" };
},
toJSON(_) {
toJSON(message) {
const obj = {};
if (message.clientId !== "") {
obj.clientId = message.clientId;
}
return obj;

@@ -139,4 +151,6 @@ },

},
fromPartial(_) {
fromPartial(object) {
var _a;
const message = createBaseMsgCreateClientResponse();
message.clientId = (_a = object.clientId) !== null && _a !== void 0 ? _a : "";
return message;

@@ -143,0 +157,0 @@ },

@@ -19,10 +19,2 @@ import _m0 from "protobufjs/minimal";

/**
* MerklePath is the path used to verify commitment proofs, which can be an
* arbitrary structured object (defined by a commitment type).
* MerklePath is represented from root-to-leaf
*/
export interface MerklePath {
keyPath: string[];
}
/**
* MerkleProof is a wrapper type over a chain of CommitmentProofs.

@@ -53,10 +45,2 @@ * It demonstrates membership or non-membership for an element or set of

};
export declare const MerklePath: {
encode(message: MerklePath, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): MerklePath;
fromJSON(object: any): MerklePath;
toJSON(message: MerklePath): unknown;
create(base?: DeepPartial<MerklePath>): MerklePath;
fromPartial(object: DeepPartial<MerklePath>): MerklePath;
};
export declare const MerkleProof: {

@@ -63,0 +47,0 @@ encode(message: MerkleProof, writer?: _m0.Writer): _m0.Writer;

@@ -11,3 +11,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MerkleProof = exports.MerklePath = exports.MerklePrefix = exports.MerkleRoot = void 0;
exports.MerkleProof = exports.MerklePrefix = exports.MerkleRoot = void 0;
/* eslint-disable */

@@ -118,56 +118,2 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));

};
function createBaseMerklePath() {
return { keyPath: [] };
}
exports.MerklePath = {
encode(message, writer = minimal_1.default.Writer.create()) {
for (const v of message.keyPath) {
writer.uint32(10).string(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseMerklePath();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.keyPath.push(reader.string());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
keyPath: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.keyPath) ? object.keyPath.map((e) => globalThis.String(e)) : [],
};
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.keyPath) === null || _a === void 0 ? void 0 : _a.length) {
obj.keyPath = message.keyPath;
}
return obj;
},
create(base) {
return exports.MerklePath.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseMerklePath();
message.keyPath = ((_a = object.keyPath) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
return message;
},
};
function createBaseMerkleProof() {

@@ -174,0 +120,0 @@ return { proofs: [] };

@@ -97,3 +97,3 @@ import _m0 from "protobufjs/minimal";

/**
* Version defines the versioning scheme used to negotiate the IBC verison in
* Version defines the versioning scheme used to negotiate the IBC version in
* the connection handshake.

@@ -100,0 +100,0 @@ */

@@ -35,2 +35,7 @@ import { grpc } from "@injectivelabs/grpc-web";

previousConnectionId: string;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
clientState: Any | undefined;

@@ -42,13 +47,30 @@ counterparty: Counterparty | undefined;

/**
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* proof of the initialization the connection on Chain A: `UNINITIALIZED ->
* INIT`
*/
proofInit: Uint8Array;
/** proof of client state included in message */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofClient: Uint8Array;
/** proof of client consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofConsensus: Uint8Array;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
consensusHeight: Height | undefined;
signer: string;
/** optional proof data for host state machines that are unable to introspect their own consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
hostConsensusStateProof: Uint8Array;

@@ -67,16 +89,38 @@ }

version: Version | undefined;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
clientState: Any | undefined;
proofHeight: Height | undefined;
/**
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* proof of the initialization the connection on Chain B: `UNINITIALIZED ->
* TRYOPEN`
*/
proofTry: Uint8Array;
/** proof of client state included in message */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofClient: Uint8Array;
/** proof of client consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofConsensus: Uint8Array;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
consensusHeight: Height | undefined;
signer: string;
/** optional proof data for host state machines that are unable to introspect their own consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
hostConsensusStateProof: Uint8Array;

@@ -83,0 +127,0 @@ }

@@ -16,3 +16,3 @@ import _m0 from "protobufjs/minimal";

/**
* duration of the period since the LastestTimestamp during which the
* duration of the period since the LatestTimestamp during which the
* submitted headers are valid for upgrade

@@ -19,0 +19,0 @@ */

@@ -85,4 +85,8 @@ export * as ConfioProofs from "./cosmos/ics23/v1/proofs";

export * as GoogleProtobufTimestamp from "./google/protobuf/timestamp";
export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis";
export * as IbcApplicationsTransferV2Packet from "./ibc/applications/transfer/v2/packet";
export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token";
export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2";
export * as IbcApplicationsTransferV1Query from "./ibc/applications/transfer/v1/query";
export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace";
export * as IbcApplicationsTransferV1Transfer from "./ibc/applications/transfer/v1/transfer";

@@ -142,2 +146,8 @@ export * as IbcApplicationsTransferV1Tx from "./ibc/applications/transfer/v1/tx";

export * as InjectivePeggyV1Beta1Types from "./injective/peggy/v1/types";
export * as InjectivePermissionsV1Beta1Params from "./injective/permissions/v1beta1/params";
export * as InjectivePermissionsV1Beta1Events from "./injective/permissions/v1beta1/events";
export * as InjectivePermissionsV1Beta1Genesis from "./injective/permissions/v1beta1/genesis";
export * as InjectivePermissionsV1Beta1Query from "./injective/permissions/v1beta1/query";
export * as InjectivePermissionsV1Beta1Permissions from "./injective/permissions/v1beta1/permissions";
export * as InjectivePermissionsV1Beta1Tx from "./injective/permissions/v1beta1/tx";
export * as InjectiveTokenFactoryV1Beta1Genesis from "./injective/tokenfactory/v1beta1/genesis";

@@ -144,0 +154,0 @@ export * as InjectiveTokenFactoryV1Beta1Query from "./injective/tokenfactory/v1beta1/query";

@@ -27,5 +27,5 @@ "use strict";

exports.CosmosGovV1Gov = exports.CosmosGovV1Query = exports.CosmosGovV1Beta1Tx = exports.CosmosGovV1Beta1Genesis = exports.CosmosGovV1Beta1Gov = exports.CosmosGovV1Beta1Query = exports.CosmosGenutilV1Beta1Genesis = exports.CosmosFeegrantV1Beta1Tx = exports.CosmosFeegrantV1Beta1Genesis = exports.CosmosFeegrantV1Beta1Feegrant = exports.CosmosFeegrantV1Beta1Query = exports.CosmosEvidenceV1Beta1Tx = exports.CosmosEvidenceV1Beta1Genesis = exports.CosmosEvidenceV1Beta1Evidence = exports.CosmosEvidenceV1Beta1Query = exports.CosmosDistributionV1Beta1Tx = exports.CosmosDistributionV1Beta1Genesis = exports.CosmosDistributionV1Beta1Distribution = exports.CosmosDistributionV1Beta1Query = exports.CosmosCryptoSecp256r1Keys = exports.CosmosCryptoSecp256k1Keys = exports.CosmosCryptoV1Beta1Multisig = exports.CosmosCryptoMultisigKeys = exports.CosmosCryptoEd255519Keys = exports.CosmosCrisisV1Beta1Genesis = exports.CosmosCapabilityV1Beta1Genesis = exports.CosmosCapabilityV1Beta1Capability = exports.CosmosBaseQueryV1Beta1Pagination = exports.CosmosBaseV1Beta1Coin = exports.CosmosBaseTendermintV1Beta1Query = exports.CosmosBaseStoreV1Beta1Listening = exports.CosmosBaseStoreV1Beta1CommitInfo = exports.CosmosBaseSnapshotsV1Beta1Snapshot = exports.CosmosBaseReflectionV2Alpha1Reflection = exports.CosmosBaseReflectionV1Beta1Reflection = exports.CosmosBaseKvV1Beta1Kv = exports.CosmosBaseAbciV1Beta1Abci = exports.CosmosBankV1Beta1Tx = exports.CosmosBankV1Beta1Genesis = exports.CosmosBankV1Beta1Bank = exports.CosmosBankV1Beta1Query = exports.CosmosAuthzV1Beta1Authz = exports.CosmosAuthzV1Beta1Tx = exports.CosmosAuthzV1Beta1Genesis = exports.CosmosAuthzV1Beta1Event = exports.CosmosAuthzV1Beta1Query = exports.CosmosAuthV1Beta1Query = exports.CosmosAuthV1Beta1Genesis = exports.CosmosAuthV1Beta1Auth = exports.ConfioProofs = void 0;
exports.IbcCoreConnectionV1Connection = exports.IbcCoreConnectionV1Query = exports.IbcCoreConnectionV1Genesis = exports.IbcCoreCommitmentV1Commitment = exports.IbcCoreClientV1Tx = exports.IbcCoreClientV1Client = exports.IbcCoreClientV1Query = exports.IbcCoreClientV1Genesis = exports.IbcCoreChannelV1Tx = exports.IbcCoreChannelV1Channel = exports.IbcCoreChannelV1Query = exports.IbcCoreChannelV1Genesis = exports.IbcApplicationsTransferV1Tx = exports.IbcApplicationsTransferV1Transfer = exports.IbcApplicationsTransferV1Query = exports.IbcApplicationsTransferV2Packet = exports.GoogleProtobufTimestamp = exports.GoogleProtobufDuration = exports.GoogleProtobufDescriptor = exports.GoogleProtobufAny = exports.GoogleApiHttp = exports.CosmwasmWasmV1Types = exports.CosmwasmWasmV1Tx = exports.CosmwasmWasmV1Query = exports.CosmwasmWasmV1Proposal = exports.CosmwasmWasmV1Ibc = exports.CosmwasmWasmV1Genesis = exports.CosmosTxV1Beta1Tx = exports.CosmosTxV1Beta1Service = exports.CosmosTxSigningV1Beta1Signing = exports.CosmosVestingV1Beta1Tx = exports.CosmosVestingV1Beta1Vesting = exports.CosmosUpgradeV1Beta1Upgrade = exports.CosmosUpgradeV1Beta1Query = exports.CosmosStakingV1Beta1Authz = exports.CosmosStakingV1Beta1Tx = exports.CosmosStakingV1Beta1Genesis = exports.CosmosStakingV1Beta1Staking = exports.CosmosStakingV1Beta1Query = exports.CosmosSlashingV1Beta1Tx = exports.CosmosSlashingV1Beta1Genesis = exports.CosmosSlashingV1Beta1Slashing = exports.CosmosSlashingV1Beta1Query = exports.CosmosParamsV1Beta1Params = exports.CosmosParamsV1Beta1Query = exports.CosmosMintV1Beta1Genesis = exports.CosmosMintV1Beta1Mint = exports.CosmosMintV1Beta1Query = exports.CosmosGovV1Tx = exports.CosmosGovV1Genesis = void 0;
exports.InjectiveWasmxV1Beta1Genesis = exports.InjectiveTypesV1TxResponse = exports.InjectiveTypesV1TxExt = exports.InjectiveTypesV1Beta1Account = exports.InjectiveTokenFactoryV1Beta1AuthorityMetadata = exports.InjectiveTokenFactoryV1Beta1Events = exports.InjectiveTokenFactoryV1Beta1Tx = exports.InjectiveTokenFactoryV1Beta1Params = exports.InjectiveTokenFactoryV1Beta1Query = exports.InjectiveTokenFactoryV1Beta1Genesis = exports.InjectivePeggyV1Beta1Types = exports.InjectivePeggyV1Beta1Pool = exports.InjectivePeggyV1Beta1Msgs = exports.InjectivePeggyV1Beta1Events = exports.InjectivePeggyV1Beta1EthereumSigner = exports.InjectivePeggyV1Beta1Batch = exports.InjectivePeggyV1Beta1Attestation = exports.InjectivePeggyV1Beta1Query = exports.InjectivePeggyV1Beta1Genesis = exports.InjectivePeggyV1Beta1Params = exports.InjectiveOracleV1Beta1Proposal = exports.InjectiveOracleV1Beta1Events = exports.InjectiveOracleV1Beta1Tx = exports.InjectiveOracleV1Beta1Oracle = exports.InjectiveOracleV1Beta1Query = exports.InjectiveOracleV1Beta1Genesis = exports.InjectiveOcrV1Beta1Tx = exports.InjectiveOcrV1Beta1Ocr = exports.InjectiveOcrV1Beta1Query = exports.InjectiveOcrV1Beta1Genesis = exports.InjectiveInsuranceV1Beta1Tx = exports.InjectiveInsuranceV1Beta1Insurance = exports.InjectiveInsuranceV1Beta1Query = exports.InjectiveInsuranceV1Beta1Genesis = exports.InjectiveExchangeV1Beta1Proposal = exports.InjectiveExchangeV1Beta1Tx = exports.InjectiveExchangeV1Beta1Exchange = exports.InjectiveExchangeV1Beta1Query = exports.InjectiveExchangeV1Beta1Genesis = exports.InjectiveExchangeV1Beta1Events = exports.InjectiveExchangeV1Beta1Authz = exports.InjectiveCryptoV1Beta1Ethsecp256k1Keys = exports.InjectiveAuctionV1Beta1Tx = exports.InjectiveAuctionV1Beta1Auction = exports.InjectiveAuctionV1Beta1Query = exports.InjectiveAuctionV1Beta1Genesis = exports.IbcLightcientsTendermintV1Tendermint = exports.IbcLightcientsSolomachineV2Solomachine = exports.IbcCoreTypesV1Genesis = exports.IbcCoreConnectionV1Tx = void 0;
exports.CometVersionV1Types = exports.CometTypesV1Validator = exports.CometTypesV1Types = exports.CometTypesV1Params = exports.CometTypesV1Evidence = exports.CometTypesV1Events = exports.CometTypesV1Canonical = exports.CometTypesV1Block = exports.CometStoreV1Types = exports.CometStateV1Types = exports.CometRpcGrpcV1Beta3Types = exports.CometP2PV1Pex = exports.CometP2PV1Conn = exports.CometP2PV1Types = exports.CometMempoolV1Types = exports.CometLibsBitsV1Types = exports.CometCryptoV1Proof = exports.CometCryptoV1Keys = exports.CometBlocksyncV1Types = exports.CometAbciV1Types = exports.InjectiveWasmxV1Beta1Wasmx = exports.InjectiveWasmxV1Beta1Tx = exports.InjectiveWasmxV1Beta1Proposal = exports.InjectiveWasmxV1Beta1Query = void 0;
exports.IbcCoreClientV1Tx = exports.IbcCoreClientV1Client = exports.IbcCoreClientV1Query = exports.IbcCoreClientV1Genesis = exports.IbcCoreChannelV1Tx = exports.IbcCoreChannelV1Channel = exports.IbcCoreChannelV1Query = exports.IbcCoreChannelV1Genesis = exports.IbcApplicationsTransferV1Tx = exports.IbcApplicationsTransferV1Transfer = exports.IbcApplicationsTransferV1DenomTrace = exports.IbcApplicationsTransferV1Query = exports.IbcApplicationsTransferV2Query = exports.IbcApplicationsTransferV2Token = exports.IbcApplicationsTransferV2Packet = exports.IbcApplicationsTransferV2Genesis = exports.GoogleProtobufTimestamp = exports.GoogleProtobufDuration = exports.GoogleProtobufDescriptor = exports.GoogleProtobufAny = exports.GoogleApiHttp = exports.CosmwasmWasmV1Types = exports.CosmwasmWasmV1Tx = exports.CosmwasmWasmV1Query = exports.CosmwasmWasmV1Proposal = exports.CosmwasmWasmV1Ibc = exports.CosmwasmWasmV1Genesis = exports.CosmosTxV1Beta1Tx = exports.CosmosTxV1Beta1Service = exports.CosmosTxSigningV1Beta1Signing = exports.CosmosVestingV1Beta1Tx = exports.CosmosVestingV1Beta1Vesting = exports.CosmosUpgradeV1Beta1Upgrade = exports.CosmosUpgradeV1Beta1Query = exports.CosmosStakingV1Beta1Authz = exports.CosmosStakingV1Beta1Tx = exports.CosmosStakingV1Beta1Genesis = exports.CosmosStakingV1Beta1Staking = exports.CosmosStakingV1Beta1Query = exports.CosmosSlashingV1Beta1Tx = exports.CosmosSlashingV1Beta1Genesis = exports.CosmosSlashingV1Beta1Slashing = exports.CosmosSlashingV1Beta1Query = exports.CosmosParamsV1Beta1Params = exports.CosmosParamsV1Beta1Query = exports.CosmosMintV1Beta1Genesis = exports.CosmosMintV1Beta1Mint = exports.CosmosMintV1Beta1Query = exports.CosmosGovV1Tx = exports.CosmosGovV1Genesis = void 0;
exports.InjectivePermissionsV1Beta1Tx = exports.InjectivePermissionsV1Beta1Permissions = exports.InjectivePermissionsV1Beta1Query = exports.InjectivePermissionsV1Beta1Genesis = exports.InjectivePermissionsV1Beta1Events = exports.InjectivePermissionsV1Beta1Params = exports.InjectivePeggyV1Beta1Types = exports.InjectivePeggyV1Beta1Pool = exports.InjectivePeggyV1Beta1Msgs = exports.InjectivePeggyV1Beta1Events = exports.InjectivePeggyV1Beta1EthereumSigner = exports.InjectivePeggyV1Beta1Batch = exports.InjectivePeggyV1Beta1Attestation = exports.InjectivePeggyV1Beta1Query = exports.InjectivePeggyV1Beta1Genesis = exports.InjectivePeggyV1Beta1Params = exports.InjectiveOracleV1Beta1Proposal = exports.InjectiveOracleV1Beta1Events = exports.InjectiveOracleV1Beta1Tx = exports.InjectiveOracleV1Beta1Oracle = exports.InjectiveOracleV1Beta1Query = exports.InjectiveOracleV1Beta1Genesis = exports.InjectiveOcrV1Beta1Tx = exports.InjectiveOcrV1Beta1Ocr = exports.InjectiveOcrV1Beta1Query = exports.InjectiveOcrV1Beta1Genesis = exports.InjectiveInsuranceV1Beta1Tx = exports.InjectiveInsuranceV1Beta1Insurance = exports.InjectiveInsuranceV1Beta1Query = exports.InjectiveInsuranceV1Beta1Genesis = exports.InjectiveExchangeV1Beta1Proposal = exports.InjectiveExchangeV1Beta1Tx = exports.InjectiveExchangeV1Beta1Exchange = exports.InjectiveExchangeV1Beta1Query = exports.InjectiveExchangeV1Beta1Genesis = exports.InjectiveExchangeV1Beta1Events = exports.InjectiveExchangeV1Beta1Authz = exports.InjectiveCryptoV1Beta1Ethsecp256k1Keys = exports.InjectiveAuctionV1Beta1Tx = exports.InjectiveAuctionV1Beta1Auction = exports.InjectiveAuctionV1Beta1Query = exports.InjectiveAuctionV1Beta1Genesis = exports.IbcLightcientsTendermintV1Tendermint = exports.IbcLightcientsSolomachineV2Solomachine = exports.IbcCoreTypesV1Genesis = exports.IbcCoreConnectionV1Tx = exports.IbcCoreConnectionV1Connection = exports.IbcCoreConnectionV1Query = exports.IbcCoreConnectionV1Genesis = exports.IbcCoreCommitmentV1Commitment = void 0;
exports.CometVersionV1Types = exports.CometTypesV1Validator = exports.CometTypesV1Types = exports.CometTypesV1Params = exports.CometTypesV1Evidence = exports.CometTypesV1Events = exports.CometTypesV1Canonical = exports.CometTypesV1Block = exports.CometStoreV1Types = exports.CometStateV1Types = exports.CometRpcGrpcV1Beta3Types = exports.CometP2PV1Pex = exports.CometP2PV1Conn = exports.CometP2PV1Types = exports.CometMempoolV1Types = exports.CometLibsBitsV1Types = exports.CometCryptoV1Proof = exports.CometCryptoV1Keys = exports.CometBlocksyncV1Types = exports.CometAbciV1Types = exports.InjectiveWasmxV1Beta1Wasmx = exports.InjectiveWasmxV1Beta1Tx = exports.InjectiveWasmxV1Beta1Proposal = exports.InjectiveWasmxV1Beta1Query = exports.InjectiveWasmxV1Beta1Genesis = exports.InjectiveTypesV1TxResponse = exports.InjectiveTypesV1TxExt = exports.InjectiveTypesV1Beta1Account = exports.InjectiveTokenFactoryV1Beta1AuthorityMetadata = exports.InjectiveTokenFactoryV1Beta1Events = exports.InjectiveTokenFactoryV1Beta1Tx = exports.InjectiveTokenFactoryV1Beta1Params = exports.InjectiveTokenFactoryV1Beta1Query = exports.InjectiveTokenFactoryV1Beta1Genesis = void 0;
exports.ConfioProofs = __importStar(require("./cosmos/ics23/v1/proofs"));

@@ -115,8 +115,8 @@ exports.CosmosAuthV1Beta1Auth = __importStar(require("./cosmos/auth/v1beta1/auth"));

exports.GoogleProtobufTimestamp = __importStar(require("./google/protobuf/timestamp"));
// export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis";
exports.IbcApplicationsTransferV2Genesis = __importStar(require("./ibc/applications/transfer/v2/genesis"));
exports.IbcApplicationsTransferV2Packet = __importStar(require("./ibc/applications/transfer/v2/packet"));
// export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token";
// export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2";
exports.IbcApplicationsTransferV2Token = __importStar(require("./ibc/applications/transfer/v2/token"));
exports.IbcApplicationsTransferV2Query = __importStar(require("./ibc/applications/transfer/v2/queryv2"));
exports.IbcApplicationsTransferV1Query = __importStar(require("./ibc/applications/transfer/v1/query"));
// export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace";
exports.IbcApplicationsTransferV1DenomTrace = __importStar(require("./ibc/applications/transfer/v1/denomtrace"));
exports.IbcApplicationsTransferV1Transfer = __importStar(require("./ibc/applications/transfer/v1/transfer"));

@@ -176,2 +176,8 @@ exports.IbcApplicationsTransferV1Tx = __importStar(require("./ibc/applications/transfer/v1/tx"));

exports.InjectivePeggyV1Beta1Types = __importStar(require("./injective/peggy/v1/types"));
exports.InjectivePermissionsV1Beta1Params = __importStar(require("./injective/permissions/v1beta1/params"));
exports.InjectivePermissionsV1Beta1Events = __importStar(require("./injective/permissions/v1beta1/events"));
exports.InjectivePermissionsV1Beta1Genesis = __importStar(require("./injective/permissions/v1beta1/genesis"));
exports.InjectivePermissionsV1Beta1Query = __importStar(require("./injective/permissions/v1beta1/query"));
exports.InjectivePermissionsV1Beta1Permissions = __importStar(require("./injective/permissions/v1beta1/permissions"));
exports.InjectivePermissionsV1Beta1Tx = __importStar(require("./injective/permissions/v1beta1/tx"));
exports.InjectiveTokenFactoryV1Beta1Genesis = __importStar(require("./injective/tokenfactory/v1beta1/genesis"));

@@ -178,0 +184,0 @@ exports.InjectiveTokenFactoryV1Beta1Query = __importStar(require("./injective/tokenfactory/v1beta1/query"));

@@ -426,2 +426,6 @@ import _m0 from "protobufjs/minimal";

adminPermissions: number;
/** base token decimals */
baseDecimals: number;
/** quote token decimals */
quoteDecimals: number;
}

@@ -428,0 +432,0 @@ /** A subaccount's deposit for a given base currency */

@@ -44,2 +44,6 @@ import _m0 from "protobufjs/minimal";

adminInfo: AdminInfo | undefined;
/** base token decimals */
baseDecimals: number;
/** quote token decimals */
quoteDecimals: number;
}

@@ -93,2 +97,6 @@ export interface ExchangeEnableProposal {

adminInfo: AdminInfo | undefined;
/** base token decimals */
baseDecimals: number;
/** quote token decimals */
quoteDecimals: number;
}

@@ -95,0 +103,0 @@ /**

@@ -49,3 +49,3 @@ import _m0 from "protobufjs/minimal";

address: string;
/** unique packet identifer comprised of the channel ID, port ID and sequence */
/** unique packet identifier comprised of the channel ID, port ID and sequence */
packetId: PacketId | undefined;

@@ -52,0 +52,0 @@ }

@@ -29,3 +29,3 @@ import { grpc } from "@injectivelabs/grpc-web";

}
/** QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPacket rpc */
/** QueryIncentivizedPacketResponse defines the response type for the IncentivizedPacket rpc */
export interface QueryIncentivizedPacketResponse {

@@ -47,3 +47,6 @@ /** the identified fees for the incentivized packet */

}
/** QueryIncentivizedPacketsResponse defines the response type for the incentivized packets RPC */
/**
* QueryIncentivizedPacketsForChannelResponse defines the response type for querying for all incentivized packets
* for a specific channel
*/
export interface QueryIncentivizedPacketsForChannelResponse {

@@ -50,0 +53,0 @@ /** Map of all incentivized_packets */

@@ -43,3 +43,3 @@ import { grpc } from "@injectivelabs/grpc-web";

sourcePortId: string;
/** the source channel unique identifer */
/** the source channel unique identifier */
sourceChannelId: string;

@@ -46,0 +46,0 @@ /** account address to refund fee if necessary */

import _m0 from "protobufjs/minimal";
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
import { Hop } from "./transfer";
/** Allocation defines the spend limit for a particular port and channel */

@@ -18,3 +19,13 @@ export interface Allocation {

allowedPacketData: string[];
/** Forwarding options that are allowed. */
allowedForwarding: AllowedForwarding[];
}
/** AllowedForwarding defines which options are allowed for forwarding. */
export interface AllowedForwarding {
/**
* a list of allowed source port ID/channel ID pairs through which the packet is allowed to be forwarded until final
* destination
*/
hops: Hop[];
}
/**

@@ -36,2 +47,10 @@ * TransferAuthorization allows the grantee to spend up to spend_limit coins from

};
export declare const AllowedForwarding: {
encode(message: AllowedForwarding, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): AllowedForwarding;
fromJSON(object: any): AllowedForwarding;
toJSON(message: AllowedForwarding): unknown;
create(base?: DeepPartial<AllowedForwarding>): AllowedForwarding;
fromPartial(object: DeepPartial<AllowedForwarding>): AllowedForwarding;
};
export declare const TransferAuthorization: {

@@ -38,0 +57,0 @@ encode(message: TransferAuthorization, writer?: _m0.Writer): _m0.Writer;

@@ -9,4 +9,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import { Coin } from "../../../../cosmos/base/v1beta1/coin";
import { Hop } from "./transfer";
function createBaseAllocation() {
return { sourcePort: "", sourceChannel: "", spendLimit: [], allowList: [], allowedPacketData: [] };
return {
sourcePort: "",
sourceChannel: "",
spendLimit: [],
allowList: [],
allowedPacketData: [],
allowedForwarding: [],
};
}

@@ -30,2 +38,5 @@ export const Allocation = {

}
for (const v of message.allowedForwarding) {
AllowedForwarding.encode(v, writer.uint32(50).fork()).ldelim();
}
return writer;

@@ -70,2 +81,8 @@ },

continue;
case 6:
if (tag !== 50) {
break;
}
message.allowedForwarding.push(AllowedForwarding.decode(reader, reader.uint32()));
continue;
}

@@ -92,6 +109,9 @@ if ((tag & 7) === 4 || tag === 0) {

: [],
allowedForwarding: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.allowedForwarding)
? object.allowedForwarding.map((e) => AllowedForwarding.fromJSON(e))
: [],
};
},
toJSON(message) {
var _a, _b, _c;
var _a, _b, _c, _d;
const obj = {};

@@ -113,2 +133,5 @@ if (message.sourcePort !== "") {

}
if ((_d = message.allowedForwarding) === null || _d === void 0 ? void 0 : _d.length) {
obj.allowedForwarding = message.allowedForwarding.map((e) => AllowedForwarding.toJSON(e));
}
return obj;

@@ -120,3 +143,3 @@ },

fromPartial(object) {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f;
const message = createBaseAllocation();

@@ -128,5 +151,58 @@ message.sourcePort = (_a = object.sourcePort) !== null && _a !== void 0 ? _a : "";

message.allowedPacketData = ((_e = object.allowedPacketData) === null || _e === void 0 ? void 0 : _e.map((e) => e)) || [];
message.allowedForwarding = ((_f = object.allowedForwarding) === null || _f === void 0 ? void 0 : _f.map((e) => AllowedForwarding.fromPartial(e))) || [];
return message;
},
};
function createBaseAllowedForwarding() {
return { hops: [] };
}
export const AllowedForwarding = {
encode(message, writer = _m0.Writer.create()) {
for (const v of message.hops) {
Hop.encode(v, writer.uint32(10).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseAllowedForwarding();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.hops.push(Hop.decode(reader, reader.uint32()));
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { hops: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hops) ? object.hops.map((e) => Hop.fromJSON(e)) : [] };
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.hops) === null || _a === void 0 ? void 0 : _a.length) {
obj.hops = message.hops.map((e) => Hop.toJSON(e));
}
return obj;
},
create(base) {
return AllowedForwarding.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseAllowedForwarding();
message.hops = ((_a = object.hops) === null || _a === void 0 ? void 0 : _a.map((e) => Hop.fromPartial(e))) || [];
return message;
},
};
function createBaseTransferAuthorization() {

@@ -133,0 +209,0 @@ return { allocations: [] };

import { grpc } from "@injectivelabs/grpc-web";
import _m0 from "protobufjs/minimal";
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
import { DenomTrace, Params } from "./transfer";
/**
* QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC
* method
*/
export interface QueryDenomTraceRequest {
/** hash (in hex format) or denom (full denom with ibc prefix) of the denomination trace information. */
hash: string;
}
/**
* QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC
* method.
*/
export interface QueryDenomTraceResponse {
/** denom_trace returns the requested denomination trace information. */
denomTrace: DenomTrace | undefined;
}
/**
* QueryConnectionsRequest is the request type for the Query/DenomTraces RPC
* method
*/
export interface QueryDenomTracesRequest {
/** pagination defines an optional pagination for the request. */
pagination: PageRequest | undefined;
}
/**
* QueryConnectionsResponse is the response type for the Query/DenomTraces RPC
* method.
*/
export interface QueryDenomTracesResponse {
/** denom_traces returns all denominations trace information. */
denomTraces: DenomTrace[];
/** pagination defines the pagination in the response. */
pagination: PageResponse | undefined;
}
import { Params } from "./transfer";
/** QueryParamsRequest is the request type for the Query/Params RPC method. */

@@ -84,34 +49,2 @@ export interface QueryParamsRequest {

}
export declare const QueryDenomTraceRequest: {
encode(message: QueryDenomTraceRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTraceRequest;
fromJSON(object: any): QueryDenomTraceRequest;
toJSON(message: QueryDenomTraceRequest): unknown;
create(base?: DeepPartial<QueryDenomTraceRequest>): QueryDenomTraceRequest;
fromPartial(object: DeepPartial<QueryDenomTraceRequest>): QueryDenomTraceRequest;
};
export declare const QueryDenomTraceResponse: {
encode(message: QueryDenomTraceResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTraceResponse;
fromJSON(object: any): QueryDenomTraceResponse;
toJSON(message: QueryDenomTraceResponse): unknown;
create(base?: DeepPartial<QueryDenomTraceResponse>): QueryDenomTraceResponse;
fromPartial(object: DeepPartial<QueryDenomTraceResponse>): QueryDenomTraceResponse;
};
export declare const QueryDenomTracesRequest: {
encode(message: QueryDenomTracesRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTracesRequest;
fromJSON(object: any): QueryDenomTracesRequest;
toJSON(message: QueryDenomTracesRequest): unknown;
create(base?: DeepPartial<QueryDenomTracesRequest>): QueryDenomTracesRequest;
fromPartial(object: DeepPartial<QueryDenomTracesRequest>): QueryDenomTracesRequest;
};
export declare const QueryDenomTracesResponse: {
encode(message: QueryDenomTracesResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDenomTracesResponse;
fromJSON(object: any): QueryDenomTracesResponse;
toJSON(message: QueryDenomTracesResponse): unknown;
create(base?: DeepPartial<QueryDenomTracesResponse>): QueryDenomTracesResponse;
fromPartial(object: DeepPartial<QueryDenomTracesResponse>): QueryDenomTracesResponse;
};
export declare const QueryParamsRequest: {

@@ -183,6 +116,2 @@ encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;

export interface Query {
/** DenomTraces queries all denomination traces. */
DenomTraces(request: DeepPartial<QueryDenomTracesRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTracesResponse>;
/** DenomTrace queries a denomination trace information. */
DenomTrace(request: DeepPartial<QueryDenomTraceRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTraceResponse>;
/** Params queries all parameters of the ibc-transfer module. */

@@ -200,4 +129,2 @@ Params(request: DeepPartial<QueryParamsRequest>, metadata?: grpc.Metadata): Promise<QueryParamsResponse>;

constructor(rpc: Rpc);
DenomTraces(request: DeepPartial<QueryDenomTracesRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTracesResponse>;
DenomTrace(request: DeepPartial<QueryDenomTraceRequest>, metadata?: grpc.Metadata): Promise<QueryDenomTraceResponse>;
Params(request: DeepPartial<QueryParamsRequest>, metadata?: grpc.Metadata): Promise<QueryParamsResponse>;

@@ -211,4 +138,2 @@ DenomHash(request: DeepPartial<QueryDenomHashRequest>, metadata?: grpc.Metadata): Promise<QueryDenomHashResponse>;

};
export declare const QueryDenomTracesDesc: UnaryMethodDefinitionish;
export declare const QueryDenomTraceDesc: UnaryMethodDefinitionish;
export declare const QueryParamsDesc: UnaryMethodDefinitionish;

@@ -215,0 +140,0 @@ export declare const QueryDenomHashDesc: UnaryMethodDefinitionish;

@@ -10,232 +10,4 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import _m0 from "protobufjs/minimal";
import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";
import { Coin } from "../../../../cosmos/base/v1beta1/coin";
import { DenomTrace, Params } from "./transfer";
function createBaseQueryDenomTraceRequest() {
return { hash: "" };
}
export const QueryDenomTraceRequest = {
encode(message, writer = _m0.Writer.create()) {
if (message.hash !== "") {
writer.uint32(10).string(message.hash);
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTraceRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.hash = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { hash: isSet(object.hash) ? globalThis.String(object.hash) : "" };
},
toJSON(message) {
const obj = {};
if (message.hash !== "") {
obj.hash = message.hash;
}
return obj;
},
create(base) {
return QueryDenomTraceRequest.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseQueryDenomTraceRequest();
message.hash = (_a = object.hash) !== null && _a !== void 0 ? _a : "";
return message;
},
};
function createBaseQueryDenomTraceResponse() {
return { denomTrace: undefined };
}
export const QueryDenomTraceResponse = {
encode(message, writer = _m0.Writer.create()) {
if (message.denomTrace !== undefined) {
DenomTrace.encode(message.denomTrace, writer.uint32(10).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTraceResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.denomTrace = DenomTrace.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { denomTrace: isSet(object.denomTrace) ? DenomTrace.fromJSON(object.denomTrace) : undefined };
},
toJSON(message) {
const obj = {};
if (message.denomTrace !== undefined) {
obj.denomTrace = DenomTrace.toJSON(message.denomTrace);
}
return obj;
},
create(base) {
return QueryDenomTraceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
const message = createBaseQueryDenomTraceResponse();
message.denomTrace = (object.denomTrace !== undefined && object.denomTrace !== null)
? DenomTrace.fromPartial(object.denomTrace)
: undefined;
return message;
},
};
function createBaseQueryDenomTracesRequest() {
return { pagination: undefined };
}
export const QueryDenomTracesRequest = {
encode(message, writer = _m0.Writer.create()) {
if (message.pagination !== undefined) {
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTracesRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.pagination = PageRequest.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined };
},
toJSON(message) {
const obj = {};
if (message.pagination !== undefined) {
obj.pagination = PageRequest.toJSON(message.pagination);
}
return obj;
},
create(base) {
return QueryDenomTracesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
const message = createBaseQueryDenomTracesRequest();
message.pagination = (object.pagination !== undefined && object.pagination !== null)
? PageRequest.fromPartial(object.pagination)
: undefined;
return message;
},
};
function createBaseQueryDenomTracesResponse() {
return { denomTraces: [], pagination: undefined };
}
export const QueryDenomTracesResponse = {
encode(message, writer = _m0.Writer.create()) {
for (const v of message.denomTraces) {
DenomTrace.encode(v, writer.uint32(10).fork()).ldelim();
}
if (message.pagination !== undefined) {
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseQueryDenomTracesResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.denomTraces.push(DenomTrace.decode(reader, reader.uint32()));
continue;
case 2:
if (tag !== 18) {
break;
}
message.pagination = PageResponse.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
denomTraces: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.denomTraces)
? object.denomTraces.map((e) => DenomTrace.fromJSON(e))
: [],
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
};
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.denomTraces) === null || _a === void 0 ? void 0 : _a.length) {
obj.denomTraces = message.denomTraces.map((e) => DenomTrace.toJSON(e));
}
if (message.pagination !== undefined) {
obj.pagination = PageResponse.toJSON(message.pagination);
}
return obj;
},
create(base) {
return QueryDenomTracesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseQueryDenomTracesResponse();
message.denomTraces = ((_a = object.denomTraces) === null || _a === void 0 ? void 0 : _a.map((e) => DenomTrace.fromPartial(e))) || [];
message.pagination = (object.pagination !== undefined && object.pagination !== null)
? PageResponse.fromPartial(object.pagination)
: undefined;
return message;
},
};
import { Params } from "./transfer";
function createBaseQueryParamsRequest() {

@@ -656,4 +428,2 @@ return {};

this.rpc = rpc;
this.DenomTraces = this.DenomTraces.bind(this);
this.DenomTrace = this.DenomTrace.bind(this);
this.Params = this.Params.bind(this);

@@ -664,8 +434,2 @@ this.DenomHash = this.DenomHash.bind(this);

}
DenomTraces(request, metadata) {
return this.rpc.unary(QueryDenomTracesDesc, QueryDenomTracesRequest.fromPartial(request), metadata);
}
DenomTrace(request, metadata) {
return this.rpc.unary(QueryDenomTraceDesc, QueryDenomTraceRequest.fromPartial(request), metadata);
}
Params(request, metadata) {

@@ -685,40 +449,2 @@ return this.rpc.unary(QueryParamsDesc, QueryParamsRequest.fromPartial(request), metadata);

export const QueryDesc = { serviceName: "ibc.applications.transfer.v1.Query" };
export const QueryDenomTracesDesc = {
methodName: "DenomTraces",
service: QueryDesc,
requestStream: false,
responseStream: false,
requestType: {
serializeBinary() {
return QueryDenomTracesRequest.encode(this).finish();
},
},
responseType: {
deserializeBinary(data) {
const value = QueryDenomTracesResponse.decode(data);
return Object.assign(Object.assign({}, value), { toObject() {
return value;
} });
},
},
};
export const QueryDenomTraceDesc = {
methodName: "DenomTrace",
service: QueryDesc,
requestStream: false,
responseStream: false,
requestType: {
serializeBinary() {
return QueryDenomTraceRequest.encode(this).finish();
},
},
responseType: {
deserializeBinary(data) {
const value = QueryDenomTraceResponse.decode(data);
return Object.assign(Object.assign({}, value), { toObject() {
return value;
} });
},
},
};
export const QueryParamsDesc = {

@@ -725,0 +451,0 @@ methodName: "Params",

import _m0 from "protobufjs/minimal";
/**
* DenomTrace contains the base denomination for ICS20 fungible tokens and the
* source tracing information path.
*/
export interface DenomTrace {
/**
* path defines the chain of port/channel identifiers used for tracing the
* source of the fungible token.
*/
path: string;
/** base denomination of the relayed fungible token. */
baseDenom: string;
}
/**
* Params defines the set of IBC transfer parameters.

@@ -33,10 +20,21 @@ * NOTE: To prevent a single token from being transferred, set the

}
export declare const DenomTrace: {
encode(message: DenomTrace, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): DenomTrace;
fromJSON(object: any): DenomTrace;
toJSON(message: DenomTrace): unknown;
create(base?: DeepPartial<DenomTrace>): DenomTrace;
fromPartial(object: DeepPartial<DenomTrace>): DenomTrace;
};
/**
* Forwarding defines a list of port ID, channel ID pairs determining the path
* through which a packet must be forwarded, and an unwind boolean indicating if
* the coin should be unwinded to its native chain before forwarding.
*/
export interface Forwarding {
/** optional unwinding for the token transfered */
unwind: boolean;
/** optional intermediate path through which packet will be forwarded */
hops: Hop[];
}
/**
* Hop defines a port ID, channel ID pair specifying where tokens must be forwarded
* next in a multihop transfer.
*/
export interface Hop {
portId: string;
channelId: string;
}
export declare const Params: {

@@ -50,2 +48,18 @@ encode(message: Params, writer?: _m0.Writer): _m0.Writer;

};
export declare const Forwarding: {
encode(message: Forwarding, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Forwarding;
fromJSON(object: any): Forwarding;
toJSON(message: Forwarding): unknown;
create(base?: DeepPartial<Forwarding>): Forwarding;
fromPartial(object: DeepPartial<Forwarding>): Forwarding;
};
export declare const Hop: {
encode(message: Hop, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Hop;
fromJSON(object: any): Hop;
toJSON(message: Hop): unknown;
create(base?: DeepPartial<Hop>): Hop;
fromPartial(object: DeepPartial<Hop>): Hop;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

@@ -52,0 +66,0 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -8,12 +8,12 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import _m0 from "protobufjs/minimal";
function createBaseDenomTrace() {
return { path: "", baseDenom: "" };
function createBaseParams() {
return { sendEnabled: false, receiveEnabled: false };
}
export const DenomTrace = {
export const Params = {
encode(message, writer = _m0.Writer.create()) {
if (message.path !== "") {
writer.uint32(10).string(message.path);
if (message.sendEnabled !== false) {
writer.uint32(8).bool(message.sendEnabled);
}
if (message.baseDenom !== "") {
writer.uint32(18).string(message.baseDenom);
if (message.receiveEnabled !== false) {
writer.uint32(16).bool(message.receiveEnabled);
}

@@ -25,3 +25,3 @@ return writer;

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseDenomTrace();
const message = createBaseParams();
while (reader.pos < end) {

@@ -31,12 +31,12 @@ const tag = reader.uint32();

case 1:
if (tag !== 10) {
if (tag !== 8) {
break;
}
message.path = reader.string();
message.sendEnabled = reader.bool();
continue;
case 2:
if (tag !== 18) {
if (tag !== 16) {
break;
}
message.baseDenom = reader.string();
message.receiveEnabled = reader.bool();
continue;

@@ -53,4 +53,4 @@ }

return {
path: isSet(object.path) ? globalThis.String(object.path) : "",
baseDenom: isSet(object.baseDenom) ? globalThis.String(object.baseDenom) : "",
sendEnabled: isSet(object.sendEnabled) ? globalThis.Boolean(object.sendEnabled) : false,
receiveEnabled: isSet(object.receiveEnabled) ? globalThis.Boolean(object.receiveEnabled) : false,
};

@@ -60,7 +60,7 @@ },

const obj = {};
if (message.path !== "") {
obj.path = message.path;
if (message.sendEnabled !== false) {
obj.sendEnabled = message.sendEnabled;
}
if (message.baseDenom !== "") {
obj.baseDenom = message.baseDenom;
if (message.receiveEnabled !== false) {
obj.receiveEnabled = message.receiveEnabled;
}

@@ -70,22 +70,22 @@ return obj;

create(base) {
return DenomTrace.fromPartial(base !== null && base !== void 0 ? base : {});
return Params.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseDenomTrace();
message.path = (_a = object.path) !== null && _a !== void 0 ? _a : "";
message.baseDenom = (_b = object.baseDenom) !== null && _b !== void 0 ? _b : "";
const message = createBaseParams();
message.sendEnabled = (_a = object.sendEnabled) !== null && _a !== void 0 ? _a : false;
message.receiveEnabled = (_b = object.receiveEnabled) !== null && _b !== void 0 ? _b : false;
return message;
},
};
function createBaseParams() {
return { sendEnabled: false, receiveEnabled: false };
function createBaseForwarding() {
return { unwind: false, hops: [] };
}
export const Params = {
export const Forwarding = {
encode(message, writer = _m0.Writer.create()) {
if (message.sendEnabled !== false) {
writer.uint32(8).bool(message.sendEnabled);
if (message.unwind !== false) {
writer.uint32(8).bool(message.unwind);
}
if (message.receiveEnabled !== false) {
writer.uint32(16).bool(message.receiveEnabled);
for (const v of message.hops) {
Hop.encode(v, writer.uint32(18).fork()).ldelim();
}

@@ -97,3 +97,3 @@ return writer;

let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseParams();
const message = createBaseForwarding();
while (reader.pos < end) {

@@ -106,9 +106,9 @@ const tag = reader.uint32();

}
message.sendEnabled = reader.bool();
message.unwind = reader.bool();
continue;
case 2:
if (tag !== 16) {
if (tag !== 18) {
break;
}
message.receiveEnabled = reader.bool();
message.hops.push(Hop.decode(reader, reader.uint32()));
continue;

@@ -125,13 +125,14 @@ }

return {
sendEnabled: isSet(object.sendEnabled) ? globalThis.Boolean(object.sendEnabled) : false,
receiveEnabled: isSet(object.receiveEnabled) ? globalThis.Boolean(object.receiveEnabled) : false,
unwind: isSet(object.unwind) ? globalThis.Boolean(object.unwind) : false,
hops: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hops) ? object.hops.map((e) => Hop.fromJSON(e)) : [],
};
},
toJSON(message) {
var _a;
const obj = {};
if (message.sendEnabled !== false) {
obj.sendEnabled = message.sendEnabled;
if (message.unwind !== false) {
obj.unwind = message.unwind;
}
if (message.receiveEnabled !== false) {
obj.receiveEnabled = message.receiveEnabled;
if ((_a = message.hops) === null || _a === void 0 ? void 0 : _a.length) {
obj.hops = message.hops.map((e) => Hop.toJSON(e));
}

@@ -141,14 +142,81 @@ return obj;

create(base) {
return Params.fromPartial(base !== null && base !== void 0 ? base : {});
return Forwarding.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseParams();
message.sendEnabled = (_a = object.sendEnabled) !== null && _a !== void 0 ? _a : false;
message.receiveEnabled = (_b = object.receiveEnabled) !== null && _b !== void 0 ? _b : false;
const message = createBaseForwarding();
message.unwind = (_a = object.unwind) !== null && _a !== void 0 ? _a : false;
message.hops = ((_b = object.hops) === null || _b === void 0 ? void 0 : _b.map((e) => Hop.fromPartial(e))) || [];
return message;
},
};
function createBaseHop() {
return { portId: "", channelId: "" };
}
export const Hop = {
encode(message, writer = _m0.Writer.create()) {
if (message.portId !== "") {
writer.uint32(10).string(message.portId);
}
if (message.channelId !== "") {
writer.uint32(18).string(message.channelId);
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseHop();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.portId = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.channelId = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
portId: isSet(object.portId) ? globalThis.String(object.portId) : "",
channelId: isSet(object.channelId) ? globalThis.String(object.channelId) : "",
};
},
toJSON(message) {
const obj = {};
if (message.portId !== "") {
obj.portId = message.portId;
}
if (message.channelId !== "") {
obj.channelId = message.channelId;
}
return obj;
},
create(base) {
return Hop.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseHop();
message.portId = (_a = object.portId) !== null && _a !== void 0 ? _a : "";
message.channelId = (_b = object.channelId) !== null && _b !== void 0 ? _b : "";
return message;
},
};
function isSet(value) {
return value !== null && value !== undefined;
}

@@ -5,3 +5,3 @@ import { grpc } from "@injectivelabs/grpc-web";

import { Height } from "../../../core/client/v1/client";
import { Params } from "./transfer";
import { Forwarding, Params } from "./transfer";
/**

@@ -17,3 +17,7 @@ * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between

sourceChannel: string;
/** the tokens to be transferred */
/**
* the token to be transferred. this field has been replaced by the tokens field.
*
* @deprecated
*/
token: Coin | undefined;

@@ -36,2 +40,6 @@ /** the sender address */

memo: string;
/** tokens to be transferred */
tokens: Coin[];
/** optional forwarding information */
forwarding: Forwarding | undefined;
}

@@ -38,0 +46,0 @@ /** MsgTransferResponse defines the Msg/Transfer response type. */

@@ -13,3 +13,3 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import { Height } from "../../../core/client/v1/client";
import { Params } from "./transfer";
import { Forwarding, Params } from "./transfer";
function createBaseMsgTransfer() {

@@ -25,2 +25,4 @@ return {

memo: "",
tokens: [],
forwarding: undefined,
};

@@ -54,2 +56,8 @@ }

}
for (const v of message.tokens) {
Coin.encode(v, writer.uint32(74).fork()).ldelim();
}
if (message.forwarding !== undefined) {
Forwarding.encode(message.forwarding, writer.uint32(82).fork()).ldelim();
}
return writer;

@@ -112,2 +120,14 @@ },

continue;
case 9:
if (tag !== 74) {
break;
}
message.tokens.push(Coin.decode(reader, reader.uint32()));
continue;
case 10:
if (tag !== 82) {
break;
}
message.forwarding = Forwarding.decode(reader, reader.uint32());
continue;
}

@@ -131,5 +151,8 @@ if ((tag & 7) === 4 || tag === 0) {

memo: isSet(object.memo) ? globalThis.String(object.memo) : "",
tokens: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tokens) ? object.tokens.map((e) => Coin.fromJSON(e)) : [],
forwarding: isSet(object.forwarding) ? Forwarding.fromJSON(object.forwarding) : undefined,
};
},
toJSON(message) {
var _a;
const obj = {};

@@ -160,2 +183,8 @@ if (message.sourcePort !== "") {

}
if ((_a = message.tokens) === null || _a === void 0 ? void 0 : _a.length) {
obj.tokens = message.tokens.map((e) => Coin.toJSON(e));
}
if (message.forwarding !== undefined) {
obj.forwarding = Forwarding.toJSON(message.forwarding);
}
return obj;

@@ -167,3 +196,3 @@ },

fromPartial(object) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e, _f, _g;
const message = createBaseMsgTransfer();

@@ -180,2 +209,6 @@ message.sourcePort = (_a = object.sourcePort) !== null && _a !== void 0 ? _a : "";

message.memo = (_f = object.memo) !== null && _f !== void 0 ? _f : "";
message.tokens = ((_g = object.tokens) === null || _g === void 0 ? void 0 : _g.map((e) => Coin.fromPartial(e))) || [];
message.forwarding = (object.forwarding !== undefined && object.forwarding !== null)
? Forwarding.fromPartial(object.forwarding)
: undefined;
return message;

@@ -182,0 +215,0 @@ },

import _m0 from "protobufjs/minimal";
import { Hop } from "../v1/transfer";
import { Token } from "./token";
/**

@@ -19,2 +21,30 @@ * FungibleTokenPacketData defines a struct for the packet payload

}
/**
* FungibleTokenPacketDataV2 defines a struct for the packet payload
* See FungibleTokenPacketDataV2 spec:
* https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
*/
export interface FungibleTokenPacketDataV2 {
/** the tokens to be transferred */
tokens: Token[];
/** the sender address */
sender: string;
/** the recipient address on the destination chain */
receiver: string;
/** optional memo */
memo: string;
/** optional forwarding information */
forwarding: ForwardingPacketData | undefined;
}
/**
* ForwardingPacketData defines a list of port ID, channel ID pairs determining the path
* through which a packet must be forwarded, and the destination memo string to be used in the
* final destination of the tokens.
*/
export interface ForwardingPacketData {
/** optional memo consumed by final destination chain */
destinationMemo: string;
/** optional intermediate path through which packet will be forwarded. */
hops: Hop[];
}
export declare const FungibleTokenPacketData: {

@@ -28,2 +58,18 @@ encode(message: FungibleTokenPacketData, writer?: _m0.Writer): _m0.Writer;

};
export declare const FungibleTokenPacketDataV2: {
encode(message: FungibleTokenPacketDataV2, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): FungibleTokenPacketDataV2;
fromJSON(object: any): FungibleTokenPacketDataV2;
toJSON(message: FungibleTokenPacketDataV2): unknown;
create(base?: DeepPartial<FungibleTokenPacketDataV2>): FungibleTokenPacketDataV2;
fromPartial(object: DeepPartial<FungibleTokenPacketDataV2>): FungibleTokenPacketDataV2;
};
export declare const ForwardingPacketData: {
encode(message: ForwardingPacketData, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ForwardingPacketData;
fromJSON(object: any): ForwardingPacketData;
toJSON(message: ForwardingPacketData): unknown;
create(base?: DeepPartial<ForwardingPacketData>): ForwardingPacketData;
fromPartial(object: DeepPartial<ForwardingPacketData>): ForwardingPacketData;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

@@ -30,0 +76,0 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -8,2 +8,4 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import _m0 from "protobufjs/minimal";
import { Hop } from "../v1/transfer";
import { Token } from "./token";
function createBaseFungibleTokenPacketData() {

@@ -118,4 +120,184 @@ return { denom: "", amount: "", sender: "", receiver: "", memo: "" };

};
function createBaseFungibleTokenPacketDataV2() {
return { tokens: [], sender: "", receiver: "", memo: "", forwarding: undefined };
}
export const FungibleTokenPacketDataV2 = {
encode(message, writer = _m0.Writer.create()) {
for (const v of message.tokens) {
Token.encode(v, writer.uint32(10).fork()).ldelim();
}
if (message.sender !== "") {
writer.uint32(18).string(message.sender);
}
if (message.receiver !== "") {
writer.uint32(26).string(message.receiver);
}
if (message.memo !== "") {
writer.uint32(34).string(message.memo);
}
if (message.forwarding !== undefined) {
ForwardingPacketData.encode(message.forwarding, writer.uint32(42).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseFungibleTokenPacketDataV2();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.tokens.push(Token.decode(reader, reader.uint32()));
continue;
case 2:
if (tag !== 18) {
break;
}
message.sender = reader.string();
continue;
case 3:
if (tag !== 26) {
break;
}
message.receiver = reader.string();
continue;
case 4:
if (tag !== 34) {
break;
}
message.memo = reader.string();
continue;
case 5:
if (tag !== 42) {
break;
}
message.forwarding = ForwardingPacketData.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
tokens: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.tokens) ? object.tokens.map((e) => Token.fromJSON(e)) : [],
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
receiver: isSet(object.receiver) ? globalThis.String(object.receiver) : "",
memo: isSet(object.memo) ? globalThis.String(object.memo) : "",
forwarding: isSet(object.forwarding) ? ForwardingPacketData.fromJSON(object.forwarding) : undefined,
};
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.tokens) === null || _a === void 0 ? void 0 : _a.length) {
obj.tokens = message.tokens.map((e) => Token.toJSON(e));
}
if (message.sender !== "") {
obj.sender = message.sender;
}
if (message.receiver !== "") {
obj.receiver = message.receiver;
}
if (message.memo !== "") {
obj.memo = message.memo;
}
if (message.forwarding !== undefined) {
obj.forwarding = ForwardingPacketData.toJSON(message.forwarding);
}
return obj;
},
create(base) {
return FungibleTokenPacketDataV2.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b, _c, _d;
const message = createBaseFungibleTokenPacketDataV2();
message.tokens = ((_a = object.tokens) === null || _a === void 0 ? void 0 : _a.map((e) => Token.fromPartial(e))) || [];
message.sender = (_b = object.sender) !== null && _b !== void 0 ? _b : "";
message.receiver = (_c = object.receiver) !== null && _c !== void 0 ? _c : "";
message.memo = (_d = object.memo) !== null && _d !== void 0 ? _d : "";
message.forwarding = (object.forwarding !== undefined && object.forwarding !== null)
? ForwardingPacketData.fromPartial(object.forwarding)
: undefined;
return message;
},
};
function createBaseForwardingPacketData() {
return { destinationMemo: "", hops: [] };
}
export const ForwardingPacketData = {
encode(message, writer = _m0.Writer.create()) {
if (message.destinationMemo !== "") {
writer.uint32(10).string(message.destinationMemo);
}
for (const v of message.hops) {
Hop.encode(v, writer.uint32(18).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseForwardingPacketData();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.destinationMemo = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.hops.push(Hop.decode(reader, reader.uint32()));
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
destinationMemo: isSet(object.destinationMemo) ? globalThis.String(object.destinationMemo) : "",
hops: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hops) ? object.hops.map((e) => Hop.fromJSON(e)) : [],
};
},
toJSON(message) {
var _a;
const obj = {};
if (message.destinationMemo !== "") {
obj.destinationMemo = message.destinationMemo;
}
if ((_a = message.hops) === null || _a === void 0 ? void 0 : _a.length) {
obj.hops = message.hops.map((e) => Hop.toJSON(e));
}
return obj;
},
create(base) {
return ForwardingPacketData.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseForwardingPacketData();
message.destinationMemo = (_a = object.destinationMemo) !== null && _a !== void 0 ? _a : "";
message.hops = ((_b = object.hops) === null || _b === void 0 ? void 0 : _b.map((e) => Hop.fromPartial(e))) || [];
return message;
},
};
function isSet(value) {
return value !== null && value !== undefined;
}

@@ -147,3 +147,3 @@ import _m0 from "protobufjs/minimal";

/**
* PacketId is an identifer for a unique Packet
* PacketId is an identifier for a unique Packet
* Source chains refer to packets by source port/channel

@@ -150,0 +150,0 @@ * Destination chains refer to packets by destination port/channel

@@ -259,3 +259,3 @@ import { grpc } from "@injectivelabs/grpc-web";

}
/** MsgChannelUpgradeTimeoutRepsonse defines the MsgChannelUpgradeTimeout response type */
/** MsgChannelUpgradeTimeoutResponse defines the MsgChannelUpgradeTimeout response type */
export interface MsgChannelUpgradeTimeoutResponse {

@@ -262,0 +262,0 @@ }

import _m0 from "protobufjs/minimal";
import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade";
import { Any } from "../../../../google/protobuf/any";

@@ -45,2 +44,5 @@ /**

* gets reset
*
* Please note that json tags for generated Go code are overridden to explicitly exclude the omitempty jsontag.
* This enforces the Go json marshaller to always emit zero values for both revision_number and revision_height.
*/

@@ -62,47 +64,2 @@ export interface Height {

}
/**
* ClientUpdateProposal is a legacy governance proposal. If it passes, the substitute
* client's latest consensus state is copied over to the subject client. The proposal
* handler may fail if the subject and the substitute do not match in client and
* chain parameters (with exception to latest height, frozen height, and chain-id).
*
* Deprecated: Please use MsgRecoverClient in favour of this message type.
*
* @deprecated
*/
export interface ClientUpdateProposal {
/** the title of the update proposal */
title: string;
/** the description of the proposal */
description: string;
/** the client identifier for the client to be updated if the proposal passes */
subjectClientId: string;
/**
* the substitute client identifier for the client standing in for the subject
* client
*/
substituteClientId: string;
}
/**
* UpgradeProposal is a gov Content type for initiating an IBC breaking
* upgrade.
*
* Deprecated: Please use MsgIBCSoftwareUpgrade in favour of this message type.
*
* @deprecated
*/
export interface UpgradeProposal {
title: string;
description: string;
plan: Plan | undefined;
/**
* An UpgradedClientState must be provided to perform an IBC breaking upgrade.
* This will make the chain commit to the correct upgraded (self) client state
* before the upgrade occurs, so that connecting chains can verify that the
* new upgraded client is valid by verifying a proof on the previous version
* of the chain. This will allow IBC connections to persist smoothly across
* planned chain upgrades
*/
upgradedClientState: Any | undefined;
}
export declare const IdentifiedClientState: {

@@ -148,18 +105,2 @@ encode(message: IdentifiedClientState, writer?: _m0.Writer): _m0.Writer;

};
export declare const ClientUpdateProposal: {
encode(message: ClientUpdateProposal, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ClientUpdateProposal;
fromJSON(object: any): ClientUpdateProposal;
toJSON(message: ClientUpdateProposal): unknown;
create(base?: DeepPartial<ClientUpdateProposal>): ClientUpdateProposal;
fromPartial(object: DeepPartial<ClientUpdateProposal>): ClientUpdateProposal;
};
export declare const UpgradeProposal: {
encode(message: UpgradeProposal, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): UpgradeProposal;
fromJSON(object: any): UpgradeProposal;
toJSON(message: UpgradeProposal): unknown;
create(base?: DeepPartial<UpgradeProposal>): UpgradeProposal;
fromPartial(object: DeepPartial<UpgradeProposal>): UpgradeProposal;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;

@@ -166,0 +107,0 @@ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -9,3 +9,2 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import _m0 from "protobufjs/minimal";
import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade";
import { Any } from "../../../../google/protobuf/any";

@@ -344,194 +343,2 @@ function createBaseIdentifiedClientState() {

};
function createBaseClientUpdateProposal() {
return { title: "", description: "", subjectClientId: "", substituteClientId: "" };
}
export const ClientUpdateProposal = {
encode(message, writer = _m0.Writer.create()) {
if (message.title !== "") {
writer.uint32(10).string(message.title);
}
if (message.description !== "") {
writer.uint32(18).string(message.description);
}
if (message.subjectClientId !== "") {
writer.uint32(26).string(message.subjectClientId);
}
if (message.substituteClientId !== "") {
writer.uint32(34).string(message.substituteClientId);
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseClientUpdateProposal();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.title = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.description = reader.string();
continue;
case 3:
if (tag !== 26) {
break;
}
message.subjectClientId = reader.string();
continue;
case 4:
if (tag !== 34) {
break;
}
message.substituteClientId = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
title: isSet(object.title) ? globalThis.String(object.title) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
subjectClientId: isSet(object.subjectClientId) ? globalThis.String(object.subjectClientId) : "",
substituteClientId: isSet(object.substituteClientId) ? globalThis.String(object.substituteClientId) : "",
};
},
toJSON(message) {
const obj = {};
if (message.title !== "") {
obj.title = message.title;
}
if (message.description !== "") {
obj.description = message.description;
}
if (message.subjectClientId !== "") {
obj.subjectClientId = message.subjectClientId;
}
if (message.substituteClientId !== "") {
obj.substituteClientId = message.substituteClientId;
}
return obj;
},
create(base) {
return ClientUpdateProposal.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b, _c, _d;
const message = createBaseClientUpdateProposal();
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
message.subjectClientId = (_c = object.subjectClientId) !== null && _c !== void 0 ? _c : "";
message.substituteClientId = (_d = object.substituteClientId) !== null && _d !== void 0 ? _d : "";
return message;
},
};
function createBaseUpgradeProposal() {
return { title: "", description: "", plan: undefined, upgradedClientState: undefined };
}
export const UpgradeProposal = {
encode(message, writer = _m0.Writer.create()) {
if (message.title !== "") {
writer.uint32(10).string(message.title);
}
if (message.description !== "") {
writer.uint32(18).string(message.description);
}
if (message.plan !== undefined) {
Plan.encode(message.plan, writer.uint32(26).fork()).ldelim();
}
if (message.upgradedClientState !== undefined) {
Any.encode(message.upgradedClientState, writer.uint32(34).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseUpgradeProposal();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.title = reader.string();
continue;
case 2:
if (tag !== 18) {
break;
}
message.description = reader.string();
continue;
case 3:
if (tag !== 26) {
break;
}
message.plan = Plan.decode(reader, reader.uint32());
continue;
case 4:
if (tag !== 34) {
break;
}
message.upgradedClientState = Any.decode(reader, reader.uint32());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
title: isSet(object.title) ? globalThis.String(object.title) : "",
description: isSet(object.description) ? globalThis.String(object.description) : "",
plan: isSet(object.plan) ? Plan.fromJSON(object.plan) : undefined,
upgradedClientState: isSet(object.upgradedClientState) ? Any.fromJSON(object.upgradedClientState) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.title !== "") {
obj.title = message.title;
}
if (message.description !== "") {
obj.description = message.description;
}
if (message.plan !== undefined) {
obj.plan = Plan.toJSON(message.plan);
}
if (message.upgradedClientState !== undefined) {
obj.upgradedClientState = Any.toJSON(message.upgradedClientState);
}
return obj;
},
create(base) {
return UpgradeProposal.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a, _b;
const message = createBaseUpgradeProposal();
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
message.plan = (object.plan !== undefined && object.plan !== null) ? Plan.fromPartial(object.plan) : undefined;
message.upgradedClientState = (object.upgradedClientState !== undefined && object.upgradedClientState !== null)
? Any.fromPartial(object.upgradedClientState)
: undefined;
return message;
},
};
function longToString(long) {

@@ -538,0 +345,0 @@ return long.toString();

@@ -23,4 +23,4 @@ import _m0 from "protobufjs/minimal";

/**
* GenesisMetadata defines the genesis type for metadata that clients may return
* with ExportMetadata
* GenesisMetadata defines the genesis type for metadata that will be used
* to export all client store keys that are not client or consensus states.
*/

@@ -27,0 +27,0 @@ export interface GenesisMetadata {

@@ -5,3 +5,3 @@ import { grpc } from "@injectivelabs/grpc-web";

import { Any } from "../../../../google/protobuf/any";
import { MerklePath } from "../../commitment/v1/commitment";
import { MerklePath } from "../../commitment/v2/commitment";
import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client";

@@ -60,3 +60,3 @@ /**

/**
* latest_height overrrides the height field and queries the latest stored
* latest_height overrides the height field and queries the latest stored
* ConsensusState

@@ -183,4 +183,2 @@ */

proofHeight: Height | undefined;
/** the commitment key path. */
merklePath: MerklePath | undefined;
/** the value which is proven. */

@@ -192,2 +190,4 @@ value: Uint8Array;

blockDelay: string;
/** the commitment key path. */
merklePath: MerklePath | undefined;
}

@@ -194,0 +194,0 @@ /** QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method */

@@ -13,3 +13,3 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

import { Any } from "../../../../google/protobuf/any";
import { MerklePath } from "../../commitment/v1/commitment";
import { MerklePath } from "../../commitment/v2/commitment";
import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client";

@@ -1119,6 +1119,6 @@ function createBaseQueryClientStateRequest() {

proofHeight: undefined,
merklePath: undefined,
value: new Uint8Array(0),
timeDelay: "0",
blockDelay: "0",
merklePath: undefined,
};

@@ -1137,5 +1137,2 @@ }

}
if (message.merklePath !== undefined) {
MerklePath.encode(message.merklePath, writer.uint32(34).fork()).ldelim();
}
if (message.value.length !== 0) {

@@ -1150,2 +1147,5 @@ writer.uint32(42).bytes(message.value);

}
if (message.merklePath !== undefined) {
MerklePath.encode(message.merklePath, writer.uint32(66).fork()).ldelim();
}
return writer;

@@ -1178,8 +1178,2 @@ },

continue;
case 4:
if (tag !== 34) {
break;
}
message.merklePath = MerklePath.decode(reader, reader.uint32());
continue;
case 5:

@@ -1203,2 +1197,8 @@ if (tag !== 42) {

continue;
case 8:
if (tag !== 66) {
break;
}
message.merklePath = MerklePath.decode(reader, reader.uint32());
continue;
}

@@ -1217,6 +1217,6 @@ if ((tag & 7) === 4 || tag === 0) {

proofHeight: isSet(object.proofHeight) ? Height.fromJSON(object.proofHeight) : undefined,
merklePath: isSet(object.merklePath) ? MerklePath.fromJSON(object.merklePath) : undefined,
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
timeDelay: isSet(object.timeDelay) ? globalThis.String(object.timeDelay) : "0",
blockDelay: isSet(object.blockDelay) ? globalThis.String(object.blockDelay) : "0",
merklePath: isSet(object.merklePath) ? MerklePath.fromJSON(object.merklePath) : undefined,
};

@@ -1235,5 +1235,2 @@ },

}
if (message.merklePath !== undefined) {
obj.merklePath = MerklePath.toJSON(message.merklePath);
}
if (message.value.length !== 0) {

@@ -1248,2 +1245,5 @@ obj.value = base64FromBytes(message.value);

}
if (message.merklePath !== undefined) {
obj.merklePath = MerklePath.toJSON(message.merklePath);
}
return obj;

@@ -1262,8 +1262,8 @@ },

: undefined;
message.value = (_c = object.value) !== null && _c !== void 0 ? _c : new Uint8Array(0);
message.timeDelay = (_d = object.timeDelay) !== null && _d !== void 0 ? _d : "0";
message.blockDelay = (_e = object.blockDelay) !== null && _e !== void 0 ? _e : "0";
message.merklePath = (object.merklePath !== undefined && object.merklePath !== null)
? MerklePath.fromPartial(object.merklePath)
: undefined;
message.value = (_c = object.value) !== null && _c !== void 0 ? _c : new Uint8Array(0);
message.timeDelay = (_d = object.timeDelay) !== null && _d !== void 0 ? _d : "0";
message.blockDelay = (_e = object.blockDelay) !== null && _e !== void 0 ? _e : "0";
return message;

@@ -1270,0 +1270,0 @@ },

@@ -20,2 +20,3 @@ import { grpc } from "@injectivelabs/grpc-web";

export interface MsgCreateClientResponse {
clientId: string;
}

@@ -140,8 +141,8 @@ /**

export declare const MsgCreateClientResponse: {
encode(_: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer;
encode(message: MsgCreateClientResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateClientResponse;
fromJSON(_: any): MsgCreateClientResponse;
toJSON(_: MsgCreateClientResponse): unknown;
fromJSON(object: any): MsgCreateClientResponse;
toJSON(message: MsgCreateClientResponse): unknown;
create(base?: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
fromPartial(_: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
fromPartial(object: DeepPartial<MsgCreateClientResponse>): MsgCreateClientResponse;
};

@@ -148,0 +149,0 @@ export declare const MsgUpdateClient: {

@@ -99,6 +99,9 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

function createBaseMsgCreateClientResponse() {
return {};
return { clientId: "" };
}
export const MsgCreateClientResponse = {
encode(_, writer = _m0.Writer.create()) {
encode(message, writer = _m0.Writer.create()) {
if (message.clientId !== "") {
writer.uint32(10).string(message.clientId);
}
return writer;

@@ -113,2 +116,8 @@ },

switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.clientId = reader.string();
continue;
}

@@ -122,7 +131,10 @@ if ((tag & 7) === 4 || tag === 0) {

},
fromJSON(_) {
return {};
fromJSON(object) {
return { clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "" };
},
toJSON(_) {
toJSON(message) {
const obj = {};
if (message.clientId !== "") {
obj.clientId = message.clientId;
}
return obj;

@@ -133,4 +145,6 @@ },

},
fromPartial(_) {
fromPartial(object) {
var _a;
const message = createBaseMsgCreateClientResponse();
message.clientId = (_a = object.clientId) !== null && _a !== void 0 ? _a : "";
return message;

@@ -137,0 +151,0 @@ },

@@ -19,10 +19,2 @@ import _m0 from "protobufjs/minimal";

/**
* MerklePath is the path used to verify commitment proofs, which can be an
* arbitrary structured object (defined by a commitment type).
* MerklePath is represented from root-to-leaf
*/
export interface MerklePath {
keyPath: string[];
}
/**
* MerkleProof is a wrapper type over a chain of CommitmentProofs.

@@ -53,10 +45,2 @@ * It demonstrates membership or non-membership for an element or set of

};
export declare const MerklePath: {
encode(message: MerklePath, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): MerklePath;
fromJSON(object: any): MerklePath;
toJSON(message: MerklePath): unknown;
create(base?: DeepPartial<MerklePath>): MerklePath;
fromPartial(object: DeepPartial<MerklePath>): MerklePath;
};
export declare const MerkleProof: {

@@ -63,0 +47,0 @@ encode(message: MerkleProof, writer?: _m0.Writer): _m0.Writer;

@@ -111,56 +111,2 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.

};
function createBaseMerklePath() {
return { keyPath: [] };
}
export const MerklePath = {
encode(message, writer = _m0.Writer.create()) {
for (const v of message.keyPath) {
writer.uint32(10).string(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseMerklePath();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.keyPath.push(reader.string());
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
keyPath: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.keyPath) ? object.keyPath.map((e) => globalThis.String(e)) : [],
};
},
toJSON(message) {
var _a;
const obj = {};
if ((_a = message.keyPath) === null || _a === void 0 ? void 0 : _a.length) {
obj.keyPath = message.keyPath;
}
return obj;
},
create(base) {
return MerklePath.fromPartial(base !== null && base !== void 0 ? base : {});
},
fromPartial(object) {
var _a;
const message = createBaseMerklePath();
message.keyPath = ((_a = object.keyPath) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
return message;
},
};
function createBaseMerkleProof() {

@@ -167,0 +113,0 @@ return { proofs: [] };

@@ -97,3 +97,3 @@ import _m0 from "protobufjs/minimal";

/**
* Version defines the versioning scheme used to negotiate the IBC verison in
* Version defines the versioning scheme used to negotiate the IBC version in
* the connection handshake.

@@ -100,0 +100,0 @@ */

@@ -35,2 +35,7 @@ import { grpc } from "@injectivelabs/grpc-web";

previousConnectionId: string;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
clientState: Any | undefined;

@@ -42,13 +47,30 @@ counterparty: Counterparty | undefined;

/**
* proof of the initialization the connection on Chain A: `UNITIALIZED ->
* proof of the initialization the connection on Chain A: `UNINITIALIZED ->
* INIT`
*/
proofInit: Uint8Array;
/** proof of client state included in message */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofClient: Uint8Array;
/** proof of client consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofConsensus: Uint8Array;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
consensusHeight: Height | undefined;
signer: string;
/** optional proof data for host state machines that are unable to introspect their own consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
hostConsensusStateProof: Uint8Array;

@@ -67,16 +89,38 @@ }

version: Version | undefined;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
clientState: Any | undefined;
proofHeight: Height | undefined;
/**
* proof of the initialization the connection on Chain B: `UNITIALIZED ->
* proof of the initialization the connection on Chain B: `UNINITIALIZED ->
* TRYOPEN`
*/
proofTry: Uint8Array;
/** proof of client state included in message */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofClient: Uint8Array;
/** proof of client consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
proofConsensus: Uint8Array;
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
consensusHeight: Height | undefined;
signer: string;
/** optional proof data for host state machines that are unable to introspect their own consensus state */
/**
* Deprecated: this field is unused.
*
* @deprecated
*/
hostConsensusStateProof: Uint8Array;

@@ -83,0 +127,0 @@ }

@@ -16,3 +16,3 @@ import _m0 from "protobufjs/minimal";

/**
* duration of the period since the LastestTimestamp during which the
* duration of the period since the LatestTimestamp during which the
* submitted headers are valid for upgrade

@@ -19,0 +19,0 @@ */

@@ -85,4 +85,8 @@ export * as ConfioProofs from "./cosmos/ics23/v1/proofs";

export * as GoogleProtobufTimestamp from "./google/protobuf/timestamp";
export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis";
export * as IbcApplicationsTransferV2Packet from "./ibc/applications/transfer/v2/packet";
export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token";
export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2";
export * as IbcApplicationsTransferV1Query from "./ibc/applications/transfer/v1/query";
export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace";
export * as IbcApplicationsTransferV1Transfer from "./ibc/applications/transfer/v1/transfer";

@@ -142,2 +146,8 @@ export * as IbcApplicationsTransferV1Tx from "./ibc/applications/transfer/v1/tx";

export * as InjectivePeggyV1Beta1Types from "./injective/peggy/v1/types";
export * as InjectivePermissionsV1Beta1Params from "./injective/permissions/v1beta1/params";
export * as InjectivePermissionsV1Beta1Events from "./injective/permissions/v1beta1/events";
export * as InjectivePermissionsV1Beta1Genesis from "./injective/permissions/v1beta1/genesis";
export * as InjectivePermissionsV1Beta1Query from "./injective/permissions/v1beta1/query";
export * as InjectivePermissionsV1Beta1Permissions from "./injective/permissions/v1beta1/permissions";
export * as InjectivePermissionsV1Beta1Tx from "./injective/permissions/v1beta1/tx";
export * as InjectiveTokenFactoryV1Beta1Genesis from "./injective/tokenfactory/v1beta1/genesis";

@@ -144,0 +154,0 @@ export * as InjectiveTokenFactoryV1Beta1Query from "./injective/tokenfactory/v1beta1/query";

@@ -85,8 +85,8 @@ export * as ConfioProofs from "./cosmos/ics23/v1/proofs";

export * as GoogleProtobufTimestamp from "./google/protobuf/timestamp";
// export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis";
export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis";
export * as IbcApplicationsTransferV2Packet from "./ibc/applications/transfer/v2/packet";
// export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token";
// export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2";
export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token";
export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2";
export * as IbcApplicationsTransferV1Query from "./ibc/applications/transfer/v1/query";
// export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace";
export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace";
export * as IbcApplicationsTransferV1Transfer from "./ibc/applications/transfer/v1/transfer";

@@ -146,2 +146,8 @@ export * as IbcApplicationsTransferV1Tx from "./ibc/applications/transfer/v1/tx";

export * as InjectivePeggyV1Beta1Types from "./injective/peggy/v1/types";
export * as InjectivePermissionsV1Beta1Params from "./injective/permissions/v1beta1/params";
export * as InjectivePermissionsV1Beta1Events from "./injective/permissions/v1beta1/events";
export * as InjectivePermissionsV1Beta1Genesis from "./injective/permissions/v1beta1/genesis";
export * as InjectivePermissionsV1Beta1Query from "./injective/permissions/v1beta1/query";
export * as InjectivePermissionsV1Beta1Permissions from "./injective/permissions/v1beta1/permissions";
export * as InjectivePermissionsV1Beta1Tx from "./injective/permissions/v1beta1/tx";
export * as InjectiveTokenFactoryV1Beta1Genesis from "./injective/tokenfactory/v1beta1/genesis";

@@ -148,0 +154,0 @@ export * as InjectiveTokenFactoryV1Beta1Query from "./injective/tokenfactory/v1beta1/query";

@@ -426,2 +426,6 @@ import _m0 from "protobufjs/minimal";

adminPermissions: number;
/** base token decimals */
baseDecimals: number;
/** quote token decimals */
quoteDecimals: number;
}

@@ -428,0 +432,0 @@ /** A subaccount's deposit for a given base currency */

@@ -44,2 +44,6 @@ import _m0 from "protobufjs/minimal";

adminInfo: AdminInfo | undefined;
/** base token decimals */
baseDecimals: number;
/** quote token decimals */
quoteDecimals: number;
}

@@ -93,2 +97,6 @@ export interface ExchangeEnableProposal {

adminInfo: AdminInfo | undefined;
/** base token decimals */
baseDecimals: number;
/** quote token decimals */
quoteDecimals: number;
}

@@ -95,0 +103,0 @@ /**

{
"name": "@injectivelabs/core-proto-ts",
"version": "0.0.28",
"version": "0.0.29",
"description": "Injective Chain API Query client with generated gRPC bindings.",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc