@terra-money/terra.proto
Advanced tools
Comparing version 2.0.1-beta.1 to 2.1.0-beta.1
@@ -33,2 +33,15 @@ import Long from "long"; | ||
} | ||
/** QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. */ | ||
export interface QueryAllowancesByGranterRequest { | ||
granter: string; | ||
/** pagination defines an pagination for the request. */ | ||
pagination?: PageRequest; | ||
} | ||
/** QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. */ | ||
export interface QueryAllowancesByGranterResponse { | ||
/** allowances that have been issued by the granter. */ | ||
allowances: Grant[]; | ||
/** pagination defines an pagination for the response. */ | ||
pagination?: PageResponse; | ||
} | ||
export declare const QueryAllowanceRequest: { | ||
@@ -62,2 +75,16 @@ encode(message: QueryAllowanceRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const QueryAllowancesByGranterRequest: { | ||
encode(message: QueryAllowancesByGranterRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllowancesByGranterRequest; | ||
fromJSON(object: any): QueryAllowancesByGranterRequest; | ||
toJSON(message: QueryAllowancesByGranterRequest): unknown; | ||
fromPartial(object: DeepPartial<QueryAllowancesByGranterRequest>): QueryAllowancesByGranterRequest; | ||
}; | ||
export declare const QueryAllowancesByGranterResponse: { | ||
encode(message: QueryAllowancesByGranterResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAllowancesByGranterResponse; | ||
fromJSON(object: any): QueryAllowancesByGranterResponse; | ||
toJSON(message: QueryAllowancesByGranterResponse): unknown; | ||
fromPartial(object: DeepPartial<QueryAllowancesByGranterResponse>): QueryAllowancesByGranterResponse; | ||
}; | ||
/** Query defines the gRPC querier service. */ | ||
@@ -69,2 +96,7 @@ export interface Query { | ||
Allowances(request: DeepPartial<QueryAllowancesRequest>, metadata?: grpc.Metadata): Promise<QueryAllowancesResponse>; | ||
/** | ||
* AllowancesByGranter returns all the grants given by an address | ||
* Since v0.46 | ||
*/ | ||
AllowancesByGranter(request: DeepPartial<QueryAllowancesByGranterRequest>, metadata?: grpc.Metadata): Promise<QueryAllowancesByGranterResponse>; | ||
} | ||
@@ -76,2 +108,3 @@ export declare class QueryClientImpl implements Query { | ||
Allowances(request: DeepPartial<QueryAllowancesRequest>, metadata?: grpc.Metadata): Promise<QueryAllowancesResponse>; | ||
AllowancesByGranter(request: DeepPartial<QueryAllowancesByGranterRequest>, metadata?: grpc.Metadata): Promise<QueryAllowancesByGranterResponse>; | ||
} | ||
@@ -83,2 +116,3 @@ export declare const QueryDesc: { | ||
export declare const QueryAllowancesDesc: UnaryMethodDefinitionish; | ||
export declare const QueryAllowancesByGranterDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -85,0 +119,0 @@ requestStream: any; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GrpcWebImpl = exports.QueryAllowancesDesc = exports.QueryAllowanceDesc = exports.QueryDesc = exports.QueryClientImpl = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = exports.protobufPackage = void 0; | ||
exports.GrpcWebImpl = exports.QueryAllowancesByGranterDesc = exports.QueryAllowancesDesc = exports.QueryAllowanceDesc = exports.QueryDesc = exports.QueryClientImpl = exports.QueryAllowancesByGranterResponse = exports.QueryAllowancesByGranterRequest = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -286,2 +286,150 @@ const long_1 = __importDefault(require("long")); | ||
}; | ||
const baseQueryAllowancesByGranterRequest = { granter: "" }; | ||
exports.QueryAllowancesByGranterRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.granter !== "") { | ||
writer.uint32(10).string(message.granter); | ||
} | ||
if (message.pagination !== undefined) { | ||
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).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({}, baseQueryAllowancesByGranterRequest); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.granter = reader.string(); | ||
break; | ||
case 2: | ||
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
const message = Object.assign({}, baseQueryAllowancesByGranterRequest); | ||
if (object.granter !== undefined && object.granter !== null) { | ||
message.granter = String(object.granter); | ||
} | ||
else { | ||
message.granter = ""; | ||
} | ||
if (object.pagination !== undefined && object.pagination !== null) { | ||
message.pagination = pagination_1.PageRequest.fromJSON(object.pagination); | ||
} | ||
else { | ||
message.pagination = undefined; | ||
} | ||
return message; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.granter !== undefined && (obj.granter = message.granter); | ||
message.pagination !== undefined && | ||
(obj.pagination = message.pagination ? pagination_1.PageRequest.toJSON(message.pagination) : undefined); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = Object.assign({}, baseQueryAllowancesByGranterRequest); | ||
if (object.granter !== undefined && object.granter !== null) { | ||
message.granter = object.granter; | ||
} | ||
else { | ||
message.granter = ""; | ||
} | ||
if (object.pagination !== undefined && object.pagination !== null) { | ||
message.pagination = pagination_1.PageRequest.fromPartial(object.pagination); | ||
} | ||
else { | ||
message.pagination = undefined; | ||
} | ||
return message; | ||
}, | ||
}; | ||
const baseQueryAllowancesByGranterResponse = {}; | ||
exports.QueryAllowancesByGranterResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
for (const v of message.allowances) { | ||
feegrant_1.Grant.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 : new minimal_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = Object.assign({}, baseQueryAllowancesByGranterResponse); | ||
message.allowances = []; | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32())); | ||
break; | ||
case 2: | ||
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
const message = Object.assign({}, baseQueryAllowancesByGranterResponse); | ||
message.allowances = []; | ||
if (object.allowances !== undefined && object.allowances !== null) { | ||
for (const e of object.allowances) { | ||
message.allowances.push(feegrant_1.Grant.fromJSON(e)); | ||
} | ||
} | ||
if (object.pagination !== undefined && object.pagination !== null) { | ||
message.pagination = pagination_1.PageResponse.fromJSON(object.pagination); | ||
} | ||
else { | ||
message.pagination = undefined; | ||
} | ||
return message; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.allowances) { | ||
obj.allowances = message.allowances.map((e) => (e ? feegrant_1.Grant.toJSON(e) : undefined)); | ||
} | ||
else { | ||
obj.allowances = []; | ||
} | ||
message.pagination !== undefined && | ||
(obj.pagination = message.pagination ? pagination_1.PageResponse.toJSON(message.pagination) : undefined); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = Object.assign({}, baseQueryAllowancesByGranterResponse); | ||
message.allowances = []; | ||
if (object.allowances !== undefined && object.allowances !== null) { | ||
for (const e of object.allowances) { | ||
message.allowances.push(feegrant_1.Grant.fromPartial(e)); | ||
} | ||
} | ||
if (object.pagination !== undefined && object.pagination !== null) { | ||
message.pagination = pagination_1.PageResponse.fromPartial(object.pagination); | ||
} | ||
else { | ||
message.pagination = undefined; | ||
} | ||
return message; | ||
}, | ||
}; | ||
class QueryClientImpl { | ||
@@ -292,2 +440,3 @@ constructor(rpc) { | ||
this.Allowances = this.Allowances.bind(this); | ||
this.AllowancesByGranter = this.AllowancesByGranter.bind(this); | ||
} | ||
@@ -300,2 +449,5 @@ Allowance(request, metadata) { | ||
} | ||
AllowancesByGranter(request, metadata) { | ||
return this.rpc.unary(exports.QueryAllowancesByGranterDesc, exports.QueryAllowancesByGranterRequest.fromPartial(request), metadata); | ||
} | ||
} | ||
@@ -342,2 +494,20 @@ exports.QueryClientImpl = QueryClientImpl; | ||
}; | ||
exports.QueryAllowancesByGranterDesc = { | ||
methodName: "AllowancesByGranter", | ||
service: exports.QueryDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return exports.QueryAllowancesByGranterRequest.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
return Object.assign(Object.assign({}, exports.QueryAllowancesByGranterResponse.decode(data)), { toObject() { | ||
return this; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
class GrpcWebImpl { | ||
@@ -344,0 +514,0 @@ constructor(host, options) { |
@@ -5,2 +5,3 @@ import Long from "long"; | ||
import { Coin } from "../../../cosmos/base/v1beta1/coin"; | ||
import { Period } from "../../../cosmos/vesting/v1beta1/vesting"; | ||
export declare const protobufPackage = "cosmos.vesting.v1beta1"; | ||
@@ -21,2 +22,31 @@ /** | ||
} | ||
/** | ||
* MsgCreatePeriodicVestingAccount defines a message that enables creating a vesting | ||
* account. | ||
*/ | ||
export interface MsgCreatePeriodicVestingAccount { | ||
fromAddress: string; | ||
toAddress: string; | ||
startTime: Long; | ||
vestingPeriods: Period[]; | ||
} | ||
/** | ||
* MsgCreatePeriodicVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount | ||
* response type. | ||
*/ | ||
export interface MsgCreatePeriodicVestingAccountResponse { | ||
} | ||
/** | ||
* MsgDonateAllVestingTokens defines a message that enables donating all vesting | ||
* token to community pool. | ||
*/ | ||
export interface MsgDonateAllVestingTokens { | ||
fromAddress: string; | ||
} | ||
/** | ||
* MsgDonateAllVestingTokensResponse defines the Msg/MsgDonateAllVestingTokens | ||
* response type. | ||
*/ | ||
export interface MsgDonateAllVestingTokensResponse { | ||
} | ||
export declare const MsgCreateVestingAccount: { | ||
@@ -36,2 +66,30 @@ encode(message: MsgCreateVestingAccount, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const MsgCreatePeriodicVestingAccount: { | ||
encode(message: MsgCreatePeriodicVestingAccount, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCreatePeriodicVestingAccount; | ||
fromJSON(object: any): MsgCreatePeriodicVestingAccount; | ||
toJSON(message: MsgCreatePeriodicVestingAccount): unknown; | ||
fromPartial(object: DeepPartial<MsgCreatePeriodicVestingAccount>): MsgCreatePeriodicVestingAccount; | ||
}; | ||
export declare const MsgCreatePeriodicVestingAccountResponse: { | ||
encode(_: MsgCreatePeriodicVestingAccountResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCreatePeriodicVestingAccountResponse; | ||
fromJSON(_: any): MsgCreatePeriodicVestingAccountResponse; | ||
toJSON(_: MsgCreatePeriodicVestingAccountResponse): unknown; | ||
fromPartial(_: DeepPartial<MsgCreatePeriodicVestingAccountResponse>): MsgCreatePeriodicVestingAccountResponse; | ||
}; | ||
export declare const MsgDonateAllVestingTokens: { | ||
encode(message: MsgDonateAllVestingTokens, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDonateAllVestingTokens; | ||
fromJSON(object: any): MsgDonateAllVestingTokens; | ||
toJSON(message: MsgDonateAllVestingTokens): unknown; | ||
fromPartial(object: DeepPartial<MsgDonateAllVestingTokens>): MsgDonateAllVestingTokens; | ||
}; | ||
export declare const MsgDonateAllVestingTokensResponse: { | ||
encode(_: MsgDonateAllVestingTokensResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDonateAllVestingTokensResponse; | ||
fromJSON(_: any): MsgDonateAllVestingTokensResponse; | ||
toJSON(_: MsgDonateAllVestingTokensResponse): unknown; | ||
fromPartial(_: DeepPartial<MsgDonateAllVestingTokensResponse>): MsgDonateAllVestingTokensResponse; | ||
}; | ||
/** Msg defines the bank Msg service. */ | ||
@@ -44,2 +102,12 @@ export interface Msg { | ||
CreateVestingAccount(request: DeepPartial<MsgCreateVestingAccount>, metadata?: grpc.Metadata): Promise<MsgCreateVestingAccountResponse>; | ||
/** | ||
* CreatePeriodicVestingAccount defines a method that enables creating a | ||
* periodic vesting account. | ||
*/ | ||
CreatePeriodicVestingAccount(request: DeepPartial<MsgCreatePeriodicVestingAccount>, metadata?: grpc.Metadata): Promise<MsgCreatePeriodicVestingAccountResponse>; | ||
/** | ||
* DonateAllVestingTokens defines a method that enables donating all vesting | ||
* tokens to community pool | ||
*/ | ||
DonateAllVestingTokens(request: DeepPartial<MsgDonateAllVestingTokens>, metadata?: grpc.Metadata): Promise<MsgDonateAllVestingTokensResponse>; | ||
} | ||
@@ -50,2 +118,4 @@ export declare class MsgClientImpl implements Msg { | ||
CreateVestingAccount(request: DeepPartial<MsgCreateVestingAccount>, metadata?: grpc.Metadata): Promise<MsgCreateVestingAccountResponse>; | ||
CreatePeriodicVestingAccount(request: DeepPartial<MsgCreatePeriodicVestingAccount>, metadata?: grpc.Metadata): Promise<MsgCreatePeriodicVestingAccountResponse>; | ||
DonateAllVestingTokens(request: DeepPartial<MsgDonateAllVestingTokens>, metadata?: grpc.Metadata): Promise<MsgDonateAllVestingTokensResponse>; | ||
} | ||
@@ -56,2 +126,4 @@ export declare const MsgDesc: { | ||
export declare const MsgCreateVestingAccountDesc: UnaryMethodDefinitionish; | ||
export declare const MsgCreatePeriodicVestingAccountDesc: UnaryMethodDefinitionish; | ||
export declare const MsgDonateAllVestingTokensDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -58,0 +130,0 @@ requestStream: any; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GrpcWebImpl = exports.MsgCreateVestingAccountDesc = exports.MsgDesc = exports.MsgClientImpl = exports.MsgCreateVestingAccountResponse = exports.MsgCreateVestingAccount = exports.protobufPackage = void 0; | ||
exports.GrpcWebImpl = exports.MsgDonateAllVestingTokensDesc = exports.MsgCreatePeriodicVestingAccountDesc = exports.MsgCreateVestingAccountDesc = exports.MsgDesc = exports.MsgClientImpl = exports.MsgDonateAllVestingTokensResponse = exports.MsgDonateAllVestingTokens = exports.MsgCreatePeriodicVestingAccountResponse = exports.MsgCreatePeriodicVestingAccount = exports.MsgCreateVestingAccountResponse = exports.MsgCreateVestingAccount = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -14,2 +14,3 @@ const long_1 = __importDefault(require("long")); | ||
const coin_1 = require("../../../cosmos/base/v1beta1/coin"); | ||
const vesting_1 = require("../../../cosmos/vesting/v1beta1/vesting"); | ||
exports.protobufPackage = "cosmos.vesting.v1beta1"; | ||
@@ -186,2 +187,231 @@ const baseMsgCreateVestingAccount = { | ||
}; | ||
const baseMsgCreatePeriodicVestingAccount = { fromAddress: "", toAddress: "", startTime: long_1.default.ZERO }; | ||
exports.MsgCreatePeriodicVestingAccount = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.fromAddress !== "") { | ||
writer.uint32(10).string(message.fromAddress); | ||
} | ||
if (message.toAddress !== "") { | ||
writer.uint32(18).string(message.toAddress); | ||
} | ||
if (!message.startTime.isZero()) { | ||
writer.uint32(24).int64(message.startTime); | ||
} | ||
for (const v of message.vestingPeriods) { | ||
vesting_1.Period.encode(v, writer.uint32(34).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({}, baseMsgCreatePeriodicVestingAccount); | ||
message.vestingPeriods = []; | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.fromAddress = reader.string(); | ||
break; | ||
case 2: | ||
message.toAddress = reader.string(); | ||
break; | ||
case 3: | ||
message.startTime = reader.int64(); | ||
break; | ||
case 4: | ||
message.vestingPeriods.push(vesting_1.Period.decode(reader, reader.uint32())); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
const message = Object.assign({}, baseMsgCreatePeriodicVestingAccount); | ||
message.vestingPeriods = []; | ||
if (object.fromAddress !== undefined && object.fromAddress !== null) { | ||
message.fromAddress = String(object.fromAddress); | ||
} | ||
else { | ||
message.fromAddress = ""; | ||
} | ||
if (object.toAddress !== undefined && object.toAddress !== null) { | ||
message.toAddress = String(object.toAddress); | ||
} | ||
else { | ||
message.toAddress = ""; | ||
} | ||
if (object.startTime !== undefined && object.startTime !== null) { | ||
message.startTime = long_1.default.fromString(object.startTime); | ||
} | ||
else { | ||
message.startTime = long_1.default.ZERO; | ||
} | ||
if (object.vestingPeriods !== undefined && object.vestingPeriods !== null) { | ||
for (const e of object.vestingPeriods) { | ||
message.vestingPeriods.push(vesting_1.Period.fromJSON(e)); | ||
} | ||
} | ||
return message; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress); | ||
message.toAddress !== undefined && (obj.toAddress = message.toAddress); | ||
message.startTime !== undefined && (obj.startTime = (message.startTime || long_1.default.ZERO).toString()); | ||
if (message.vestingPeriods) { | ||
obj.vestingPeriods = message.vestingPeriods.map((e) => (e ? vesting_1.Period.toJSON(e) : undefined)); | ||
} | ||
else { | ||
obj.vestingPeriods = []; | ||
} | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = Object.assign({}, baseMsgCreatePeriodicVestingAccount); | ||
message.vestingPeriods = []; | ||
if (object.fromAddress !== undefined && object.fromAddress !== null) { | ||
message.fromAddress = object.fromAddress; | ||
} | ||
else { | ||
message.fromAddress = ""; | ||
} | ||
if (object.toAddress !== undefined && object.toAddress !== null) { | ||
message.toAddress = object.toAddress; | ||
} | ||
else { | ||
message.toAddress = ""; | ||
} | ||
if (object.startTime !== undefined && object.startTime !== null) { | ||
message.startTime = object.startTime; | ||
} | ||
else { | ||
message.startTime = long_1.default.ZERO; | ||
} | ||
if (object.vestingPeriods !== undefined && object.vestingPeriods !== null) { | ||
for (const e of object.vestingPeriods) { | ||
message.vestingPeriods.push(vesting_1.Period.fromPartial(e)); | ||
} | ||
} | ||
return message; | ||
}, | ||
}; | ||
const baseMsgCreatePeriodicVestingAccountResponse = {}; | ||
exports.MsgCreatePeriodicVestingAccountResponse = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
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({}, baseMsgCreatePeriodicVestingAccountResponse); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
const message = Object.assign({}, baseMsgCreatePeriodicVestingAccountResponse); | ||
return message; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
fromPartial(_) { | ||
const message = Object.assign({}, baseMsgCreatePeriodicVestingAccountResponse); | ||
return message; | ||
}, | ||
}; | ||
const baseMsgDonateAllVestingTokens = { fromAddress: "" }; | ||
exports.MsgDonateAllVestingTokens = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.fromAddress !== "") { | ||
writer.uint32(10).string(message.fromAddress); | ||
} | ||
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({}, baseMsgDonateAllVestingTokens); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.fromAddress = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
const message = Object.assign({}, baseMsgDonateAllVestingTokens); | ||
if (object.fromAddress !== undefined && object.fromAddress !== null) { | ||
message.fromAddress = String(object.fromAddress); | ||
} | ||
else { | ||
message.fromAddress = ""; | ||
} | ||
return message; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.fromAddress !== undefined && (obj.fromAddress = message.fromAddress); | ||
return obj; | ||
}, | ||
fromPartial(object) { | ||
const message = Object.assign({}, baseMsgDonateAllVestingTokens); | ||
if (object.fromAddress !== undefined && object.fromAddress !== null) { | ||
message.fromAddress = object.fromAddress; | ||
} | ||
else { | ||
message.fromAddress = ""; | ||
} | ||
return message; | ||
}, | ||
}; | ||
const baseMsgDonateAllVestingTokensResponse = {}; | ||
exports.MsgDonateAllVestingTokensResponse = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
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({}, baseMsgDonateAllVestingTokensResponse); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
const message = Object.assign({}, baseMsgDonateAllVestingTokensResponse); | ||
return message; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
fromPartial(_) { | ||
const message = Object.assign({}, baseMsgDonateAllVestingTokensResponse); | ||
return message; | ||
}, | ||
}; | ||
class MsgClientImpl { | ||
@@ -191,2 +421,4 @@ constructor(rpc) { | ||
this.CreateVestingAccount = this.CreateVestingAccount.bind(this); | ||
this.CreatePeriodicVestingAccount = this.CreatePeriodicVestingAccount.bind(this); | ||
this.DonateAllVestingTokens = this.DonateAllVestingTokens.bind(this); | ||
} | ||
@@ -196,2 +428,8 @@ CreateVestingAccount(request, metadata) { | ||
} | ||
CreatePeriodicVestingAccount(request, metadata) { | ||
return this.rpc.unary(exports.MsgCreatePeriodicVestingAccountDesc, exports.MsgCreatePeriodicVestingAccount.fromPartial(request), metadata); | ||
} | ||
DonateAllVestingTokens(request, metadata) { | ||
return this.rpc.unary(exports.MsgDonateAllVestingTokensDesc, exports.MsgDonateAllVestingTokens.fromPartial(request), metadata); | ||
} | ||
} | ||
@@ -220,2 +458,38 @@ exports.MsgClientImpl = MsgClientImpl; | ||
}; | ||
exports.MsgCreatePeriodicVestingAccountDesc = { | ||
methodName: "CreatePeriodicVestingAccount", | ||
service: exports.MsgDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return exports.MsgCreatePeriodicVestingAccount.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
return Object.assign(Object.assign({}, exports.MsgCreatePeriodicVestingAccountResponse.decode(data)), { toObject() { | ||
return this; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
exports.MsgDonateAllVestingTokensDesc = { | ||
methodName: "DonateAllVestingTokens", | ||
service: exports.MsgDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return exports.MsgDonateAllVestingTokens.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
return Object.assign(Object.assign({}, exports.MsgDonateAllVestingTokensResponse.decode(data)), { toObject() { | ||
return this; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
class GrpcWebImpl { | ||
@@ -222,0 +496,0 @@ constructor(host, options) { |
{ | ||
"name": "@terra-money/terra.proto", | ||
"version": "2.0.1-beta.1", | ||
"version": "2.1.0-beta.1", | ||
"description": "JS and TS types relating to Protocol Buffers used by Terra project", | ||
@@ -25,3 +25,2 @@ "contributors": [ | ||
"tendermint/", | ||
"terra/", | ||
"*.md" | ||
@@ -28,0 +27,0 @@ ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6459916
95583
407