Socket
Socket
Sign inDemoInstall

@terra-money/terra.proto

Package Overview
Dependencies
Maintainers
8
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@terra-money/terra.proto - npm Package Compare versions

Comparing version 3.0.5 to 3.1.0-alpha.1

jax/code.d.ts

27

alliance/query.d.ts

@@ -31,2 +31,3 @@ import Long from "long";

}
/** @deprecated */
export interface QueryIBCAllianceRequest {

@@ -74,2 +75,3 @@ hash: string;

}
/** @deprecated */
export interface QueryIBCAllianceDelegationRequest {

@@ -91,2 +93,3 @@ delegatorAddr: string;

}
/** @deprecated */
export interface QueryIBCAllianceDelegationRewardsRequest {

@@ -269,3 +272,9 @@ delegatorAddr: string;

Alliances(request: DeepPartial<QueryAlliancesRequest>, metadata?: grpc.Metadata): Promise<QueryAlliancesResponse>;
/** Query a specific alliance by ibc hash */
/**
* Query a specific alliance by ibc hash
* @deprecated: this endpoint will be replaced for by the encoded version
* of the denom e.g.: GET:/terra/alliances/ibc%2Falliance
*
* @deprecated
*/
IBCAlliance(request: DeepPartial<QueryIBCAllianceRequest>, metadata?: grpc.Metadata): Promise<QueryAllianceResponse>;

@@ -284,7 +293,19 @@ /** Query all paginated alliance delegations */

AllianceDelegation(request: DeepPartial<QueryAllianceDelegationRequest>, metadata?: grpc.Metadata): Promise<QueryAllianceDelegationResponse>;
/** Query a delegation to an alliance by delegator addr, validator_addr and denom */
/**
* Query a delegation to an alliance by delegator addr, validator_addr and denom
* @deprecated: this endpoint will be replaced for by the encoded version
* of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
*
* @deprecated
*/
IBCAllianceDelegation(request: DeepPartial<QueryIBCAllianceDelegationRequest>, metadata?: grpc.Metadata): Promise<QueryAllianceDelegationResponse>;
/** Query for rewards by delegator addr, validator_addr and denom */
AllianceDelegationRewards(request: DeepPartial<QueryAllianceDelegationRewardsRequest>, metadata?: grpc.Metadata): Promise<QueryAllianceDelegationRewardsResponse>;
/** Query for rewards by delegator addr, validator_addr and denom */
/**
* Query for rewards by delegator addr, validator_addr and denom
* @deprecated: this endpoint will be replaced for by the encoded version
* of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
*
* @deprecated
*/
IBCAllianceDelegationRewards(request: DeepPartial<QueryIBCAllianceDelegationRewardsRequest>, metadata?: grpc.Metadata): Promise<QueryAllianceDelegationRewardsResponse>;

@@ -291,0 +312,0 @@ /** Query a specific alliance by denom */

import Long from "long";
import _m0 from "protobufjs/minimal";
import { ProposalExecutorResult } from "../../../cosmos/group/v1/types";
import { ProposalExecutorResult, ProposalStatus, TallyResult } from "../../../cosmos/group/v1/types";
export declare const protobufPackage = "cosmos.group.v1";

@@ -57,2 +57,11 @@ /** Since: cosmos-sdk 0.46 */

}
/** EventProposalPruned is an event emitted when a proposal is pruned. */
export interface EventProposalPruned {
/** proposal_id is the unique ID of the proposal. */
proposalId: Long;
/** status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN). */
status: ProposalStatus;
/** tally_result is the proposal tally result (when applicable). */
tallyResult?: TallyResult;
}
export declare const EventCreateGroup: {

@@ -121,2 +130,9 @@ encode(message: EventCreateGroup, writer?: _m0.Writer): _m0.Writer;

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

@@ -123,0 +139,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.EventLeaveGroup = exports.EventExec = exports.EventVote = exports.EventWithdrawProposal = exports.EventSubmitProposal = exports.EventUpdateGroupPolicy = exports.EventCreateGroupPolicy = exports.EventUpdateGroup = exports.EventCreateGroup = exports.protobufPackage = void 0;
exports.EventProposalPruned = exports.EventLeaveGroup = exports.EventExec = exports.EventVote = exports.EventWithdrawProposal = exports.EventSubmitProposal = exports.EventUpdateGroupPolicy = exports.EventCreateGroupPolicy = exports.EventUpdateGroup = exports.EventCreateGroup = exports.protobufPackage = void 0;
/* eslint-disable */

@@ -529,2 +529,92 @@ const long_1 = __importDefault(require("long"));

};
const baseEventProposalPruned = { proposalId: long_1.default.UZERO, status: 0 };
exports.EventProposalPruned = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (!message.proposalId.isZero()) {
writer.uint32(8).uint64(message.proposalId);
}
if (message.status !== 0) {
writer.uint32(16).int32(message.status);
}
if (message.tallyResult !== undefined) {
types_1.TallyResult.encode(message.tallyResult, writer.uint32(26).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = Object.assign({}, baseEventProposalPruned);
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.proposalId = reader.uint64();
break;
case 2:
message.status = reader.int32();
break;
case 3:
message.tallyResult = types_1.TallyResult.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
fromJSON(object) {
const message = Object.assign({}, baseEventProposalPruned);
if (object.proposalId !== undefined && object.proposalId !== null) {
message.proposalId = long_1.default.fromString(object.proposalId);
}
else {
message.proposalId = long_1.default.UZERO;
}
if (object.status !== undefined && object.status !== null) {
message.status = types_1.proposalStatusFromJSON(object.status);
}
else {
message.status = 0;
}
if (object.tallyResult !== undefined && object.tallyResult !== null) {
message.tallyResult = types_1.TallyResult.fromJSON(object.tallyResult);
}
else {
message.tallyResult = undefined;
}
return message;
},
toJSON(message) {
const obj = {};
message.proposalId !== undefined && (obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
message.status !== undefined && (obj.status = types_1.proposalStatusToJSON(message.status));
message.tallyResult !== undefined &&
(obj.tallyResult = message.tallyResult ? types_1.TallyResult.toJSON(message.tallyResult) : undefined);
return obj;
},
fromPartial(object) {
const message = Object.assign({}, baseEventProposalPruned);
if (object.proposalId !== undefined && object.proposalId !== null) {
message.proposalId = object.proposalId;
}
else {
message.proposalId = long_1.default.UZERO;
}
if (object.status !== undefined && object.status !== null) {
message.status = object.status;
}
else {
message.status = 0;
}
if (object.tallyResult !== undefined && object.tallyResult !== null) {
message.tallyResult = types_1.TallyResult.fromPartial(object.tallyResult);
}
else {
message.tallyResult = undefined;
}
return message;
},
};
if (minimal_1.default.util.Long !== long_1.default) {

@@ -531,0 +621,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -172,2 +172,22 @@ import Long from "long";

}
/**
* QueryGroupsRequest is the Query/Groups request type.
*
* Since: cosmos-sdk 0.47.1
*/
export interface QueryGroupsRequest {
/** pagination defines an optional pagination for the request. */
pagination?: PageRequest;
}
/**
* QueryGroupsResponse is the Query/Groups response type.
*
* Since: cosmos-sdk 0.47.1
*/
export interface QueryGroupsResponse {
/** `groups` is all the groups present in state. */
groups: GroupInfo[];
/** pagination defines the pagination in the response. */
pagination?: PageResponse;
}
export declare const QueryGroupInfoRequest: {

@@ -355,2 +375,16 @@ encode(message: QueryGroupInfoRequest, writer?: _m0.Writer): _m0.Writer;

};
export declare const QueryGroupsRequest: {
encode(message: QueryGroupsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGroupsRequest;
fromJSON(object: any): QueryGroupsRequest;
toJSON(message: QueryGroupsRequest): unknown;
fromPartial(object: DeepPartial<QueryGroupsRequest>): QueryGroupsRequest;
};
export declare const QueryGroupsResponse: {
encode(message: QueryGroupsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGroupsResponse;
fromJSON(object: any): QueryGroupsResponse;
toJSON(message: QueryGroupsResponse): unknown;
fromPartial(object: DeepPartial<QueryGroupsResponse>): QueryGroupsResponse;
};
/** Query is the cosmos.group.v1 Query service. */

@@ -390,2 +424,8 @@ export interface Query {

TallyResult(request: DeepPartial<QueryTallyResultRequest>, metadata?: grpc.Metadata): Promise<QueryTallyResultResponse>;
/**
* Groups queries all groups in state.
*
* Since: cosmos-sdk 0.47.1
*/
Groups(request: DeepPartial<QueryGroupsRequest>, metadata?: grpc.Metadata): Promise<QueryGroupsResponse>;
}

@@ -408,2 +448,3 @@ export declare class QueryClientImpl implements Query {

TallyResult(request: DeepPartial<QueryTallyResultRequest>, metadata?: grpc.Metadata): Promise<QueryTallyResultResponse>;
Groups(request: DeepPartial<QueryGroupsRequest>, metadata?: grpc.Metadata): Promise<QueryGroupsResponse>;
}

@@ -426,2 +467,3 @@ export declare const QueryDesc: {

export declare const QueryTallyResultDesc: UnaryMethodDefinitionish;
export declare const QueryGroupsDesc: UnaryMethodDefinitionish;
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {

@@ -428,0 +470,0 @@ requestStream: any;

@@ -15,2 +15,3 @@ import Long from "long";

amount: Coin[];
/** end of vesting as unix time (in seconds). */
endTime: Long;

@@ -49,2 +50,3 @@ delayed: boolean;

toAddress: string;
/** start of vesting as unix time (in seconds). */
startTime: Long;

@@ -51,0 +53,0 @@ vestingPeriods: Period[];

@@ -15,2 +15,3 @@ import Long from "long";

delegatedVesting: Coin[];
/** Vesting end time, as unix timestamp (in seconds). */
endTime: Long;

@@ -24,2 +25,3 @@ }

baseVestingAccount?: BaseVestingAccount;
/** Vesting start time, as unix timestamp (in seconds). */
startTime: Long;

@@ -37,2 +39,3 @@ }

export interface Period {
/** Period duration in seconds. */
length: Long;

@@ -39,0 +42,0 @@ amount: Coin[];

29

google/protobuf/descriptor.d.ts

@@ -112,2 +112,3 @@ import Long from "long";

* For bytes, contains the C escaped value. All bytes >= 128 are escaped.
* TODO(kenton): Base-64 encode?
*/

@@ -523,17 +524,5 @@ defaultValue: string;

* been parsed.
*
* As of 2021, lazy does no correctness checks on the byte stream during
* parsing. This may lead to crashes if and when an invalid byte stream is
* finally parsed upon access.
*
* TODO(b/211906113): Enable validation on lazy fields.
*/
lazy: boolean;
/**
* unverified_lazy does no correctness checks on the byte stream. This should
* only be used where lazy with verification is prohibitive for performance
* reasons.
*/
unverifiedLazy: boolean;
/**
* Is this field deprecated?

@@ -664,4 +653,4 @@ * Depending on the target platform, this can emit Deprecated annotations

* extension (denoted with parentheses in options specs in .proto files).
* E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
* "foo.(bar.baz).moo".
* E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
* "foo.(bar.baz).qux".
*/

@@ -730,4 +719,4 @@ export interface UninterpretedOption_NamePart {

* Each element is a field number or an index. They form a path from
* the root FileDescriptorProto to the place where the definition occurs.
* For example, this path:
* the root FileDescriptorProto to the place where the definition. For
* example, this path:
* [ 4, 3, 2, 7, 1 ]

@@ -788,9 +777,9 @@ * refers to:

*
* // Comment attached to moo.
* // Comment attached to qux.
* //
* // Another line attached to moo.
* optional double moo = 4;
* // Another line attached to qux.
* optional double qux = 4;
*
* // Detached comment for corge. This is not leading or trailing comments
* // to moo or corge because there are blank lines separating it from
* // to qux or corge because there are blank lines separating it from
* // both.

@@ -797,0 +786,0 @@ *

{
"name": "@terra-money/terra.proto",
"version": "3.0.5",
"version": "3.1.0-alpha.1",
"description": "JS and TS types relating to Protocol Buffers used by Terra project",

@@ -19,2 +19,3 @@ "contributors": [

"confio/",
"jax/",
"cosmos/",

@@ -52,2 +53,2 @@ "cosmos_proto/",

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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