@chora-io/cosmos
Advanced tools
Comparing version
@@ -0,2 +1,7 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: amino/amino.proto | ||
/* eslint-disable */ | ||
export const protobufPackage = "amino"; |
@@ -12,2 +12,8 @@ import Long from "long"; | ||
} | ||
/** MsgCreateResponse is the Msg/Create response type. */ | ||
export interface MsgCreateResponse { | ||
$type: "chora.geonode.v1.MsgCreateResponse"; | ||
/** id is the unique identifier of the node. */ | ||
id: Long; | ||
} | ||
/** MsgUpdateCurator is the Msg/UpdateCurator request type. */ | ||
@@ -23,2 +29,8 @@ export interface MsgUpdateCurator { | ||
} | ||
/** MsgUpdateCuratorResponse is the Msg/UpdateCurator response type. */ | ||
export interface MsgUpdateCuratorResponse { | ||
$type: "chora.geonode.v1.MsgUpdateCuratorResponse"; | ||
/** id is the unique identifier of the node. */ | ||
id: Long; | ||
} | ||
/** MsgUpdateMetadata is the Msg/UpdateMetadata request type. */ | ||
@@ -34,2 +46,8 @@ export interface MsgUpdateMetadata { | ||
} | ||
/** MsgUpdateMetadataResponse is the Msg/UpdateMetadata response type. */ | ||
export interface MsgUpdateMetadataResponse { | ||
$type: "chora.geonode.v1.MsgUpdateMetadataResponse"; | ||
/** id is the unique identifier of the node. */ | ||
id: Long; | ||
} | ||
export declare const MsgCreate: { | ||
@@ -44,2 +62,11 @@ $type: "chora.geonode.v1.MsgCreate"; | ||
}; | ||
export declare const MsgCreateResponse: { | ||
$type: "chora.geonode.v1.MsgCreateResponse"; | ||
encode(message: MsgCreateResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateResponse; | ||
fromJSON(object: any): MsgCreateResponse; | ||
toJSON(message: MsgCreateResponse): unknown; | ||
create(base?: DeepPartial<MsgCreateResponse>): MsgCreateResponse; | ||
fromPartial(object: DeepPartial<MsgCreateResponse>): MsgCreateResponse; | ||
}; | ||
export declare const MsgUpdateCurator: { | ||
@@ -54,2 +81,11 @@ $type: "chora.geonode.v1.MsgUpdateCurator"; | ||
}; | ||
export declare const MsgUpdateCuratorResponse: { | ||
$type: "chora.geonode.v1.MsgUpdateCuratorResponse"; | ||
encode(message: MsgUpdateCuratorResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateCuratorResponse; | ||
fromJSON(object: any): MsgUpdateCuratorResponse; | ||
toJSON(message: MsgUpdateCuratorResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateCuratorResponse>): MsgUpdateCuratorResponse; | ||
fromPartial(object: DeepPartial<MsgUpdateCuratorResponse>): MsgUpdateCuratorResponse; | ||
}; | ||
export declare const MsgUpdateMetadata: { | ||
@@ -64,2 +100,34 @@ $type: "chora.geonode.v1.MsgUpdateMetadata"; | ||
}; | ||
export declare const MsgUpdateMetadataResponse: { | ||
$type: "chora.geonode.v1.MsgUpdateMetadataResponse"; | ||
encode(message: MsgUpdateMetadataResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateMetadataResponse; | ||
fromJSON(object: any): MsgUpdateMetadataResponse; | ||
toJSON(message: MsgUpdateMetadataResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateMetadataResponse>): MsgUpdateMetadataResponse; | ||
fromPartial(object: DeepPartial<MsgUpdateMetadataResponse>): MsgUpdateMetadataResponse; | ||
}; | ||
/** Msg is the Msg service. */ | ||
export interface Msg { | ||
/** Create creates a node. */ | ||
Create(request: MsgCreate): Promise<MsgCreateResponse>; | ||
/** UpdateCurator updates the curator of a node. */ | ||
UpdateCurator(request: MsgUpdateCurator): Promise<MsgUpdateCuratorResponse>; | ||
/** UpdateMetadata updates the metadata of a node. */ | ||
UpdateMetadata(request: MsgUpdateMetadata): Promise<MsgUpdateMetadataResponse>; | ||
} | ||
export declare const MsgServiceName = "chora.geonode.v1.Msg"; | ||
export declare class MsgClientImpl implements Msg { | ||
private readonly rpc; | ||
private readonly service; | ||
constructor(rpc: Rpc, opts?: { | ||
service?: string; | ||
}); | ||
Create(request: MsgCreate): Promise<MsgCreateResponse>; | ||
UpdateCurator(request: MsgUpdateCurator): Promise<MsgUpdateCuratorResponse>; | ||
UpdateMetadata(request: MsgUpdateMetadata): Promise<MsgUpdateMetadataResponse>; | ||
} | ||
interface Rpc { | ||
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; | ||
} | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -66,0 +134,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: chora/geonode/v1/msg.proto | ||
/* eslint-disable */ | ||
@@ -75,2 +80,54 @@ import Long from "long"; | ||
messageTypeRegistry.set(MsgCreate.$type, MsgCreate); | ||
function createBaseMsgCreateResponse() { | ||
return { $type: "chora.geonode.v1.MsgCreateResponse", id: Long.UZERO }; | ||
} | ||
export const MsgCreateResponse = { | ||
$type: "chora.geonode.v1.MsgCreateResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgCreateResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgCreateResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgCreateResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgCreateResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgCreateResponse.$type, MsgCreateResponse); | ||
function createBaseMsgUpdateCurator() { | ||
@@ -82,3 +139,3 @@ return { $type: "chora.geonode.v1.MsgUpdateCurator", id: Long.UZERO, curator: "", newCurator: "" }; | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
@@ -137,3 +194,3 @@ } | ||
const obj = {}; | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
@@ -161,2 +218,54 @@ } | ||
messageTypeRegistry.set(MsgUpdateCurator.$type, MsgUpdateCurator); | ||
function createBaseMsgUpdateCuratorResponse() { | ||
return { $type: "chora.geonode.v1.MsgUpdateCuratorResponse", id: Long.UZERO }; | ||
} | ||
export const MsgUpdateCuratorResponse = { | ||
$type: "chora.geonode.v1.MsgUpdateCuratorResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgUpdateCuratorResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgUpdateCuratorResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgUpdateCuratorResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgUpdateCuratorResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgUpdateCuratorResponse.$type, MsgUpdateCuratorResponse); | ||
function createBaseMsgUpdateMetadata() { | ||
@@ -168,3 +277,3 @@ return { $type: "chora.geonode.v1.MsgUpdateMetadata", id: Long.UZERO, curator: "", newMetadata: "" }; | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
@@ -223,3 +332,3 @@ } | ||
const obj = {}; | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
@@ -247,2 +356,81 @@ } | ||
messageTypeRegistry.set(MsgUpdateMetadata.$type, MsgUpdateMetadata); | ||
function createBaseMsgUpdateMetadataResponse() { | ||
return { $type: "chora.geonode.v1.MsgUpdateMetadataResponse", id: Long.UZERO }; | ||
} | ||
export const MsgUpdateMetadataResponse = { | ||
$type: "chora.geonode.v1.MsgUpdateMetadataResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgUpdateMetadataResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgUpdateMetadataResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgUpdateMetadataResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgUpdateMetadataResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgUpdateMetadataResponse.$type, MsgUpdateMetadataResponse); | ||
export const MsgServiceName = "chora.geonode.v1.Msg"; | ||
export class MsgClientImpl { | ||
rpc; | ||
service; | ||
constructor(rpc, opts) { | ||
this.service = opts?.service || MsgServiceName; | ||
this.rpc = rpc; | ||
this.Create = this.Create.bind(this); | ||
this.UpdateCurator = this.UpdateCurator.bind(this); | ||
this.UpdateMetadata = this.UpdateMetadata.bind(this); | ||
} | ||
Create(request) { | ||
const data = MsgCreate.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Create", data); | ||
return promise.then((data) => MsgCreateResponse.decode(_m0.Reader.create(data))); | ||
} | ||
UpdateCurator(request) { | ||
const data = MsgUpdateCurator.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "UpdateCurator", data); | ||
return promise.then((data) => MsgUpdateCuratorResponse.decode(_m0.Reader.create(data))); | ||
} | ||
UpdateMetadata(request) { | ||
const data = MsgUpdateMetadata.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "UpdateMetadata", data); | ||
return promise.then((data) => MsgUpdateMetadataResponse.decode(_m0.Reader.create(data))); | ||
} | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -249,0 +437,0 @@ _m0.util.Long = Long; |
@@ -12,2 +12,8 @@ import Long from "long"; | ||
} | ||
/** MsgCreateResponse is the Msg/Create response type. */ | ||
export interface MsgCreateResponse { | ||
$type: "chora.voucher.v1.MsgCreateResponse"; | ||
/** id is the unique identifier of the voucher. */ | ||
id: Long; | ||
} | ||
/** MsgIssue is the Msg/Issue request type. */ | ||
@@ -29,2 +35,8 @@ export interface MsgIssue { | ||
} | ||
/** MsgIssueResponse is the Msg/Issue response type. */ | ||
export interface MsgIssueResponse { | ||
$type: "chora.voucher.v1.MsgIssueResponse"; | ||
/** id is the unique identifier of the voucher. */ | ||
id: Long; | ||
} | ||
/** MsgUpdateIssuer is the Msg/UpdateIssuer request type. */ | ||
@@ -40,2 +52,8 @@ export interface MsgUpdateIssuer { | ||
} | ||
/** MsgUpdateIssuerResponse is the Msg/UpdateIssuer response type. */ | ||
export interface MsgUpdateIssuerResponse { | ||
$type: "chora.voucher.v1.MsgUpdateIssuerResponse"; | ||
/** id is the unique identifier of the voucher. */ | ||
id: Long; | ||
} | ||
/** MsgUpdateMetadata is the Msg/UpdateMetadata request type. */ | ||
@@ -51,2 +69,8 @@ export interface MsgUpdateMetadata { | ||
} | ||
/** MsgUpdateMetadataResponse is the Msg/UpdateMetadata response type. */ | ||
export interface MsgUpdateMetadataResponse { | ||
$type: "chora.voucher.v1.MsgUpdateMetadataResponse"; | ||
/** id is the unique identifier of the voucher. */ | ||
id: Long; | ||
} | ||
export declare const MsgCreate: { | ||
@@ -61,2 +85,11 @@ $type: "chora.voucher.v1.MsgCreate"; | ||
}; | ||
export declare const MsgCreateResponse: { | ||
$type: "chora.voucher.v1.MsgCreateResponse"; | ||
encode(message: MsgCreateResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateResponse; | ||
fromJSON(object: any): MsgCreateResponse; | ||
toJSON(message: MsgCreateResponse): unknown; | ||
create(base?: DeepPartial<MsgCreateResponse>): MsgCreateResponse; | ||
fromPartial(object: DeepPartial<MsgCreateResponse>): MsgCreateResponse; | ||
}; | ||
export declare const MsgIssue: { | ||
@@ -71,2 +104,11 @@ $type: "chora.voucher.v1.MsgIssue"; | ||
}; | ||
export declare const MsgIssueResponse: { | ||
$type: "chora.voucher.v1.MsgIssueResponse"; | ||
encode(message: MsgIssueResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgIssueResponse; | ||
fromJSON(object: any): MsgIssueResponse; | ||
toJSON(message: MsgIssueResponse): unknown; | ||
create(base?: DeepPartial<MsgIssueResponse>): MsgIssueResponse; | ||
fromPartial(object: DeepPartial<MsgIssueResponse>): MsgIssueResponse; | ||
}; | ||
export declare const MsgUpdateIssuer: { | ||
@@ -81,2 +123,11 @@ $type: "chora.voucher.v1.MsgUpdateIssuer"; | ||
}; | ||
export declare const MsgUpdateIssuerResponse: { | ||
$type: "chora.voucher.v1.MsgUpdateIssuerResponse"; | ||
encode(message: MsgUpdateIssuerResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateIssuerResponse; | ||
fromJSON(object: any): MsgUpdateIssuerResponse; | ||
toJSON(message: MsgUpdateIssuerResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateIssuerResponse>): MsgUpdateIssuerResponse; | ||
fromPartial(object: DeepPartial<MsgUpdateIssuerResponse>): MsgUpdateIssuerResponse; | ||
}; | ||
export declare const MsgUpdateMetadata: { | ||
@@ -91,2 +142,37 @@ $type: "chora.voucher.v1.MsgUpdateMetadata"; | ||
}; | ||
export declare const MsgUpdateMetadataResponse: { | ||
$type: "chora.voucher.v1.MsgUpdateMetadataResponse"; | ||
encode(message: MsgUpdateMetadataResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateMetadataResponse; | ||
fromJSON(object: any): MsgUpdateMetadataResponse; | ||
toJSON(message: MsgUpdateMetadataResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateMetadataResponse>): MsgUpdateMetadataResponse; | ||
fromPartial(object: DeepPartial<MsgUpdateMetadataResponse>): MsgUpdateMetadataResponse; | ||
}; | ||
/** Msg is the Msg service. */ | ||
export interface Msg { | ||
/** Create creates a voucher. */ | ||
Create(request: MsgCreate): Promise<MsgCreateResponse>; | ||
/** Issue issues vouchers to a recipient. */ | ||
Issue(request: MsgIssue): Promise<MsgIssueResponse>; | ||
/** UpdateIssuer updates the issuer of a voucher. */ | ||
UpdateIssuer(request: MsgUpdateIssuer): Promise<MsgUpdateIssuerResponse>; | ||
/** UpdateMetadata updates the metadata of a voucher. */ | ||
UpdateMetadata(request: MsgUpdateMetadata): Promise<MsgUpdateMetadataResponse>; | ||
} | ||
export declare const MsgServiceName = "chora.voucher.v1.Msg"; | ||
export declare class MsgClientImpl implements Msg { | ||
private readonly rpc; | ||
private readonly service; | ||
constructor(rpc: Rpc, opts?: { | ||
service?: string; | ||
}); | ||
Create(request: MsgCreate): Promise<MsgCreateResponse>; | ||
Issue(request: MsgIssue): Promise<MsgIssueResponse>; | ||
UpdateIssuer(request: MsgUpdateIssuer): Promise<MsgUpdateIssuerResponse>; | ||
UpdateMetadata(request: MsgUpdateMetadata): Promise<MsgUpdateMetadataResponse>; | ||
} | ||
interface Rpc { | ||
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; | ||
} | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -93,0 +179,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: chora/voucher/v1/msg.proto | ||
/* eslint-disable */ | ||
@@ -76,2 +81,54 @@ import Long from "long"; | ||
messageTypeRegistry.set(MsgCreate.$type, MsgCreate); | ||
function createBaseMsgCreateResponse() { | ||
return { $type: "chora.voucher.v1.MsgCreateResponse", id: Long.UZERO }; | ||
} | ||
export const MsgCreateResponse = { | ||
$type: "chora.voucher.v1.MsgCreateResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgCreateResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgCreateResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgCreateResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgCreateResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgCreateResponse.$type, MsgCreateResponse); | ||
function createBaseMsgIssue() { | ||
@@ -91,3 +148,3 @@ return { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
@@ -176,3 +233,3 @@ } | ||
const obj = {}; | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
@@ -212,2 +269,54 @@ } | ||
messageTypeRegistry.set(MsgIssue.$type, MsgIssue); | ||
function createBaseMsgIssueResponse() { | ||
return { $type: "chora.voucher.v1.MsgIssueResponse", id: Long.UZERO }; | ||
} | ||
export const MsgIssueResponse = { | ||
$type: "chora.voucher.v1.MsgIssueResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgIssueResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgIssueResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgIssueResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgIssueResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgIssueResponse.$type, MsgIssueResponse); | ||
function createBaseMsgUpdateIssuer() { | ||
@@ -219,3 +328,3 @@ return { $type: "chora.voucher.v1.MsgUpdateIssuer", id: Long.UZERO, issuer: "", newIssuer: "" }; | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
@@ -274,3 +383,3 @@ } | ||
const obj = {}; | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
@@ -298,2 +407,54 @@ } | ||
messageTypeRegistry.set(MsgUpdateIssuer.$type, MsgUpdateIssuer); | ||
function createBaseMsgUpdateIssuerResponse() { | ||
return { $type: "chora.voucher.v1.MsgUpdateIssuerResponse", id: Long.UZERO }; | ||
} | ||
export const MsgUpdateIssuerResponse = { | ||
$type: "chora.voucher.v1.MsgUpdateIssuerResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgUpdateIssuerResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgUpdateIssuerResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgUpdateIssuerResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgUpdateIssuerResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgUpdateIssuerResponse.$type, MsgUpdateIssuerResponse); | ||
function createBaseMsgUpdateMetadata() { | ||
@@ -305,3 +466,3 @@ return { $type: "chora.voucher.v1.MsgUpdateMetadata", id: Long.UZERO, issuer: "", newMetadata: "" }; | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
@@ -360,3 +521,3 @@ } | ||
const obj = {}; | ||
if (!message.id.isZero()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
@@ -384,4 +545,89 @@ } | ||
messageTypeRegistry.set(MsgUpdateMetadata.$type, MsgUpdateMetadata); | ||
function createBaseMsgUpdateMetadataResponse() { | ||
return { $type: "chora.voucher.v1.MsgUpdateMetadataResponse", id: Long.UZERO }; | ||
} | ||
export const MsgUpdateMetadataResponse = { | ||
$type: "chora.voucher.v1.MsgUpdateMetadataResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
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 = createBaseMsgUpdateMetadataResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgUpdateMetadataResponse.$type, id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgUpdateMetadataResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgUpdateMetadataResponse(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgUpdateMetadataResponse.$type, MsgUpdateMetadataResponse); | ||
export const MsgServiceName = "chora.voucher.v1.Msg"; | ||
export class MsgClientImpl { | ||
rpc; | ||
service; | ||
constructor(rpc, opts) { | ||
this.service = opts?.service || MsgServiceName; | ||
this.rpc = rpc; | ||
this.Create = this.Create.bind(this); | ||
this.Issue = this.Issue.bind(this); | ||
this.UpdateIssuer = this.UpdateIssuer.bind(this); | ||
this.UpdateMetadata = this.UpdateMetadata.bind(this); | ||
} | ||
Create(request) { | ||
const data = MsgCreate.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Create", data); | ||
return promise.then((data) => MsgCreateResponse.decode(_m0.Reader.create(data))); | ||
} | ||
Issue(request) { | ||
const data = MsgIssue.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Issue", data); | ||
return promise.then((data) => MsgIssueResponse.decode(_m0.Reader.create(data))); | ||
} | ||
UpdateIssuer(request) { | ||
const data = MsgUpdateIssuer.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "UpdateIssuer", data); | ||
return promise.then((data) => MsgUpdateIssuerResponse.decode(_m0.Reader.create(data))); | ||
} | ||
UpdateMetadata(request) { | ||
const data = MsgUpdateMetadata.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "UpdateMetadata", data); | ||
return promise.then((data) => MsgUpdateMetadataResponse.decode(_m0.Reader.create(data))); | ||
} | ||
} | ||
function toTimestamp(date) { | ||
const seconds = numberToLong(date.getTime() / 1_000); | ||
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000)); | ||
const nanos = (date.getTime() % 1_000) * 1_000_000; | ||
@@ -388,0 +634,0 @@ return { $type: "google.protobuf.Timestamp", seconds, nanos }; |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos_proto/cosmos.proto | ||
/* eslint-disable */ | ||
@@ -2,0 +7,0 @@ import Long from "long"; |
@@ -5,2 +5,3 @@ import Long from "long"; | ||
export declare const protobufPackage = "cosmos.authz.v1beta1"; | ||
/** Since: cosmos-sdk 0.43 */ | ||
/** | ||
@@ -7,0 +8,0 @@ * GenericAuthorization gives the grantee unrestricted permissions to execute |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/authz/v1beta1/authz.proto | ||
/* eslint-disable */ | ||
@@ -294,3 +299,3 @@ import Long from "long"; | ||
function toTimestamp(date) { | ||
const seconds = numberToLong(date.getTime() / 1_000); | ||
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000)); | ||
const nanos = (date.getTime() % 1_000) * 1_000_000; | ||
@@ -297,0 +302,0 @@ return { $type: "google.protobuf.Timestamp", seconds, nanos }; |
@@ -6,2 +6,3 @@ import Long from "long"; | ||
export declare const protobufPackage = "cosmos.authz.v1beta1"; | ||
/** Since: cosmos-sdk 0.43 */ | ||
/** | ||
@@ -17,2 +18,6 @@ * MsgGrant is a request type for Grant method. It declares authorization to the grantee | ||
} | ||
/** MsgGrantResponse defines the Msg/MsgGrant response type. */ | ||
export interface MsgGrantResponse { | ||
$type: "cosmos.authz.v1beta1.MsgGrantResponse"; | ||
} | ||
/** | ||
@@ -33,2 +38,7 @@ * MsgExec attempts to execute the provided messages using | ||
} | ||
/** MsgExecResponse defines the Msg/MsgExecResponse response type. */ | ||
export interface MsgExecResponse { | ||
$type: "cosmos.authz.v1beta1.MsgExecResponse"; | ||
results: Uint8Array[]; | ||
} | ||
/** | ||
@@ -44,2 +54,23 @@ * MsgRevoke revokes any authorization with the provided sdk.Msg type on the | ||
} | ||
/** MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. */ | ||
export interface MsgRevokeResponse { | ||
$type: "cosmos.authz.v1beta1.MsgRevokeResponse"; | ||
} | ||
/** | ||
* MsgPruneExpiredGrants prunes the expired grants. | ||
* | ||
* Since x/authz v1.0.0 | ||
*/ | ||
export interface MsgPruneExpiredGrants { | ||
$type: "cosmos.authz.v1beta1.MsgPruneExpiredGrants"; | ||
pruner: string; | ||
} | ||
/** | ||
* MsgPruneExpiredGrantsResponse defines the Msg/MsgPruneExpiredGrantsResponse response type. | ||
* | ||
* Since x/authz v1.0.0 | ||
*/ | ||
export interface MsgPruneExpiredGrantsResponse { | ||
$type: "cosmos.authz.v1beta1.MsgPruneExpiredGrantsResponse"; | ||
} | ||
export declare const MsgGrant: { | ||
@@ -54,2 +85,11 @@ $type: "cosmos.authz.v1beta1.MsgGrant"; | ||
}; | ||
export declare const MsgGrantResponse: { | ||
$type: "cosmos.authz.v1beta1.MsgGrantResponse"; | ||
encode(_: MsgGrantResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantResponse; | ||
fromJSON(_: any): MsgGrantResponse; | ||
toJSON(_: MsgGrantResponse): unknown; | ||
create(base?: DeepPartial<MsgGrantResponse>): MsgGrantResponse; | ||
fromPartial(_: DeepPartial<MsgGrantResponse>): MsgGrantResponse; | ||
}; | ||
export declare const MsgExec: { | ||
@@ -64,2 +104,11 @@ $type: "cosmos.authz.v1beta1.MsgExec"; | ||
}; | ||
export declare const MsgExecResponse: { | ||
$type: "cosmos.authz.v1beta1.MsgExecResponse"; | ||
encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse; | ||
fromJSON(object: any): MsgExecResponse; | ||
toJSON(message: MsgExecResponse): unknown; | ||
create(base?: DeepPartial<MsgExecResponse>): MsgExecResponse; | ||
fromPartial(object: DeepPartial<MsgExecResponse>): MsgExecResponse; | ||
}; | ||
export declare const MsgRevoke: { | ||
@@ -74,2 +123,71 @@ $type: "cosmos.authz.v1beta1.MsgRevoke"; | ||
}; | ||
export declare const MsgRevokeResponse: { | ||
$type: "cosmos.authz.v1beta1.MsgRevokeResponse"; | ||
encode(_: MsgRevokeResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeResponse; | ||
fromJSON(_: any): MsgRevokeResponse; | ||
toJSON(_: MsgRevokeResponse): unknown; | ||
create(base?: DeepPartial<MsgRevokeResponse>): MsgRevokeResponse; | ||
fromPartial(_: DeepPartial<MsgRevokeResponse>): MsgRevokeResponse; | ||
}; | ||
export declare const MsgPruneExpiredGrants: { | ||
$type: "cosmos.authz.v1beta1.MsgPruneExpiredGrants"; | ||
encode(message: MsgPruneExpiredGrants, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgPruneExpiredGrants; | ||
fromJSON(object: any): MsgPruneExpiredGrants; | ||
toJSON(message: MsgPruneExpiredGrants): unknown; | ||
create(base?: DeepPartial<MsgPruneExpiredGrants>): MsgPruneExpiredGrants; | ||
fromPartial(object: DeepPartial<MsgPruneExpiredGrants>): MsgPruneExpiredGrants; | ||
}; | ||
export declare const MsgPruneExpiredGrantsResponse: { | ||
$type: "cosmos.authz.v1beta1.MsgPruneExpiredGrantsResponse"; | ||
encode(_: MsgPruneExpiredGrantsResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgPruneExpiredGrantsResponse; | ||
fromJSON(_: any): MsgPruneExpiredGrantsResponse; | ||
toJSON(_: MsgPruneExpiredGrantsResponse): unknown; | ||
create(base?: DeepPartial<MsgPruneExpiredGrantsResponse>): MsgPruneExpiredGrantsResponse; | ||
fromPartial(_: DeepPartial<MsgPruneExpiredGrantsResponse>): MsgPruneExpiredGrantsResponse; | ||
}; | ||
/** Msg defines the authz Msg service. */ | ||
export interface Msg { | ||
/** | ||
* Grant grants the provided authorization to the grantee on the granter's | ||
* account with the provided expiration time. If there is already a grant | ||
* for the given (granter, grantee, Authorization) triple, then the grant | ||
* will be overwritten. | ||
*/ | ||
Grant(request: MsgGrant): Promise<MsgGrantResponse>; | ||
/** | ||
* Exec attempts to execute the provided messages using | ||
* authorizations granted to the grantee. Each message should have only | ||
* one signer corresponding to the granter of the authorization. | ||
*/ | ||
Exec(request: MsgExec): Promise<MsgExecResponse>; | ||
/** | ||
* Revoke revokes any authorization corresponding to the provided method name on the | ||
* granter's account that has been granted to the grantee. | ||
*/ | ||
Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>; | ||
/** | ||
* PruneExpiredGrants prunes the expired grants. Currently up to 75 at a time. | ||
* | ||
* Since cosmos-sdk 0.51 | ||
*/ | ||
PruneExpiredGrants(request: MsgPruneExpiredGrants): Promise<MsgPruneExpiredGrantsResponse>; | ||
} | ||
export declare const MsgServiceName = "cosmos.authz.v1beta1.Msg"; | ||
export declare class MsgClientImpl implements Msg { | ||
private readonly rpc; | ||
private readonly service; | ||
constructor(rpc: Rpc, opts?: { | ||
service?: string; | ||
}); | ||
Grant(request: MsgGrant): Promise<MsgGrantResponse>; | ||
Exec(request: MsgExec): Promise<MsgExecResponse>; | ||
Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>; | ||
PruneExpiredGrants(request: MsgPruneExpiredGrants): Promise<MsgPruneExpiredGrantsResponse>; | ||
} | ||
interface Rpc { | ||
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; | ||
} | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -76,0 +194,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/authz/v1beta1/tx.proto | ||
/* eslint-disable */ | ||
@@ -91,2 +96,41 @@ import Long from "long"; | ||
messageTypeRegistry.set(MsgGrant.$type, MsgGrant); | ||
function createBaseMsgGrantResponse() { | ||
return { $type: "cosmos.authz.v1beta1.MsgGrantResponse" }; | ||
} | ||
export const MsgGrantResponse = { | ||
$type: "cosmos.authz.v1beta1.MsgGrantResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgGrantResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgGrantResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgGrantResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgGrantResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgGrantResponse.$type, MsgGrantResponse); | ||
function createBaseMsgExec() { | ||
@@ -161,2 +205,57 @@ return { $type: "cosmos.authz.v1beta1.MsgExec", grantee: "", msgs: [] }; | ||
messageTypeRegistry.set(MsgExec.$type, MsgExec); | ||
function createBaseMsgExecResponse() { | ||
return { $type: "cosmos.authz.v1beta1.MsgExecResponse", results: [] }; | ||
} | ||
export const MsgExecResponse = { | ||
$type: "cosmos.authz.v1beta1.MsgExecResponse", | ||
encode(message, writer = _m0.Writer.create()) { | ||
for (const v of message.results) { | ||
writer.uint32(10).bytes(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 = createBaseMsgExecResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.results.push(reader.bytes()); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: MsgExecResponse.$type, | ||
results: globalThis.Array.isArray(object?.results) ? object.results.map((e) => bytesFromBase64(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.results?.length) { | ||
obj.results = message.results.map((e) => base64FromBytes(e)); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgExecResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgExecResponse(); | ||
message.results = object.results?.map((e) => e) || []; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgExecResponse.$type, MsgExecResponse); | ||
function createBaseMsgRevoke() { | ||
@@ -245,2 +344,190 @@ return { $type: "cosmos.authz.v1beta1.MsgRevoke", granter: "", grantee: "", msgTypeUrl: "" }; | ||
messageTypeRegistry.set(MsgRevoke.$type, MsgRevoke); | ||
function createBaseMsgRevokeResponse() { | ||
return { $type: "cosmos.authz.v1beta1.MsgRevokeResponse" }; | ||
} | ||
export const MsgRevokeResponse = { | ||
$type: "cosmos.authz.v1beta1.MsgRevokeResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgRevokeResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgRevokeResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgRevokeResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgRevokeResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgRevokeResponse.$type, MsgRevokeResponse); | ||
function createBaseMsgPruneExpiredGrants() { | ||
return { $type: "cosmos.authz.v1beta1.MsgPruneExpiredGrants", pruner: "" }; | ||
} | ||
export const MsgPruneExpiredGrants = { | ||
$type: "cosmos.authz.v1beta1.MsgPruneExpiredGrants", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.pruner !== "") { | ||
writer.uint32(10).string(message.pruner); | ||
} | ||
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 = createBaseMsgPruneExpiredGrants(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.pruner = reader.string(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgPruneExpiredGrants.$type, pruner: isSet(object.pruner) ? globalThis.String(object.pruner) : "" }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.pruner !== "") { | ||
obj.pruner = message.pruner; | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgPruneExpiredGrants.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgPruneExpiredGrants(); | ||
message.pruner = object.pruner ?? ""; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgPruneExpiredGrants.$type, MsgPruneExpiredGrants); | ||
function createBaseMsgPruneExpiredGrantsResponse() { | ||
return { $type: "cosmos.authz.v1beta1.MsgPruneExpiredGrantsResponse" }; | ||
} | ||
export const MsgPruneExpiredGrantsResponse = { | ||
$type: "cosmos.authz.v1beta1.MsgPruneExpiredGrantsResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgPruneExpiredGrantsResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgPruneExpiredGrantsResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgPruneExpiredGrantsResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgPruneExpiredGrantsResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgPruneExpiredGrantsResponse.$type, MsgPruneExpiredGrantsResponse); | ||
export const MsgServiceName = "cosmos.authz.v1beta1.Msg"; | ||
export class MsgClientImpl { | ||
rpc; | ||
service; | ||
constructor(rpc, opts) { | ||
this.service = opts?.service || MsgServiceName; | ||
this.rpc = rpc; | ||
this.Grant = this.Grant.bind(this); | ||
this.Exec = this.Exec.bind(this); | ||
this.Revoke = this.Revoke.bind(this); | ||
this.PruneExpiredGrants = this.PruneExpiredGrants.bind(this); | ||
} | ||
Grant(request) { | ||
const data = MsgGrant.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Grant", data); | ||
return promise.then((data) => MsgGrantResponse.decode(_m0.Reader.create(data))); | ||
} | ||
Exec(request) { | ||
const data = MsgExec.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Exec", data); | ||
return promise.then((data) => MsgExecResponse.decode(_m0.Reader.create(data))); | ||
} | ||
Revoke(request) { | ||
const data = MsgRevoke.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Revoke", data); | ||
return promise.then((data) => MsgRevokeResponse.decode(_m0.Reader.create(data))); | ||
} | ||
PruneExpiredGrants(request) { | ||
const data = MsgPruneExpiredGrants.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "PruneExpiredGrants", data); | ||
return promise.then((data) => MsgPruneExpiredGrantsResponse.decode(_m0.Reader.create(data))); | ||
} | ||
} | ||
function bytesFromBase64(b64) { | ||
if (globalThis.Buffer) { | ||
return Uint8Array.from(globalThis.Buffer.from(b64, "base64")); | ||
} | ||
else { | ||
const bin = globalThis.atob(b64); | ||
const arr = new Uint8Array(bin.length); | ||
for (let i = 0; i < bin.length; ++i) { | ||
arr[i] = bin.charCodeAt(i); | ||
} | ||
return arr; | ||
} | ||
} | ||
function base64FromBytes(arr) { | ||
if (globalThis.Buffer) { | ||
return globalThis.Buffer.from(arr).toString("base64"); | ||
} | ||
else { | ||
const bin = []; | ||
arr.forEach((byte) => { | ||
bin.push(globalThis.String.fromCharCode(byte)); | ||
}); | ||
return globalThis.btoa(bin.join("")); | ||
} | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -247,0 +534,0 @@ _m0.util.Long = Long; |
@@ -50,2 +50,3 @@ import Long from "long"; | ||
$type: "cosmos.bank.v1beta1.Supply"; | ||
/** total is the total supply of coins across the network. */ | ||
total: Coin[]; | ||
@@ -52,0 +53,0 @@ } |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/bank/v1beta1/bank.proto | ||
/* eslint-disable */ | ||
@@ -16,3 +21,3 @@ import Long from "long"; | ||
} | ||
if (message.defaultSendEnabled === true) { | ||
if (message.defaultSendEnabled !== false) { | ||
writer.uint32(16).bool(message.defaultSendEnabled); | ||
@@ -63,3 +68,3 @@ } | ||
} | ||
if (message.defaultSendEnabled === true) { | ||
if (message.defaultSendEnabled !== false) { | ||
obj.defaultSendEnabled = message.defaultSendEnabled; | ||
@@ -89,3 +94,3 @@ } | ||
} | ||
if (message.enabled === true) { | ||
if (message.enabled !== false) { | ||
writer.uint32(16).bool(message.enabled); | ||
@@ -134,3 +139,3 @@ } | ||
} | ||
if (message.enabled === true) { | ||
if (message.enabled !== false) { | ||
obj.enabled = message.enabled; | ||
@@ -137,0 +142,0 @@ } |
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import { SendEnabled } from "./bank"; | ||
import { Coin } from "../../base/v1beta1/coin"; | ||
import { Input, Output, Params, SendEnabled } from "./bank"; | ||
export declare const protobufPackage = "cosmos.bank.v1beta1"; | ||
/** MsgSend represents a message to send coins from one account to another. */ | ||
export interface MsgSend { | ||
$type: "cosmos.bank.v1beta1.MsgSend"; | ||
fromAddress: string; | ||
toAddress: string; | ||
amount: Coin[]; | ||
} | ||
/** MsgSendResponse defines the Msg/Send response type. */ | ||
export interface MsgSendResponse { | ||
$type: "cosmos.bank.v1beta1.MsgSendResponse"; | ||
} | ||
/** MsgMultiSend represents an arbitrary multi-in, multi-out send message. */ | ||
export interface MsgMultiSend { | ||
$type: "cosmos.bank.v1beta1.MsgMultiSend"; | ||
/** | ||
* Inputs, despite being `repeated`, only allows one sender input. This is | ||
* checked in MsgMultiSend's ValidateBasic. | ||
*/ | ||
inputs: Input[]; | ||
outputs: Output[]; | ||
} | ||
/** MsgMultiSendResponse defines the Msg/MultiSend response type. */ | ||
export interface MsgMultiSendResponse { | ||
$type: "cosmos.bank.v1beta1.MsgMultiSendResponse"; | ||
} | ||
/** | ||
* MsgUpdateParams is the Msg/UpdateParams request type. | ||
* | ||
* Since: cosmos-sdk 0.47 | ||
*/ | ||
export interface MsgUpdateParams { | ||
$type: "cosmos.bank.v1beta1.MsgUpdateParams"; | ||
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */ | ||
authority: string; | ||
/** | ||
* params defines the x/bank parameters to update. | ||
* | ||
* NOTE: All parameters must be supplied. | ||
*/ | ||
params?: Params | undefined; | ||
} | ||
/** | ||
* MsgUpdateParamsResponse defines the response structure for executing a | ||
* MsgUpdateParams message. | ||
* | ||
* Since: cosmos-sdk 0.47 | ||
*/ | ||
export interface MsgUpdateParamsResponse { | ||
$type: "cosmos.bank.v1beta1.MsgUpdateParamsResponse"; | ||
} | ||
/** | ||
* MsgSetSendEnabled is the Msg/SetSendEnabled request type. | ||
@@ -16,2 +67,3 @@ * | ||
$type: "cosmos.bank.v1beta1.MsgSetSendEnabled"; | ||
/** authority is the address that controls the module. */ | ||
authority: string; | ||
@@ -36,2 +88,74 @@ /** send_enabled is the list of entries to add or update. */ | ||
} | ||
/** | ||
* MsgBurn defines a message for burning coins. | ||
* | ||
* Since: cosmos-sdk 0.51 | ||
*/ | ||
export interface MsgBurn { | ||
$type: "cosmos.bank.v1beta1.MsgBurn"; | ||
fromAddress: string; | ||
amount: Coin[]; | ||
} | ||
/** | ||
* MsgBurnResponse defines the Msg/Burn response type. | ||
* | ||
* Since: cosmos-sdk 0.51 | ||
*/ | ||
export interface MsgBurnResponse { | ||
$type: "cosmos.bank.v1beta1.MsgBurnResponse"; | ||
} | ||
export declare const MsgSend: { | ||
$type: "cosmos.bank.v1beta1.MsgSend"; | ||
encode(message: MsgSend, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend; | ||
fromJSON(object: any): MsgSend; | ||
toJSON(message: MsgSend): unknown; | ||
create(base?: DeepPartial<MsgSend>): MsgSend; | ||
fromPartial(object: DeepPartial<MsgSend>): MsgSend; | ||
}; | ||
export declare const MsgSendResponse: { | ||
$type: "cosmos.bank.v1beta1.MsgSendResponse"; | ||
encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse; | ||
fromJSON(_: any): MsgSendResponse; | ||
toJSON(_: MsgSendResponse): unknown; | ||
create(base?: DeepPartial<MsgSendResponse>): MsgSendResponse; | ||
fromPartial(_: DeepPartial<MsgSendResponse>): MsgSendResponse; | ||
}; | ||
export declare const MsgMultiSend: { | ||
$type: "cosmos.bank.v1beta1.MsgMultiSend"; | ||
encode(message: MsgMultiSend, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSend; | ||
fromJSON(object: any): MsgMultiSend; | ||
toJSON(message: MsgMultiSend): unknown; | ||
create(base?: DeepPartial<MsgMultiSend>): MsgMultiSend; | ||
fromPartial(object: DeepPartial<MsgMultiSend>): MsgMultiSend; | ||
}; | ||
export declare const MsgMultiSendResponse: { | ||
$type: "cosmos.bank.v1beta1.MsgMultiSendResponse"; | ||
encode(_: MsgMultiSendResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgMultiSendResponse; | ||
fromJSON(_: any): MsgMultiSendResponse; | ||
toJSON(_: MsgMultiSendResponse): unknown; | ||
create(base?: DeepPartial<MsgMultiSendResponse>): MsgMultiSendResponse; | ||
fromPartial(_: DeepPartial<MsgMultiSendResponse>): MsgMultiSendResponse; | ||
}; | ||
export declare const MsgUpdateParams: { | ||
$type: "cosmos.bank.v1beta1.MsgUpdateParams"; | ||
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; | ||
fromJSON(object: any): MsgUpdateParams; | ||
toJSON(message: MsgUpdateParams): unknown; | ||
create(base?: DeepPartial<MsgUpdateParams>): MsgUpdateParams; | ||
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams; | ||
}; | ||
export declare const MsgUpdateParamsResponse: { | ||
$type: "cosmos.bank.v1beta1.MsgUpdateParamsResponse"; | ||
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; | ||
fromJSON(_: any): MsgUpdateParamsResponse; | ||
toJSON(_: MsgUpdateParamsResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse; | ||
}; | ||
export declare const MsgSetSendEnabled: { | ||
@@ -55,2 +179,65 @@ $type: "cosmos.bank.v1beta1.MsgSetSendEnabled"; | ||
}; | ||
export declare const MsgBurn: { | ||
$type: "cosmos.bank.v1beta1.MsgBurn"; | ||
encode(message: MsgBurn, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgBurn; | ||
fromJSON(object: any): MsgBurn; | ||
toJSON(message: MsgBurn): unknown; | ||
create(base?: DeepPartial<MsgBurn>): MsgBurn; | ||
fromPartial(object: DeepPartial<MsgBurn>): MsgBurn; | ||
}; | ||
export declare const MsgBurnResponse: { | ||
$type: "cosmos.bank.v1beta1.MsgBurnResponse"; | ||
encode(_: MsgBurnResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgBurnResponse; | ||
fromJSON(_: any): MsgBurnResponse; | ||
toJSON(_: MsgBurnResponse): unknown; | ||
create(base?: DeepPartial<MsgBurnResponse>): MsgBurnResponse; | ||
fromPartial(_: DeepPartial<MsgBurnResponse>): MsgBurnResponse; | ||
}; | ||
/** Msg defines the bank Msg service. */ | ||
export interface Msg { | ||
/** Send defines a method for sending coins from one account to another account. */ | ||
Send(request: MsgSend): Promise<MsgSendResponse>; | ||
/** MultiSend defines a method for sending coins from some accounts to other accounts. */ | ||
MultiSend(request: MsgMultiSend): Promise<MsgMultiSendResponse>; | ||
/** | ||
* Burn defines a method for burning coins by an account. | ||
* | ||
* Since: cosmos-sdk 0.51 | ||
*/ | ||
Burn(request: MsgBurn): Promise<MsgBurnResponse>; | ||
/** | ||
* UpdateParams defines a governance operation for updating the x/bank module parameters. | ||
* The authority is defined in the keeper. | ||
* | ||
* Since: cosmos-sdk 0.47 | ||
*/ | ||
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>; | ||
/** | ||
* SetSendEnabled is a governance operation for setting the SendEnabled flag | ||
* on any number of Denoms. Only the entries to add or update should be | ||
* included. Entries that already exist in the store, but that aren't | ||
* included in this message, will be left unchanged. | ||
* | ||
* Since: cosmos-sdk 0.47 | ||
*/ | ||
SetSendEnabled(request: MsgSetSendEnabled): Promise<MsgSetSendEnabledResponse>; | ||
} | ||
export declare const MsgServiceName = "cosmos.bank.v1beta1.Msg"; | ||
export declare class MsgClientImpl implements Msg { | ||
private readonly rpc; | ||
private readonly service; | ||
constructor(rpc: Rpc, opts?: { | ||
service?: string; | ||
}); | ||
Send(request: MsgSend): Promise<MsgSendResponse>; | ||
MultiSend(request: MsgMultiSend): Promise<MsgMultiSendResponse>; | ||
Burn(request: MsgBurn): Promise<MsgBurnResponse>; | ||
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>; | ||
SetSendEnabled(request: MsgSetSendEnabled): Promise<MsgSetSendEnabledResponse>; | ||
} | ||
interface Rpc { | ||
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; | ||
} | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -57,0 +244,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/bank/v1beta1/tx.proto | ||
/* eslint-disable */ | ||
@@ -5,4 +10,345 @@ import Long from "long"; | ||
import { messageTypeRegistry } from "../../../typeRegistry"; | ||
import { SendEnabled } from "./bank"; | ||
import { Coin } from "../../base/v1beta1/coin"; | ||
import { Input, Output, Params, SendEnabled } from "./bank"; | ||
export const protobufPackage = "cosmos.bank.v1beta1"; | ||
function createBaseMsgSend() { | ||
return { $type: "cosmos.bank.v1beta1.MsgSend", fromAddress: "", toAddress: "", amount: [] }; | ||
} | ||
export const MsgSend = { | ||
$type: "cosmos.bank.v1beta1.MsgSend", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.fromAddress !== "") { | ||
writer.uint32(10).string(message.fromAddress); | ||
} | ||
if (message.toAddress !== "") { | ||
writer.uint32(18).string(message.toAddress); | ||
} | ||
for (const v of message.amount) { | ||
Coin.encode(v, writer.uint32(26).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 = createBaseMsgSend(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.fromAddress = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.toAddress = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.amount.push(Coin.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: MsgSend.$type, | ||
fromAddress: isSet(object.fromAddress) ? globalThis.String(object.fromAddress) : "", | ||
toAddress: isSet(object.toAddress) ? globalThis.String(object.toAddress) : "", | ||
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e) => Coin.fromJSON(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.fromAddress !== "") { | ||
obj.fromAddress = message.fromAddress; | ||
} | ||
if (message.toAddress !== "") { | ||
obj.toAddress = message.toAddress; | ||
} | ||
if (message.amount?.length) { | ||
obj.amount = message.amount.map((e) => Coin.toJSON(e)); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgSend.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgSend(); | ||
message.fromAddress = object.fromAddress ?? ""; | ||
message.toAddress = object.toAddress ?? ""; | ||
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgSend.$type, MsgSend); | ||
function createBaseMsgSendResponse() { | ||
return { $type: "cosmos.bank.v1beta1.MsgSendResponse" }; | ||
} | ||
export const MsgSendResponse = { | ||
$type: "cosmos.bank.v1beta1.MsgSendResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgSendResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgSendResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgSendResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgSendResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgSendResponse.$type, MsgSendResponse); | ||
function createBaseMsgMultiSend() { | ||
return { $type: "cosmos.bank.v1beta1.MsgMultiSend", inputs: [], outputs: [] }; | ||
} | ||
export const MsgMultiSend = { | ||
$type: "cosmos.bank.v1beta1.MsgMultiSend", | ||
encode(message, writer = _m0.Writer.create()) { | ||
for (const v of message.inputs) { | ||
Input.encode(v, writer.uint32(10).fork()).ldelim(); | ||
} | ||
for (const v of message.outputs) { | ||
Output.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 = createBaseMsgMultiSend(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.inputs.push(Input.decode(reader, reader.uint32())); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.outputs.push(Output.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: MsgMultiSend.$type, | ||
inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => Input.fromJSON(e)) : [], | ||
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => Output.fromJSON(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.inputs?.length) { | ||
obj.inputs = message.inputs.map((e) => Input.toJSON(e)); | ||
} | ||
if (message.outputs?.length) { | ||
obj.outputs = message.outputs.map((e) => Output.toJSON(e)); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgMultiSend.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgMultiSend(); | ||
message.inputs = object.inputs?.map((e) => Input.fromPartial(e)) || []; | ||
message.outputs = object.outputs?.map((e) => Output.fromPartial(e)) || []; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgMultiSend.$type, MsgMultiSend); | ||
function createBaseMsgMultiSendResponse() { | ||
return { $type: "cosmos.bank.v1beta1.MsgMultiSendResponse" }; | ||
} | ||
export const MsgMultiSendResponse = { | ||
$type: "cosmos.bank.v1beta1.MsgMultiSendResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgMultiSendResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgMultiSendResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgMultiSendResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgMultiSendResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgMultiSendResponse.$type, MsgMultiSendResponse); | ||
function createBaseMsgUpdateParams() { | ||
return { $type: "cosmos.bank.v1beta1.MsgUpdateParams", authority: "", params: undefined }; | ||
} | ||
export const MsgUpdateParams = { | ||
$type: "cosmos.bank.v1beta1.MsgUpdateParams", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.authority !== "") { | ||
writer.uint32(10).string(message.authority); | ||
} | ||
if (message.params !== undefined) { | ||
Params.encode(message.params, 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 = createBaseMsgUpdateParams(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.authority = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.params = Params.decode(reader, reader.uint32()); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: MsgUpdateParams.$type, | ||
authority: isSet(object.authority) ? globalThis.String(object.authority) : "", | ||
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.authority !== "") { | ||
obj.authority = message.authority; | ||
} | ||
if (message.params !== undefined) { | ||
obj.params = Params.toJSON(message.params); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgUpdateParams.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgUpdateParams(); | ||
message.authority = object.authority ?? ""; | ||
message.params = (object.params !== undefined && object.params !== null) | ||
? Params.fromPartial(object.params) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgUpdateParams.$type, MsgUpdateParams); | ||
function createBaseMsgUpdateParamsResponse() { | ||
return { $type: "cosmos.bank.v1beta1.MsgUpdateParamsResponse" }; | ||
} | ||
export const MsgUpdateParamsResponse = { | ||
$type: "cosmos.bank.v1beta1.MsgUpdateParamsResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgUpdateParamsResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgUpdateParamsResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgUpdateParamsResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgUpdateParamsResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgUpdateParamsResponse.$type, MsgUpdateParamsResponse); | ||
function createBaseMsgSetSendEnabled() { | ||
@@ -134,2 +480,149 @@ return { $type: "cosmos.bank.v1beta1.MsgSetSendEnabled", authority: "", sendEnabled: [], useDefaultFor: [] }; | ||
messageTypeRegistry.set(MsgSetSendEnabledResponse.$type, MsgSetSendEnabledResponse); | ||
function createBaseMsgBurn() { | ||
return { $type: "cosmos.bank.v1beta1.MsgBurn", fromAddress: "", amount: [] }; | ||
} | ||
export const MsgBurn = { | ||
$type: "cosmos.bank.v1beta1.MsgBurn", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.fromAddress !== "") { | ||
writer.uint32(10).string(message.fromAddress); | ||
} | ||
for (const v of message.amount) { | ||
Coin.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 = createBaseMsgBurn(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.fromAddress = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.amount.push(Coin.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: MsgBurn.$type, | ||
fromAddress: isSet(object.fromAddress) ? globalThis.String(object.fromAddress) : "", | ||
amount: globalThis.Array.isArray(object?.amount) ? object.amount.map((e) => Coin.fromJSON(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.fromAddress !== "") { | ||
obj.fromAddress = message.fromAddress; | ||
} | ||
if (message.amount?.length) { | ||
obj.amount = message.amount.map((e) => Coin.toJSON(e)); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgBurn.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgBurn(); | ||
message.fromAddress = object.fromAddress ?? ""; | ||
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || []; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgBurn.$type, MsgBurn); | ||
function createBaseMsgBurnResponse() { | ||
return { $type: "cosmos.bank.v1beta1.MsgBurnResponse" }; | ||
} | ||
export const MsgBurnResponse = { | ||
$type: "cosmos.bank.v1beta1.MsgBurnResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgBurnResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgBurnResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgBurnResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgBurnResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgBurnResponse.$type, MsgBurnResponse); | ||
export const MsgServiceName = "cosmos.bank.v1beta1.Msg"; | ||
export class MsgClientImpl { | ||
rpc; | ||
service; | ||
constructor(rpc, opts) { | ||
this.service = opts?.service || MsgServiceName; | ||
this.rpc = rpc; | ||
this.Send = this.Send.bind(this); | ||
this.MultiSend = this.MultiSend.bind(this); | ||
this.Burn = this.Burn.bind(this); | ||
this.UpdateParams = this.UpdateParams.bind(this); | ||
this.SetSendEnabled = this.SetSendEnabled.bind(this); | ||
} | ||
Send(request) { | ||
const data = MsgSend.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Send", data); | ||
return promise.then((data) => MsgSendResponse.decode(_m0.Reader.create(data))); | ||
} | ||
MultiSend(request) { | ||
const data = MsgMultiSend.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "MultiSend", data); | ||
return promise.then((data) => MsgMultiSendResponse.decode(_m0.Reader.create(data))); | ||
} | ||
Burn(request) { | ||
const data = MsgBurn.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "Burn", data); | ||
return promise.then((data) => MsgBurnResponse.decode(_m0.Reader.create(data))); | ||
} | ||
UpdateParams(request) { | ||
const data = MsgUpdateParams.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "UpdateParams", data); | ||
return promise.then((data) => MsgUpdateParamsResponse.decode(_m0.Reader.create(data))); | ||
} | ||
SetSendEnabled(request) { | ||
const data = MsgSetSendEnabled.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "SetSendEnabled", data); | ||
return promise.then((data) => MsgSetSendEnabledResponse.decode(_m0.Reader.create(data))); | ||
} | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -136,0 +629,0 @@ _m0.util.Long = Long; |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/base/v1beta1/coin.proto | ||
/* eslint-disable */ | ||
@@ -2,0 +7,0 @@ import Long from "long"; |
@@ -7,2 +7,3 @@ import Long from "long"; | ||
export declare const protobufPackage = "cosmos.feegrant.v1beta1"; | ||
/** Since: cosmos-sdk 0.43 */ | ||
/** | ||
@@ -9,0 +10,0 @@ * BasicAllowance implements Allowance with a one-time grant of coins |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/feegrant/v1beta1/feegrant.proto | ||
/* eslint-disable */ | ||
@@ -366,3 +371,3 @@ import Long from "long"; | ||
function toTimestamp(date) { | ||
const seconds = numberToLong(date.getTime() / 1_000); | ||
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000)); | ||
const nanos = (date.getTime() % 1_000) * 1_000_000; | ||
@@ -369,0 +374,0 @@ return { $type: "google.protobuf.Timestamp", seconds, nanos }; |
@@ -5,2 +5,3 @@ import Long from "long"; | ||
export declare const protobufPackage = "cosmos.feegrant.v1beta1"; | ||
/** Since: cosmos-sdk 0.43 */ | ||
/** | ||
@@ -19,2 +20,6 @@ * MsgGrantAllowance adds permission for Grantee to spend up to Allowance | ||
} | ||
/** MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. */ | ||
export interface MsgGrantAllowanceResponse { | ||
$type: "cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; | ||
} | ||
/** MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. */ | ||
@@ -28,2 +33,24 @@ export interface MsgRevokeAllowance { | ||
} | ||
/** MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. */ | ||
export interface MsgRevokeAllowanceResponse { | ||
$type: "cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; | ||
} | ||
/** | ||
* MsgPruneAllowances prunes expired fee allowances. | ||
* | ||
* Since cosmos-sdk 0.50 | ||
*/ | ||
export interface MsgPruneAllowances { | ||
$type: "cosmos.feegrant.v1beta1.MsgPruneAllowances"; | ||
/** pruner is the address of the user pruning expired allowances. */ | ||
pruner: string; | ||
} | ||
/** | ||
* MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. | ||
* | ||
* Since cosmos-sdk 0.50 | ||
*/ | ||
export interface MsgPruneAllowancesResponse { | ||
$type: "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse"; | ||
} | ||
export declare const MsgGrantAllowance: { | ||
@@ -38,2 +65,11 @@ $type: "cosmos.feegrant.v1beta1.MsgGrantAllowance"; | ||
}; | ||
export declare const MsgGrantAllowanceResponse: { | ||
$type: "cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; | ||
encode(_: MsgGrantAllowanceResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgGrantAllowanceResponse; | ||
fromJSON(_: any): MsgGrantAllowanceResponse; | ||
toJSON(_: MsgGrantAllowanceResponse): unknown; | ||
create(base?: DeepPartial<MsgGrantAllowanceResponse>): MsgGrantAllowanceResponse; | ||
fromPartial(_: DeepPartial<MsgGrantAllowanceResponse>): MsgGrantAllowanceResponse; | ||
}; | ||
export declare const MsgRevokeAllowance: { | ||
@@ -48,2 +84,62 @@ $type: "cosmos.feegrant.v1beta1.MsgRevokeAllowance"; | ||
}; | ||
export declare const MsgRevokeAllowanceResponse: { | ||
$type: "cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; | ||
encode(_: MsgRevokeAllowanceResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRevokeAllowanceResponse; | ||
fromJSON(_: any): MsgRevokeAllowanceResponse; | ||
toJSON(_: MsgRevokeAllowanceResponse): unknown; | ||
create(base?: DeepPartial<MsgRevokeAllowanceResponse>): MsgRevokeAllowanceResponse; | ||
fromPartial(_: DeepPartial<MsgRevokeAllowanceResponse>): MsgRevokeAllowanceResponse; | ||
}; | ||
export declare const MsgPruneAllowances: { | ||
$type: "cosmos.feegrant.v1beta1.MsgPruneAllowances"; | ||
encode(message: MsgPruneAllowances, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgPruneAllowances; | ||
fromJSON(object: any): MsgPruneAllowances; | ||
toJSON(message: MsgPruneAllowances): unknown; | ||
create(base?: DeepPartial<MsgPruneAllowances>): MsgPruneAllowances; | ||
fromPartial(object: DeepPartial<MsgPruneAllowances>): MsgPruneAllowances; | ||
}; | ||
export declare const MsgPruneAllowancesResponse: { | ||
$type: "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse"; | ||
encode(_: MsgPruneAllowancesResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgPruneAllowancesResponse; | ||
fromJSON(_: any): MsgPruneAllowancesResponse; | ||
toJSON(_: MsgPruneAllowancesResponse): unknown; | ||
create(base?: DeepPartial<MsgPruneAllowancesResponse>): MsgPruneAllowancesResponse; | ||
fromPartial(_: DeepPartial<MsgPruneAllowancesResponse>): MsgPruneAllowancesResponse; | ||
}; | ||
/** Msg defines the feegrant msg service. */ | ||
export interface Msg { | ||
/** | ||
* GrantAllowance grants fee allowance to the grantee on the granter's | ||
* account with the provided expiration time. | ||
*/ | ||
GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>; | ||
/** | ||
* RevokeAllowance revokes any fee allowance of granter's account that | ||
* has been granted to the grantee. | ||
*/ | ||
RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>; | ||
/** | ||
* PruneAllowances prunes expired fee allowances, currently up to 75 at a time. | ||
* | ||
* Since cosmos-sdk 0.50 | ||
*/ | ||
PruneAllowances(request: MsgPruneAllowances): Promise<MsgPruneAllowancesResponse>; | ||
} | ||
export declare const MsgServiceName = "cosmos.feegrant.v1beta1.Msg"; | ||
export declare class MsgClientImpl implements Msg { | ||
private readonly rpc; | ||
private readonly service; | ||
constructor(rpc: Rpc, opts?: { | ||
service?: string; | ||
}); | ||
GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>; | ||
RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>; | ||
PruneAllowances(request: MsgPruneAllowances): Promise<MsgPruneAllowancesResponse>; | ||
} | ||
interface Rpc { | ||
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; | ||
} | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -50,0 +146,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/feegrant/v1beta1/tx.proto | ||
/* eslint-disable */ | ||
@@ -92,2 +97,41 @@ import Long from "long"; | ||
messageTypeRegistry.set(MsgGrantAllowance.$type, MsgGrantAllowance); | ||
function createBaseMsgGrantAllowanceResponse() { | ||
return { $type: "cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse" }; | ||
} | ||
export const MsgGrantAllowanceResponse = { | ||
$type: "cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgGrantAllowanceResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgGrantAllowanceResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgGrantAllowanceResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgGrantAllowanceResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgGrantAllowanceResponse.$type, MsgGrantAllowanceResponse); | ||
function createBaseMsgRevokeAllowance() { | ||
@@ -162,2 +206,159 @@ return { $type: "cosmos.feegrant.v1beta1.MsgRevokeAllowance", granter: "", grantee: "" }; | ||
messageTypeRegistry.set(MsgRevokeAllowance.$type, MsgRevokeAllowance); | ||
function createBaseMsgRevokeAllowanceResponse() { | ||
return { $type: "cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse" }; | ||
} | ||
export const MsgRevokeAllowanceResponse = { | ||
$type: "cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgRevokeAllowanceResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgRevokeAllowanceResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgRevokeAllowanceResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgRevokeAllowanceResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgRevokeAllowanceResponse.$type, MsgRevokeAllowanceResponse); | ||
function createBaseMsgPruneAllowances() { | ||
return { $type: "cosmos.feegrant.v1beta1.MsgPruneAllowances", pruner: "" }; | ||
} | ||
export const MsgPruneAllowances = { | ||
$type: "cosmos.feegrant.v1beta1.MsgPruneAllowances", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.pruner !== "") { | ||
writer.uint32(10).string(message.pruner); | ||
} | ||
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 = createBaseMsgPruneAllowances(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.pruner = reader.string(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { $type: MsgPruneAllowances.$type, pruner: isSet(object.pruner) ? globalThis.String(object.pruner) : "" }; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.pruner !== "") { | ||
obj.pruner = message.pruner; | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgPruneAllowances.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMsgPruneAllowances(); | ||
message.pruner = object.pruner ?? ""; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgPruneAllowances.$type, MsgPruneAllowances); | ||
function createBaseMsgPruneAllowancesResponse() { | ||
return { $type: "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse" }; | ||
} | ||
export const MsgPruneAllowancesResponse = { | ||
$type: "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", | ||
encode(_, writer = _m0.Writer.create()) { | ||
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 = createBaseMsgPruneAllowancesResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return { $type: MsgPruneAllowancesResponse.$type }; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return MsgPruneAllowancesResponse.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseMsgPruneAllowancesResponse(); | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(MsgPruneAllowancesResponse.$type, MsgPruneAllowancesResponse); | ||
export const MsgServiceName = "cosmos.feegrant.v1beta1.Msg"; | ||
export class MsgClientImpl { | ||
rpc; | ||
service; | ||
constructor(rpc, opts) { | ||
this.service = opts?.service || MsgServiceName; | ||
this.rpc = rpc; | ||
this.GrantAllowance = this.GrantAllowance.bind(this); | ||
this.RevokeAllowance = this.RevokeAllowance.bind(this); | ||
this.PruneAllowances = this.PruneAllowances.bind(this); | ||
} | ||
GrantAllowance(request) { | ||
const data = MsgGrantAllowance.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "GrantAllowance", data); | ||
return promise.then((data) => MsgGrantAllowanceResponse.decode(_m0.Reader.create(data))); | ||
} | ||
RevokeAllowance(request) { | ||
const data = MsgRevokeAllowance.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "RevokeAllowance", data); | ||
return promise.then((data) => MsgRevokeAllowanceResponse.decode(_m0.Reader.create(data))); | ||
} | ||
PruneAllowances(request) { | ||
const data = MsgPruneAllowances.encode(request).finish(); | ||
const promise = this.rpc.request(this.service, "PruneAllowances", data); | ||
return promise.then((data) => MsgPruneAllowancesResponse.decode(_m0.Reader.create(data))); | ||
} | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -164,0 +365,0 @@ _m0.util.Long = Long; |
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import { Any } from "../../../google/protobuf/any"; | ||
import { Exec, MemberRequest, VoteOption } from "./types"; | ||
import { MemberRequest, ProposalExecutorResult, VoteOption } from "./types"; | ||
export declare const protobufPackage = "cosmos.group.v1"; | ||
/** Since: cosmos-sdk 0.46 */ | ||
/** Exec defines modes of execution of a proposal on creation or on new vote. */ | ||
export declare enum Exec { | ||
/** | ||
* EXEC_UNSPECIFIED - An empty value means that there should be a separate | ||
* MsgExec request for the proposal to execute. | ||
*/ | ||
EXEC_UNSPECIFIED = 0, | ||
/** | ||
* EXEC_TRY - Try to execute the proposal immediately. | ||
* If the proposal is not allowed per the DecisionPolicy, | ||
* the proposal will still be open and could | ||
* be executed at a later point. | ||
*/ | ||
EXEC_TRY = 1, | ||
UNRECOGNIZED = -1 | ||
} | ||
export declare function execFromJSON(object: any): Exec; | ||
export declare function execToJSON(object: Exec): string; | ||
/** MsgCreateGroup is the Msg/CreateGroup request type. */ | ||
@@ -16,30 +35,7 @@ export interface MsgCreateGroup { | ||
} | ||
/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ | ||
export interface MsgCreateGroupWithPolicy { | ||
$type: "cosmos.group.v1.MsgCreateGroupWithPolicy"; | ||
/** admin is the account address of the group and group policy admin. */ | ||
admin: string; | ||
/** members defines the group members. */ | ||
members: MemberRequest[]; | ||
/** group_metadata is any arbitrary metadata attached to the group. */ | ||
groupMetadata: string; | ||
/** group_policy_metadata is any arbitrary metadata attached to the group policy. */ | ||
groupPolicyMetadata: string; | ||
/** | ||
* group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group | ||
* and group policy admin. | ||
*/ | ||
groupPolicyAsAdmin: boolean; | ||
/** decision_policy specifies the group policy's decision policy. */ | ||
decisionPolicy?: Any | undefined; | ||
} | ||
/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ | ||
export interface MsgUpdateGroupAdmin { | ||
$type: "cosmos.group.v1.MsgUpdateGroupAdmin"; | ||
/** admin is the current account address of the group admin. */ | ||
admin: string; | ||
/** group_id is the unique ID of the group. */ | ||
/** MsgCreateGroupResponse is the Msg/CreateGroup response type. */ | ||
export interface MsgCreateGroupResponse { | ||
$type: "cosmos.group.v1.MsgCreateGroupResponse"; | ||
/** group_id is the unique ID of the newly created group. */ | ||
groupId: Long; | ||
/** new_admin is the group new admin account address. */ | ||
newAdmin: string; | ||
} | ||
@@ -59,2 +55,20 @@ /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */ | ||
} | ||
/** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */ | ||
export interface MsgUpdateGroupMembersResponse { | ||
$type: "cosmos.group.v1.MsgUpdateGroupMembersResponse"; | ||
} | ||
/** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */ | ||
export interface MsgUpdateGroupAdmin { | ||
$type: "cosmos.group.v1.MsgUpdateGroupAdmin"; | ||
/** admin is the current account address of the group admin. */ | ||
admin: string; | ||
/** group_id is the unique ID of the group. */ | ||
groupId: Long; | ||
/** new_admin is the group new admin account address. */ | ||
newAdmin: string; | ||
} | ||
/** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */ | ||
export interface MsgUpdateGroupAdminResponse { | ||
$type: "cosmos.group.v1.MsgUpdateGroupAdminResponse"; | ||
} | ||
/** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */ | ||
@@ -70,9 +84,5 @@ export interface MsgUpdateGroupMetadata { | ||
} | ||
/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ | ||
export interface MsgLeaveGroup { | ||
$type: "cosmos.group.v1.MsgLeaveGroup"; | ||
/** address is the account address of the group member. */ | ||
address: string; | ||
/** group_id is the unique ID of the group. */ | ||
groupId: Long; | ||
/** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */ | ||
export interface MsgUpdateGroupMetadataResponse { | ||
$type: "cosmos.group.v1.MsgUpdateGroupMetadataResponse"; | ||
} | ||
@@ -91,2 +101,8 @@ /** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */ | ||
} | ||
/** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */ | ||
export interface MsgCreateGroupPolicyResponse { | ||
$type: "cosmos.group.v1.MsgCreateGroupPolicyResponse"; | ||
/** address is the account address of the newly created group policy. */ | ||
address: string; | ||
} | ||
/** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */ | ||
@@ -102,2 +118,33 @@ export interface MsgUpdateGroupPolicyAdmin { | ||
} | ||
/** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */ | ||
export interface MsgUpdateGroupPolicyAdminResponse { | ||
$type: "cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; | ||
} | ||
/** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */ | ||
export interface MsgCreateGroupWithPolicy { | ||
$type: "cosmos.group.v1.MsgCreateGroupWithPolicy"; | ||
/** admin is the account address of the group and group policy admin. */ | ||
admin: string; | ||
/** members defines the group members. */ | ||
members: MemberRequest[]; | ||
/** group_metadata is any arbitrary metadata attached to the group. */ | ||
groupMetadata: string; | ||
/** group_policy_metadata is any arbitrary metadata attached to the group policy. */ | ||
groupPolicyMetadata: string; | ||
/** | ||
* group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group | ||
* and group policy admin. | ||
*/ | ||
groupPolicyAsAdmin: boolean; | ||
/** decision_policy specifies the group policy's decision policy. */ | ||
decisionPolicy?: Any | undefined; | ||
} | ||
/** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */ | ||
export interface MsgCreateGroupWithPolicyResponse { | ||
$type: "cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; | ||
/** group_id is the unique ID of the newly created group with policy. */ | ||
groupId: Long; | ||
/** group_policy_address is the account address of the newly created group policy. */ | ||
groupPolicyAddress: string; | ||
} | ||
/** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */ | ||
@@ -113,2 +160,6 @@ export interface MsgUpdateGroupPolicyDecisionPolicy { | ||
} | ||
/** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */ | ||
export interface MsgUpdateGroupPolicyDecisionPolicyResponse { | ||
$type: "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; | ||
} | ||
/** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */ | ||
@@ -121,5 +172,9 @@ export interface MsgUpdateGroupPolicyMetadata { | ||
groupPolicyAddress: string; | ||
/** metadata is the updated group policy metadata. */ | ||
/** metadata is the group policy metadata to be updated. */ | ||
metadata: string; | ||
} | ||
/** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */ | ||
export interface MsgUpdateGroupPolicyMetadataResponse { | ||
$type: "cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; | ||
} | ||
/** MsgSubmitProposal is the Msg/SubmitProposal request type. */ | ||
@@ -135,3 +190,3 @@ export interface MsgSubmitProposal { | ||
proposers: string[]; | ||
/** metadata is any arbitrary metadata to attached to the proposal. */ | ||
/** metadata is any arbitrary metadata attached to the proposal. */ | ||
metadata: string; | ||
@@ -147,2 +202,8 @@ /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ | ||
} | ||
/** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */ | ||
export interface MsgSubmitProposalResponse { | ||
$type: "cosmos.group.v1.MsgSubmitProposalResponse"; | ||
/** proposal is the unique ID of the proposal. */ | ||
proposalId: Long; | ||
} | ||
/** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */ | ||
@@ -156,2 +217,6 @@ export interface MsgWithdrawProposal { | ||
} | ||
/** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */ | ||
export interface MsgWithdrawProposalResponse { | ||
$type: "cosmos.group.v1.MsgWithdrawProposalResponse"; | ||
} | ||
/** MsgVote is the Msg/Vote request type. */ | ||
@@ -166,3 +231,3 @@ export interface MsgVote { | ||
option: VoteOption; | ||
/** metadata is any arbitrary metadata to attached to the vote. */ | ||
/** metadata is any arbitrary metadata attached to the vote. */ | ||
metadata: string; | ||
@@ -175,2 +240,6 @@ /** | ||
} | ||
/** MsgVoteResponse is the Msg/Vote response type. */ | ||
export interface MsgVoteResponse { | ||
$type: "cosmos.group.v1.MsgVoteResponse"; | ||
} | ||
/** MsgExec is the Msg/Exec request type. */ | ||
@@ -184,2 +253,20 @@ export interface MsgExec { | ||
} | ||
/** MsgExecResponse is the Msg/Exec request type. */ | ||
export interface MsgExecResponse { | ||
$type: "cosmos.group.v1.MsgExecResponse"; | ||
/** result is the final result of the proposal execution. */ | ||
result: ProposalExecutorResult; | ||
} | ||
/** MsgLeaveGroup is the Msg/LeaveGroup request type. */ | ||
export interface MsgLeaveGroup { | ||
$type: "cosmos.group.v1.MsgLeaveGroup"; | ||
/** address is the account address of the group member. */ | ||
address: string; | ||
/** group_id is the unique ID of the group. */ | ||
groupId: Long; | ||
} | ||
/** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */ | ||
export interface MsgLeaveGroupResponse { | ||
$type: "cosmos.group.v1.MsgLeaveGroupResponse"; | ||
} | ||
export declare const MsgCreateGroup: { | ||
@@ -194,11 +281,29 @@ $type: "cosmos.group.v1.MsgCreateGroup"; | ||
}; | ||
export declare const MsgCreateGroupWithPolicy: { | ||
$type: "cosmos.group.v1.MsgCreateGroupWithPolicy"; | ||
encode(message: MsgCreateGroupWithPolicy, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; | ||
fromJSON(object: any): MsgCreateGroupWithPolicy; | ||
toJSON(message: MsgCreateGroupWithPolicy): unknown; | ||
create(base?: DeepPartial<MsgCreateGroupWithPolicy>): MsgCreateGroupWithPolicy; | ||
fromPartial(object: DeepPartial<MsgCreateGroupWithPolicy>): MsgCreateGroupWithPolicy; | ||
export declare const MsgCreateGroupResponse: { | ||
$type: "cosmos.group.v1.MsgCreateGroupResponse"; | ||
encode(message: MsgCreateGroupResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupResponse; | ||
fromJSON(object: any): MsgCreateGroupResponse; | ||
toJSON(message: MsgCreateGroupResponse): unknown; | ||
create(base?: DeepPartial<MsgCreateGroupResponse>): MsgCreateGroupResponse; | ||
fromPartial(object: DeepPartial<MsgCreateGroupResponse>): MsgCreateGroupResponse; | ||
}; | ||
export declare const MsgUpdateGroupMembers: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupMembers"; | ||
encode(message: MsgUpdateGroupMembers, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembers; | ||
fromJSON(object: any): MsgUpdateGroupMembers; | ||
toJSON(message: MsgUpdateGroupMembers): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupMembers>): MsgUpdateGroupMembers; | ||
fromPartial(object: DeepPartial<MsgUpdateGroupMembers>): MsgUpdateGroupMembers; | ||
}; | ||
export declare const MsgUpdateGroupMembersResponse: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupMembersResponse"; | ||
encode(_: MsgUpdateGroupMembersResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse; | ||
fromJSON(_: any): MsgUpdateGroupMembersResponse; | ||
toJSON(_: MsgUpdateGroupMembersResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupMembersResponse>): MsgUpdateGroupMembersResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateGroupMembersResponse>): MsgUpdateGroupMembersResponse; | ||
}; | ||
export declare const MsgUpdateGroupAdmin: { | ||
@@ -213,10 +318,10 @@ $type: "cosmos.group.v1.MsgUpdateGroupAdmin"; | ||
}; | ||
export declare const MsgUpdateGroupMembers: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupMembers"; | ||
encode(message: MsgUpdateGroupMembers, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMembers; | ||
fromJSON(object: any): MsgUpdateGroupMembers; | ||
toJSON(message: MsgUpdateGroupMembers): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupMembers>): MsgUpdateGroupMembers; | ||
fromPartial(object: DeepPartial<MsgUpdateGroupMembers>): MsgUpdateGroupMembers; | ||
export declare const MsgUpdateGroupAdminResponse: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupAdminResponse"; | ||
encode(_: MsgUpdateGroupAdminResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse; | ||
fromJSON(_: any): MsgUpdateGroupAdminResponse; | ||
toJSON(_: MsgUpdateGroupAdminResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupAdminResponse>): MsgUpdateGroupAdminResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateGroupAdminResponse>): MsgUpdateGroupAdminResponse; | ||
}; | ||
@@ -232,10 +337,10 @@ export declare const MsgUpdateGroupMetadata: { | ||
}; | ||
export declare const MsgLeaveGroup: { | ||
$type: "cosmos.group.v1.MsgLeaveGroup"; | ||
encode(message: MsgLeaveGroup, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroup; | ||
fromJSON(object: any): MsgLeaveGroup; | ||
toJSON(message: MsgLeaveGroup): unknown; | ||
create(base?: DeepPartial<MsgLeaveGroup>): MsgLeaveGroup; | ||
fromPartial(object: DeepPartial<MsgLeaveGroup>): MsgLeaveGroup; | ||
export declare const MsgUpdateGroupMetadataResponse: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupMetadataResponse"; | ||
encode(_: MsgUpdateGroupMetadataResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse; | ||
fromJSON(_: any): MsgUpdateGroupMetadataResponse; | ||
toJSON(_: MsgUpdateGroupMetadataResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupMetadataResponse>): MsgUpdateGroupMetadataResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateGroupMetadataResponse>): MsgUpdateGroupMetadataResponse; | ||
}; | ||
@@ -251,2 +356,11 @@ export declare const MsgCreateGroupPolicy: { | ||
}; | ||
export declare const MsgCreateGroupPolicyResponse: { | ||
$type: "cosmos.group.v1.MsgCreateGroupPolicyResponse"; | ||
encode(message: MsgCreateGroupPolicyResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse; | ||
fromJSON(object: any): MsgCreateGroupPolicyResponse; | ||
toJSON(message: MsgCreateGroupPolicyResponse): unknown; | ||
create(base?: DeepPartial<MsgCreateGroupPolicyResponse>): MsgCreateGroupPolicyResponse; | ||
fromPartial(object: DeepPartial<MsgCreateGroupPolicyResponse>): MsgCreateGroupPolicyResponse; | ||
}; | ||
export declare const MsgUpdateGroupPolicyAdmin: { | ||
@@ -261,2 +375,29 @@ $type: "cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; | ||
}; | ||
export declare const MsgUpdateGroupPolicyAdminResponse: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; | ||
encode(_: MsgUpdateGroupPolicyAdminResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse; | ||
fromJSON(_: any): MsgUpdateGroupPolicyAdminResponse; | ||
toJSON(_: MsgUpdateGroupPolicyAdminResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupPolicyAdminResponse>): MsgUpdateGroupPolicyAdminResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateGroupPolicyAdminResponse>): MsgUpdateGroupPolicyAdminResponse; | ||
}; | ||
export declare const MsgCreateGroupWithPolicy: { | ||
$type: "cosmos.group.v1.MsgCreateGroupWithPolicy"; | ||
encode(message: MsgCreateGroupWithPolicy, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicy; | ||
fromJSON(object: any): MsgCreateGroupWithPolicy; | ||
toJSON(message: MsgCreateGroupWithPolicy): unknown; | ||
create(base?: DeepPartial<MsgCreateGroupWithPolicy>): MsgCreateGroupWithPolicy; | ||
fromPartial(object: DeepPartial<MsgCreateGroupWithPolicy>): MsgCreateGroupWithPolicy; | ||
}; | ||
export declare const MsgCreateGroupWithPolicyResponse: { | ||
$type: "cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; | ||
encode(message: MsgCreateGroupWithPolicyResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse; | ||
fromJSON(object: any): MsgCreateGroupWithPolicyResponse; | ||
toJSON(message: MsgCreateGroupWithPolicyResponse): unknown; | ||
create(base?: DeepPartial<MsgCreateGroupWithPolicyResponse>): MsgCreateGroupWithPolicyResponse; | ||
fromPartial(object: DeepPartial<MsgCreateGroupWithPolicyResponse>): MsgCreateGroupWithPolicyResponse; | ||
}; | ||
export declare const MsgUpdateGroupPolicyDecisionPolicy: { | ||
@@ -271,2 +412,11 @@ $type: "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; | ||
}; | ||
export declare const MsgUpdateGroupPolicyDecisionPolicyResponse: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; | ||
encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse; | ||
fromJSON(_: any): MsgUpdateGroupPolicyDecisionPolicyResponse; | ||
toJSON(_: MsgUpdateGroupPolicyDecisionPolicyResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupPolicyDecisionPolicyResponse>): MsgUpdateGroupPolicyDecisionPolicyResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateGroupPolicyDecisionPolicyResponse>): MsgUpdateGroupPolicyDecisionPolicyResponse; | ||
}; | ||
export declare const MsgUpdateGroupPolicyMetadata: { | ||
@@ -281,2 +431,11 @@ $type: "cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; | ||
}; | ||
export declare const MsgUpdateGroupPolicyMetadataResponse: { | ||
$type: "cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; | ||
encode(_: MsgUpdateGroupPolicyMetadataResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse; | ||
fromJSON(_: any): MsgUpdateGroupPolicyMetadataResponse; | ||
toJSON(_: MsgUpdateGroupPolicyMetadataResponse): unknown; | ||
create(base?: DeepPartial<MsgUpdateGroupPolicyMetadataResponse>): MsgUpdateGroupPolicyMetadataResponse; | ||
fromPartial(_: DeepPartial<MsgUpdateGroupPolicyMetadataResponse>): MsgUpdateGroupPolicyMetadataResponse; | ||
}; | ||
export declare const MsgSubmitProposal: { | ||
@@ -291,2 +450,11 @@ $type: "cosmos.group.v1.MsgSubmitProposal"; | ||
}; | ||
export declare const MsgSubmitProposalResponse: { | ||
$type: "cosmos.group.v1.MsgSubmitProposalResponse"; | ||
encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; | ||
fromJSON(object: any): MsgSubmitProposalResponse; | ||
toJSON(message: MsgSubmitProposalResponse): unknown; | ||
create(base?: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse; | ||
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse; | ||
}; | ||
export declare const MsgWithdrawProposal: { | ||
@@ -301,2 +469,11 @@ $type: "cosmos.group.v1.MsgWithdrawProposal"; | ||
}; | ||
export declare const MsgWithdrawProposalResponse: { | ||
$type: "cosmos.group.v1.MsgWithdrawProposalResponse"; | ||
encode(_: MsgWithdrawProposalResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawProposalResponse; | ||
fromJSON(_: any): MsgWithdrawProposalResponse; | ||
toJSON(_: MsgWithdrawProposalResponse): unknown; | ||
create(base?: DeepPartial<MsgWithdrawProposalResponse>): MsgWithdrawProposalResponse; | ||
fromPartial(_: DeepPartial<MsgWithdrawProposalResponse>): MsgWithdrawProposalResponse; | ||
}; | ||
export declare const MsgVote: { | ||
@@ -311,2 +488,11 @@ $type: "cosmos.group.v1.MsgVote"; | ||
}; | ||
export declare const MsgVoteResponse: { | ||
$type: "cosmos.group.v1.MsgVoteResponse"; | ||
encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; | ||
fromJSON(_: any): MsgVoteResponse; | ||
toJSON(_: MsgVoteResponse): unknown; | ||
create(base?: DeepPartial<MsgVoteResponse>): MsgVoteResponse; | ||
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse; | ||
}; | ||
export declare const MsgExec: { | ||
@@ -321,2 +507,85 @@ $type: "cosmos.group.v1.MsgExec"; | ||
}; | ||
export declare const MsgExecResponse: { | ||
$type: "cosmos.group.v1.MsgExecResponse"; | ||
encode(message: MsgExecResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecResponse; | ||
fromJSON(object: any): MsgExecResponse; | ||
toJSON(message: MsgExecResponse): unknown; | ||
create(base?: DeepPartial<MsgExecResponse>): MsgExecResponse; | ||
fromPartial(object: DeepPartial<MsgExecResponse>): MsgExecResponse; | ||
}; | ||
export declare const MsgLeaveGroup: { | ||
$type: "cosmos.group.v1.MsgLeaveGroup"; | ||
encode(message: MsgLeaveGroup, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroup; | ||
fromJSON(object: any): MsgLeaveGroup; | ||
toJSON(message: MsgLeaveGroup): unknown; | ||
create(base?: DeepPartial<MsgLeaveGroup>): MsgLeaveGroup; | ||
fromPartial(object: DeepPartial<MsgLeaveGroup>): MsgLeaveGroup; | ||
}; | ||
export declare const MsgLeaveGroupResponse: { | ||
$type: "cosmos.group.v1.MsgLeaveGroupResponse"; | ||
encode(_: MsgLeaveGroupResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): MsgLeaveGroupResponse; | ||
fromJSON(_: any): MsgLeaveGroupResponse; | ||
toJSON(_: MsgLeaveGroupResponse): unknown; | ||
create(base?: DeepPartial<MsgLeaveGroupResponse>): MsgLeaveGroupResponse; | ||
fromPartial(_: DeepPartial<MsgLeaveGroupResponse>): MsgLeaveGroupResponse; | ||
}; | ||
/** Msg is the cosmos.group.v1 Msg service. */ | ||
export interface Msg { | ||
/** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */ | ||
CreateGroup(request: MsgCreateGroup): Promise<MsgCreateGroupResponse>; | ||
/** UpdateGroupMembers updates the group members with given group id and admin address. */ | ||
UpdateGroupMembers(request: MsgUpdateGroupMembers): Promise<MsgUpdateGroupMembersResponse>; | ||
/** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */ | ||
UpdateGroupAdmin(request: MsgUpdateGroupAdmin): Promise<MsgUpdateGroupAdminResponse>; | ||
/** UpdateGroupMetadata updates the group metadata with given group id and admin address. */ | ||
UpdateGroupMetadata(request: MsgUpdateGroupMetadata): Promise<MsgUpdateGroupMetadataResponse>; | ||
/** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */ | ||
CreateGroupPolicy(request: MsgCreateGroupPolicy): Promise<MsgCreateGroupPolicyResponse>; | ||
/** CreateGroupWithPolicy creates a new group with policy. */ | ||
CreateGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise<MsgCreateGroupWithPolicyResponse>; | ||
/** UpdateGroupPolicyAdmin updates a group policy admin. */ | ||
UpdateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise<MsgUpdateGroupPolicyAdminResponse>; | ||
/** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */ | ||
UpdateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise<MsgUpdateGroupPolicyDecisionPolicyResponse>; | ||
/** UpdateGroupPolicyMetadata updates a group policy metadata. */ | ||
UpdateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise<MsgUpdateGroupPolicyMetadataResponse>; | ||
/** SubmitProposal submits a new proposal. */ | ||
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>; | ||
/** WithdrawProposal withdraws a proposal. */ | ||
WithdrawProposal(request: MsgWithdrawProposal): Promise<MsgWithdrawProposalResponse>; | ||
/** Vote allows a voter to vote on a proposal. */ | ||
Vote(request: MsgVote): Promise<MsgVoteResponse>; | ||
/** Exec executes a proposal. */ | ||
Exec(request: MsgExec): Promise<MsgExecResponse>; | ||
/** LeaveGroup allows a group member to leave the group. */ | ||
LeaveGroup(request: MsgLeaveGroup): Promise<MsgLeaveGroupResponse>; | ||
} | ||
export declare const MsgServiceName = "cosmos.group.v1.Msg"; | ||
export declare class MsgClientImpl implements Msg { | ||
private readonly rpc; | ||
private readonly service; | ||
constructor(rpc: Rpc, opts?: { | ||
service?: string; | ||
}); | ||
CreateGroup(request: MsgCreateGroup): Promise<MsgCreateGroupResponse>; | ||
UpdateGroupMembers(request: MsgUpdateGroupMembers): Promise<MsgUpdateGroupMembersResponse>; | ||
UpdateGroupAdmin(request: MsgUpdateGroupAdmin): Promise<MsgUpdateGroupAdminResponse>; | ||
UpdateGroupMetadata(request: MsgUpdateGroupMetadata): Promise<MsgUpdateGroupMetadataResponse>; | ||
CreateGroupPolicy(request: MsgCreateGroupPolicy): Promise<MsgCreateGroupPolicyResponse>; | ||
CreateGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise<MsgCreateGroupWithPolicyResponse>; | ||
UpdateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise<MsgUpdateGroupPolicyAdminResponse>; | ||
UpdateGroupPolicyDecisionPolicy(request: MsgUpdateGroupPolicyDecisionPolicy): Promise<MsgUpdateGroupPolicyDecisionPolicyResponse>; | ||
UpdateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise<MsgUpdateGroupPolicyMetadataResponse>; | ||
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>; | ||
WithdrawProposal(request: MsgWithdrawProposal): Promise<MsgWithdrawProposalResponse>; | ||
Vote(request: MsgVote): Promise<MsgVoteResponse>; | ||
Exec(request: MsgExec): Promise<MsgExecResponse>; | ||
LeaveGroup(request: MsgLeaveGroup): Promise<MsgLeaveGroupResponse>; | ||
} | ||
interface Rpc { | ||
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; | ||
} | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -323,0 +592,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import { Any } from "../../../google/protobuf/any"; | ||
import { Duration } from "../../../google/protobuf/duration"; | ||
export declare const protobufPackage = "cosmos.group.v1"; | ||
/** Since: cosmos-sdk 0.46 */ | ||
/** VoteOption enumerates the valid vote options for a given proposal. */ | ||
@@ -68,20 +70,17 @@ export declare enum VoteOption { | ||
export declare function proposalExecutorResultToJSON(object: ProposalExecutorResult): string; | ||
/** Exec defines modes of execution of a proposal on creation or on new vote. */ | ||
export declare enum Exec { | ||
/** | ||
* EXEC_UNSPECIFIED - An empty value means that there should be a separate | ||
* MsgExec request for the proposal to execute. | ||
*/ | ||
EXEC_UNSPECIFIED = 0, | ||
/** | ||
* EXEC_TRY - Try to execute the proposal immediately. | ||
* If the proposal is not allowed per the DecisionPolicy, | ||
* the proposal will still be open and could | ||
* be executed at a later point. | ||
*/ | ||
EXEC_TRY = 1, | ||
UNRECOGNIZED = -1 | ||
/** | ||
* Member represents a group member with an account address, | ||
* non-zero weight, metadata and added_at timestamp. | ||
*/ | ||
export interface Member { | ||
$type: "cosmos.group.v1.Member"; | ||
/** address is the member's account address. */ | ||
address: string; | ||
/** weight is the member's voting weight that should be greater than 0. */ | ||
weight: string; | ||
/** metadata is any arbitrary metadata attached to the member. */ | ||
metadata: string; | ||
/** added_at is a timestamp specifying when a member was added. */ | ||
addedAt?: Date | undefined; | ||
} | ||
export declare function execFromJSON(object: any): Exec; | ||
export declare function execToJSON(object: Exec): string; | ||
/** | ||
@@ -104,3 +103,3 @@ * MemberRequest represents a group member to be used in Msg server requests. | ||
* satisfies the two following conditions: | ||
* 1. The sum of all `YES` voters' weights is greater or equal than the defined | ||
* 1. The sum of all `YES` voter's weights is greater or equal than the defined | ||
* `threshold`. | ||
@@ -131,3 +130,3 @@ * 2. The voting and execution periods of the proposal respect the parameters | ||
/** | ||
* percentage is the minimum percentage the weighted sum of `YES` votes must | ||
* percentage is the minimum percentage of the weighted sum of `YES` votes must | ||
* meet for a proposal to succeed. | ||
@@ -162,2 +161,153 @@ */ | ||
} | ||
/** GroupInfo represents the high-level on-chain information for a group. */ | ||
export interface GroupInfo { | ||
$type: "cosmos.group.v1.GroupInfo"; | ||
/** id is the unique ID of the group. */ | ||
id: Long; | ||
/** admin is the account address of the group's admin. */ | ||
admin: string; | ||
/** | ||
* metadata is any arbitrary metadata to attached to the group. | ||
* the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1 | ||
*/ | ||
metadata: string; | ||
/** | ||
* version is used to track changes to a group's membership structure that | ||
* would break existing proposals. Whenever any members weight is changed, | ||
* or any member is added or removed this version is incremented and will | ||
* cause proposals based on older versions of this group to fail | ||
*/ | ||
version: Long; | ||
/** total_weight is the sum of the group members' weights. */ | ||
totalWeight: string; | ||
/** created_at is a timestamp specifying when a group was created. */ | ||
createdAt?: Date | undefined; | ||
} | ||
/** GroupMember represents the relationship between a group and a member. */ | ||
export interface GroupMember { | ||
$type: "cosmos.group.v1.GroupMember"; | ||
/** group_id is the unique ID of the group. */ | ||
groupId: Long; | ||
/** member is the member data. */ | ||
member?: Member | undefined; | ||
} | ||
/** GroupPolicyInfo represents the high-level on-chain information for a group policy. */ | ||
export interface GroupPolicyInfo { | ||
$type: "cosmos.group.v1.GroupPolicyInfo"; | ||
/** address is the account address of group policy. */ | ||
address: string; | ||
/** group_id is the unique ID of the group. */ | ||
groupId: Long; | ||
/** admin is the account address of the group admin. */ | ||
admin: string; | ||
/** | ||
* metadata is any arbitrary metadata attached to the group policy. | ||
* the recommended format of the metadata is to be found here: | ||
* https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 | ||
*/ | ||
metadata: string; | ||
/** | ||
* version is used to track changes to a group's GroupPolicyInfo structure that | ||
* would create a different result on a running proposal. | ||
*/ | ||
version: Long; | ||
/** decision_policy specifies the group policy's decision policy. */ | ||
decisionPolicy?: Any | undefined; | ||
/** created_at is a timestamp specifying when a group policy was created. */ | ||
createdAt?: Date | undefined; | ||
} | ||
/** | ||
* Proposal defines a group proposal. Any member of a group can submit a proposal | ||
* for a group policy to decide upon. | ||
* A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal | ||
* passes as well as some optional metadata associated with the proposal. | ||
*/ | ||
export interface Proposal { | ||
$type: "cosmos.group.v1.Proposal"; | ||
/** id is the unique id of the proposal. */ | ||
id: Long; | ||
/** group_policy_address is the account address of group policy. */ | ||
groupPolicyAddress: string; | ||
/** | ||
* metadata is any arbitrary metadata attached to the proposal. | ||
* the recommended format of the metadata is to be found here: | ||
* https://docs.cosmos.network/v0.47/modules/group#proposal-4 | ||
*/ | ||
metadata: string; | ||
/** proposers are the account addresses of the proposers. */ | ||
proposers: string[]; | ||
/** submit_time is a timestamp specifying when a proposal was submitted. */ | ||
submitTime?: Date | undefined; | ||
/** | ||
* group_version tracks the version of the group at proposal submission. | ||
* This field is here for informational purposes only. | ||
*/ | ||
groupVersion: Long; | ||
/** | ||
* group_policy_version tracks the version of the group policy at proposal submission. | ||
* When a decision policy is changed, existing proposals from previous policy | ||
* versions will become invalid with the `ABORTED` status. | ||
* This field is here for informational purposes only. | ||
*/ | ||
groupPolicyVersion: Long; | ||
/** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */ | ||
status: ProposalStatus; | ||
/** | ||
* final_tally_result contains the sums of all weighted votes for this | ||
* proposal for each vote option. It is empty at submission, and only | ||
* populated after tallying, at voting period end or at proposal execution, | ||
* whichever happens first. | ||
*/ | ||
finalTallyResult?: TallyResult | undefined; | ||
/** | ||
* voting_period_end is the timestamp before which voting must be done. | ||
* Unless a successful MsgExec is called before (to execute a proposal whose | ||
* tally is successful before the voting period ends), tallying will be done | ||
* at this point, and the `final_tally_result`and `status` fields will be | ||
* accordingly updated. | ||
*/ | ||
votingPeriodEnd?: Date | undefined; | ||
/** executor_result is the final result of the proposal execution. Initial value is NotRun. */ | ||
executorResult: ProposalExecutorResult; | ||
/** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */ | ||
messages: Any[]; | ||
} | ||
/** TallyResult represents the sum of weighted votes for each vote option. */ | ||
export interface TallyResult { | ||
$type: "cosmos.group.v1.TallyResult"; | ||
/** yes_count is the weighted sum of yes votes. */ | ||
yesCount: string; | ||
/** abstain_count is the weighted sum of abstainers. */ | ||
abstainCount: string; | ||
/** no_count is the weighted sum of no votes. */ | ||
noCount: string; | ||
/** no_with_veto_count is the weighted sum of veto. */ | ||
noWithVetoCount: string; | ||
} | ||
/** Vote represents a vote for a proposal.string metadata */ | ||
export interface Vote { | ||
$type: "cosmos.group.v1.Vote"; | ||
/** proposal is the unique ID of the proposal. */ | ||
proposalId: Long; | ||
/** voter is the account address of the voter. */ | ||
voter: string; | ||
/** option is the voter's choice on the proposal. */ | ||
option: VoteOption; | ||
/** | ||
* metadata is any arbitrary metadata attached to the vote. | ||
* the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2 | ||
*/ | ||
metadata: string; | ||
/** submit_time is the timestamp when the vote was submitted. */ | ||
submitTime?: Date | undefined; | ||
} | ||
export declare const Member: { | ||
$type: "cosmos.group.v1.Member"; | ||
encode(message: Member, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): Member; | ||
fromJSON(object: any): Member; | ||
toJSON(message: Member): unknown; | ||
create(base?: DeepPartial<Member>): Member; | ||
fromPartial(object: DeepPartial<Member>): Member; | ||
}; | ||
export declare const MemberRequest: { | ||
@@ -199,2 +349,56 @@ $type: "cosmos.group.v1.MemberRequest"; | ||
}; | ||
export declare const GroupInfo: { | ||
$type: "cosmos.group.v1.GroupInfo"; | ||
encode(message: GroupInfo, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GroupInfo; | ||
fromJSON(object: any): GroupInfo; | ||
toJSON(message: GroupInfo): unknown; | ||
create(base?: DeepPartial<GroupInfo>): GroupInfo; | ||
fromPartial(object: DeepPartial<GroupInfo>): GroupInfo; | ||
}; | ||
export declare const GroupMember: { | ||
$type: "cosmos.group.v1.GroupMember"; | ||
encode(message: GroupMember, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GroupMember; | ||
fromJSON(object: any): GroupMember; | ||
toJSON(message: GroupMember): unknown; | ||
create(base?: DeepPartial<GroupMember>): GroupMember; | ||
fromPartial(object: DeepPartial<GroupMember>): GroupMember; | ||
}; | ||
export declare const GroupPolicyInfo: { | ||
$type: "cosmos.group.v1.GroupPolicyInfo"; | ||
encode(message: GroupPolicyInfo, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GroupPolicyInfo; | ||
fromJSON(object: any): GroupPolicyInfo; | ||
toJSON(message: GroupPolicyInfo): unknown; | ||
create(base?: DeepPartial<GroupPolicyInfo>): GroupPolicyInfo; | ||
fromPartial(object: DeepPartial<GroupPolicyInfo>): GroupPolicyInfo; | ||
}; | ||
export declare const Proposal: { | ||
$type: "cosmos.group.v1.Proposal"; | ||
encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; | ||
fromJSON(object: any): Proposal; | ||
toJSON(message: Proposal): unknown; | ||
create(base?: DeepPartial<Proposal>): Proposal; | ||
fromPartial(object: DeepPartial<Proposal>): Proposal; | ||
}; | ||
export declare const TallyResult: { | ||
$type: "cosmos.group.v1.TallyResult"; | ||
encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; | ||
fromJSON(object: any): TallyResult; | ||
toJSON(message: TallyResult): unknown; | ||
create(base?: DeepPartial<TallyResult>): TallyResult; | ||
fromPartial(object: DeepPartial<TallyResult>): TallyResult; | ||
}; | ||
export declare const Vote: { | ||
$type: "cosmos.group.v1.Vote"; | ||
encode(message: Vote, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): Vote; | ||
fromJSON(object: any): Vote; | ||
toJSON(message: Vote): unknown; | ||
create(base?: DeepPartial<Vote>): Vote; | ||
fromPartial(object: DeepPartial<Vote>): Vote; | ||
}; | ||
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; | ||
@@ -201,0 +405,0 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { |
@@ -0,7 +1,15 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/group/v1/types.proto | ||
/* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import { Any } from "../../../google/protobuf/any"; | ||
import { Duration } from "../../../google/protobuf/duration"; | ||
import { Timestamp } from "../../../google/protobuf/timestamp"; | ||
import { messageTypeRegistry } from "../../../typeRegistry"; | ||
export const protobufPackage = "cosmos.group.v1"; | ||
/** Since: cosmos-sdk 0.46 */ | ||
/** VoteOption enumerates the valid vote options for a given proposal. */ | ||
@@ -187,44 +195,99 @@ export var VoteOption; | ||
} | ||
/** Exec defines modes of execution of a proposal on creation or on new vote. */ | ||
export var Exec; | ||
(function (Exec) { | ||
/** | ||
* EXEC_UNSPECIFIED - An empty value means that there should be a separate | ||
* MsgExec request for the proposal to execute. | ||
*/ | ||
Exec[Exec["EXEC_UNSPECIFIED"] = 0] = "EXEC_UNSPECIFIED"; | ||
/** | ||
* EXEC_TRY - Try to execute the proposal immediately. | ||
* If the proposal is not allowed per the DecisionPolicy, | ||
* the proposal will still be open and could | ||
* be executed at a later point. | ||
*/ | ||
Exec[Exec["EXEC_TRY"] = 1] = "EXEC_TRY"; | ||
Exec[Exec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; | ||
})(Exec || (Exec = {})); | ||
export function execFromJSON(object) { | ||
switch (object) { | ||
case 0: | ||
case "EXEC_UNSPECIFIED": | ||
return Exec.EXEC_UNSPECIFIED; | ||
case 1: | ||
case "EXEC_TRY": | ||
return Exec.EXEC_TRY; | ||
case -1: | ||
case "UNRECOGNIZED": | ||
default: | ||
return Exec.UNRECOGNIZED; | ||
} | ||
function createBaseMember() { | ||
return { $type: "cosmos.group.v1.Member", address: "", weight: "", metadata: "", addedAt: undefined }; | ||
} | ||
export function execToJSON(object) { | ||
switch (object) { | ||
case Exec.EXEC_UNSPECIFIED: | ||
return "EXEC_UNSPECIFIED"; | ||
case Exec.EXEC_TRY: | ||
return "EXEC_TRY"; | ||
case Exec.UNRECOGNIZED: | ||
default: | ||
return "UNRECOGNIZED"; | ||
} | ||
} | ||
export const Member = { | ||
$type: "cosmos.group.v1.Member", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.address !== "") { | ||
writer.uint32(10).string(message.address); | ||
} | ||
if (message.weight !== "") { | ||
writer.uint32(18).string(message.weight); | ||
} | ||
if (message.metadata !== "") { | ||
writer.uint32(26).string(message.metadata); | ||
} | ||
if (message.addedAt !== undefined) { | ||
Timestamp.encode(toTimestamp(message.addedAt), 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 = createBaseMember(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.address = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.weight = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.metadata = reader.string(); | ||
continue; | ||
case 4: | ||
if (tag !== 34) { | ||
break; | ||
} | ||
message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: Member.$type, | ||
address: isSet(object.address) ? globalThis.String(object.address) : "", | ||
weight: isSet(object.weight) ? globalThis.String(object.weight) : "", | ||
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "", | ||
addedAt: isSet(object.addedAt) ? fromJsonTimestamp(object.addedAt) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.address !== "") { | ||
obj.address = message.address; | ||
} | ||
if (message.weight !== "") { | ||
obj.weight = message.weight; | ||
} | ||
if (message.metadata !== "") { | ||
obj.metadata = message.metadata; | ||
} | ||
if (message.addedAt !== undefined) { | ||
obj.addedAt = message.addedAt.toISOString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return Member.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseMember(); | ||
message.address = object.address ?? ""; | ||
message.weight = object.weight ?? ""; | ||
message.metadata = object.metadata ?? ""; | ||
message.addedAt = object.addedAt ?? undefined; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(Member.$type, Member); | ||
function createBaseMemberRequest() { | ||
@@ -528,2 +591,836 @@ return { $type: "cosmos.group.v1.MemberRequest", address: "", weight: "", metadata: "" }; | ||
messageTypeRegistry.set(DecisionPolicyWindows.$type, DecisionPolicyWindows); | ||
function createBaseGroupInfo() { | ||
return { | ||
$type: "cosmos.group.v1.GroupInfo", | ||
id: Long.UZERO, | ||
admin: "", | ||
metadata: "", | ||
version: Long.UZERO, | ||
totalWeight: "", | ||
createdAt: undefined, | ||
}; | ||
} | ||
export const GroupInfo = { | ||
$type: "cosmos.group.v1.GroupInfo", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
if (message.admin !== "") { | ||
writer.uint32(18).string(message.admin); | ||
} | ||
if (message.metadata !== "") { | ||
writer.uint32(26).string(message.metadata); | ||
} | ||
if (!message.version.equals(Long.UZERO)) { | ||
writer.uint32(32).uint64(message.version); | ||
} | ||
if (message.totalWeight !== "") { | ||
writer.uint32(42).string(message.totalWeight); | ||
} | ||
if (message.createdAt !== undefined) { | ||
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).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 = createBaseGroupInfo(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.admin = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.metadata = reader.string(); | ||
continue; | ||
case 4: | ||
if (tag !== 32) { | ||
break; | ||
} | ||
message.version = reader.uint64(); | ||
continue; | ||
case 5: | ||
if (tag !== 42) { | ||
break; | ||
} | ||
message.totalWeight = reader.string(); | ||
continue; | ||
case 6: | ||
if (tag !== 50) { | ||
break; | ||
} | ||
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: GroupInfo.$type, | ||
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO, | ||
admin: isSet(object.admin) ? globalThis.String(object.admin) : "", | ||
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "", | ||
version: isSet(object.version) ? Long.fromValue(object.version) : Long.UZERO, | ||
totalWeight: isSet(object.totalWeight) ? globalThis.String(object.totalWeight) : "", | ||
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
if (message.admin !== "") { | ||
obj.admin = message.admin; | ||
} | ||
if (message.metadata !== "") { | ||
obj.metadata = message.metadata; | ||
} | ||
if (!message.version.equals(Long.UZERO)) { | ||
obj.version = (message.version || Long.UZERO).toString(); | ||
} | ||
if (message.totalWeight !== "") { | ||
obj.totalWeight = message.totalWeight; | ||
} | ||
if (message.createdAt !== undefined) { | ||
obj.createdAt = message.createdAt.toISOString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return GroupInfo.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseGroupInfo(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
message.admin = object.admin ?? ""; | ||
message.metadata = object.metadata ?? ""; | ||
message.version = (object.version !== undefined && object.version !== null) | ||
? Long.fromValue(object.version) | ||
: Long.UZERO; | ||
message.totalWeight = object.totalWeight ?? ""; | ||
message.createdAt = object.createdAt ?? undefined; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(GroupInfo.$type, GroupInfo); | ||
function createBaseGroupMember() { | ||
return { $type: "cosmos.group.v1.GroupMember", groupId: Long.UZERO, member: undefined }; | ||
} | ||
export const GroupMember = { | ||
$type: "cosmos.group.v1.GroupMember", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.groupId.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.groupId); | ||
} | ||
if (message.member !== undefined) { | ||
Member.encode(message.member, 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 = createBaseGroupMember(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.groupId = reader.uint64(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.member = Member.decode(reader, reader.uint32()); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: GroupMember.$type, | ||
groupId: isSet(object.groupId) ? Long.fromValue(object.groupId) : Long.UZERO, | ||
member: isSet(object.member) ? Member.fromJSON(object.member) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.groupId.equals(Long.UZERO)) { | ||
obj.groupId = (message.groupId || Long.UZERO).toString(); | ||
} | ||
if (message.member !== undefined) { | ||
obj.member = Member.toJSON(message.member); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return GroupMember.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseGroupMember(); | ||
message.groupId = (object.groupId !== undefined && object.groupId !== null) | ||
? Long.fromValue(object.groupId) | ||
: Long.UZERO; | ||
message.member = (object.member !== undefined && object.member !== null) | ||
? Member.fromPartial(object.member) | ||
: undefined; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(GroupMember.$type, GroupMember); | ||
function createBaseGroupPolicyInfo() { | ||
return { | ||
$type: "cosmos.group.v1.GroupPolicyInfo", | ||
address: "", | ||
groupId: Long.UZERO, | ||
admin: "", | ||
metadata: "", | ||
version: Long.UZERO, | ||
decisionPolicy: undefined, | ||
createdAt: undefined, | ||
}; | ||
} | ||
export const GroupPolicyInfo = { | ||
$type: "cosmos.group.v1.GroupPolicyInfo", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.address !== "") { | ||
writer.uint32(10).string(message.address); | ||
} | ||
if (!message.groupId.equals(Long.UZERO)) { | ||
writer.uint32(16).uint64(message.groupId); | ||
} | ||
if (message.admin !== "") { | ||
writer.uint32(26).string(message.admin); | ||
} | ||
if (message.metadata !== "") { | ||
writer.uint32(34).string(message.metadata); | ||
} | ||
if (!message.version.equals(Long.UZERO)) { | ||
writer.uint32(40).uint64(message.version); | ||
} | ||
if (message.decisionPolicy !== undefined) { | ||
Any.encode(message.decisionPolicy, writer.uint32(50).fork()).ldelim(); | ||
} | ||
if (message.createdAt !== undefined) { | ||
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).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 = createBaseGroupPolicyInfo(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.address = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 16) { | ||
break; | ||
} | ||
message.groupId = reader.uint64(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.admin = reader.string(); | ||
continue; | ||
case 4: | ||
if (tag !== 34) { | ||
break; | ||
} | ||
message.metadata = reader.string(); | ||
continue; | ||
case 5: | ||
if (tag !== 40) { | ||
break; | ||
} | ||
message.version = reader.uint64(); | ||
continue; | ||
case 6: | ||
if (tag !== 50) { | ||
break; | ||
} | ||
message.decisionPolicy = Any.decode(reader, reader.uint32()); | ||
continue; | ||
case 7: | ||
if (tag !== 58) { | ||
break; | ||
} | ||
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: GroupPolicyInfo.$type, | ||
address: isSet(object.address) ? globalThis.String(object.address) : "", | ||
groupId: isSet(object.groupId) ? Long.fromValue(object.groupId) : Long.UZERO, | ||
admin: isSet(object.admin) ? globalThis.String(object.admin) : "", | ||
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "", | ||
version: isSet(object.version) ? Long.fromValue(object.version) : Long.UZERO, | ||
decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined, | ||
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.address !== "") { | ||
obj.address = message.address; | ||
} | ||
if (!message.groupId.equals(Long.UZERO)) { | ||
obj.groupId = (message.groupId || Long.UZERO).toString(); | ||
} | ||
if (message.admin !== "") { | ||
obj.admin = message.admin; | ||
} | ||
if (message.metadata !== "") { | ||
obj.metadata = message.metadata; | ||
} | ||
if (!message.version.equals(Long.UZERO)) { | ||
obj.version = (message.version || Long.UZERO).toString(); | ||
} | ||
if (message.decisionPolicy !== undefined) { | ||
obj.decisionPolicy = Any.toJSON(message.decisionPolicy); | ||
} | ||
if (message.createdAt !== undefined) { | ||
obj.createdAt = message.createdAt.toISOString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return GroupPolicyInfo.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseGroupPolicyInfo(); | ||
message.address = object.address ?? ""; | ||
message.groupId = (object.groupId !== undefined && object.groupId !== null) | ||
? Long.fromValue(object.groupId) | ||
: Long.UZERO; | ||
message.admin = object.admin ?? ""; | ||
message.metadata = object.metadata ?? ""; | ||
message.version = (object.version !== undefined && object.version !== null) | ||
? Long.fromValue(object.version) | ||
: Long.UZERO; | ||
message.decisionPolicy = (object.decisionPolicy !== undefined && object.decisionPolicy !== null) | ||
? Any.fromPartial(object.decisionPolicy) | ||
: undefined; | ||
message.createdAt = object.createdAt ?? undefined; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(GroupPolicyInfo.$type, GroupPolicyInfo); | ||
function createBaseProposal() { | ||
return { | ||
$type: "cosmos.group.v1.Proposal", | ||
id: Long.UZERO, | ||
groupPolicyAddress: "", | ||
metadata: "", | ||
proposers: [], | ||
submitTime: undefined, | ||
groupVersion: Long.UZERO, | ||
groupPolicyVersion: Long.UZERO, | ||
status: 0, | ||
finalTallyResult: undefined, | ||
votingPeriodEnd: undefined, | ||
executorResult: 0, | ||
messages: [], | ||
}; | ||
} | ||
export const Proposal = { | ||
$type: "cosmos.group.v1.Proposal", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.id.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.id); | ||
} | ||
if (message.groupPolicyAddress !== "") { | ||
writer.uint32(18).string(message.groupPolicyAddress); | ||
} | ||
if (message.metadata !== "") { | ||
writer.uint32(26).string(message.metadata); | ||
} | ||
for (const v of message.proposers) { | ||
writer.uint32(34).string(v); | ||
} | ||
if (message.submitTime !== undefined) { | ||
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim(); | ||
} | ||
if (!message.groupVersion.equals(Long.UZERO)) { | ||
writer.uint32(48).uint64(message.groupVersion); | ||
} | ||
if (!message.groupPolicyVersion.equals(Long.UZERO)) { | ||
writer.uint32(56).uint64(message.groupPolicyVersion); | ||
} | ||
if (message.status !== 0) { | ||
writer.uint32(64).int32(message.status); | ||
} | ||
if (message.finalTallyResult !== undefined) { | ||
TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim(); | ||
} | ||
if (message.votingPeriodEnd !== undefined) { | ||
Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim(); | ||
} | ||
if (message.executorResult !== 0) { | ||
writer.uint32(88).int32(message.executorResult); | ||
} | ||
for (const v of message.messages) { | ||
Any.encode(v, writer.uint32(98).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 = createBaseProposal(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.id = reader.uint64(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.groupPolicyAddress = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.metadata = reader.string(); | ||
continue; | ||
case 4: | ||
if (tag !== 34) { | ||
break; | ||
} | ||
message.proposers.push(reader.string()); | ||
continue; | ||
case 5: | ||
if (tag !== 42) { | ||
break; | ||
} | ||
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); | ||
continue; | ||
case 6: | ||
if (tag !== 48) { | ||
break; | ||
} | ||
message.groupVersion = reader.uint64(); | ||
continue; | ||
case 7: | ||
if (tag !== 56) { | ||
break; | ||
} | ||
message.groupPolicyVersion = reader.uint64(); | ||
continue; | ||
case 8: | ||
if (tag !== 64) { | ||
break; | ||
} | ||
message.status = reader.int32(); | ||
continue; | ||
case 9: | ||
if (tag !== 74) { | ||
break; | ||
} | ||
message.finalTallyResult = TallyResult.decode(reader, reader.uint32()); | ||
continue; | ||
case 10: | ||
if (tag !== 82) { | ||
break; | ||
} | ||
message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32())); | ||
continue; | ||
case 11: | ||
if (tag !== 88) { | ||
break; | ||
} | ||
message.executorResult = reader.int32(); | ||
continue; | ||
case 12: | ||
if (tag !== 98) { | ||
break; | ||
} | ||
message.messages.push(Any.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: Proposal.$type, | ||
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO, | ||
groupPolicyAddress: isSet(object.groupPolicyAddress) ? globalThis.String(object.groupPolicyAddress) : "", | ||
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "", | ||
proposers: globalThis.Array.isArray(object?.proposers) | ||
? object.proposers.map((e) => globalThis.String(e)) | ||
: [], | ||
submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined, | ||
groupVersion: isSet(object.groupVersion) ? Long.fromValue(object.groupVersion) : Long.UZERO, | ||
groupPolicyVersion: isSet(object.groupPolicyVersion) ? Long.fromValue(object.groupPolicyVersion) : Long.UZERO, | ||
status: isSet(object.status) ? proposalStatusFromJSON(object.status) : 0, | ||
finalTallyResult: isSet(object.finalTallyResult) ? TallyResult.fromJSON(object.finalTallyResult) : undefined, | ||
votingPeriodEnd: isSet(object.votingPeriodEnd) ? fromJsonTimestamp(object.votingPeriodEnd) : undefined, | ||
executorResult: isSet(object.executorResult) ? proposalExecutorResultFromJSON(object.executorResult) : 0, | ||
messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => Any.fromJSON(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.id.equals(Long.UZERO)) { | ||
obj.id = (message.id || Long.UZERO).toString(); | ||
} | ||
if (message.groupPolicyAddress !== "") { | ||
obj.groupPolicyAddress = message.groupPolicyAddress; | ||
} | ||
if (message.metadata !== "") { | ||
obj.metadata = message.metadata; | ||
} | ||
if (message.proposers?.length) { | ||
obj.proposers = message.proposers; | ||
} | ||
if (message.submitTime !== undefined) { | ||
obj.submitTime = message.submitTime.toISOString(); | ||
} | ||
if (!message.groupVersion.equals(Long.UZERO)) { | ||
obj.groupVersion = (message.groupVersion || Long.UZERO).toString(); | ||
} | ||
if (!message.groupPolicyVersion.equals(Long.UZERO)) { | ||
obj.groupPolicyVersion = (message.groupPolicyVersion || Long.UZERO).toString(); | ||
} | ||
if (message.status !== 0) { | ||
obj.status = proposalStatusToJSON(message.status); | ||
} | ||
if (message.finalTallyResult !== undefined) { | ||
obj.finalTallyResult = TallyResult.toJSON(message.finalTallyResult); | ||
} | ||
if (message.votingPeriodEnd !== undefined) { | ||
obj.votingPeriodEnd = message.votingPeriodEnd.toISOString(); | ||
} | ||
if (message.executorResult !== 0) { | ||
obj.executorResult = proposalExecutorResultToJSON(message.executorResult); | ||
} | ||
if (message.messages?.length) { | ||
obj.messages = message.messages.map((e) => Any.toJSON(e)); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return Proposal.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseProposal(); | ||
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO; | ||
message.groupPolicyAddress = object.groupPolicyAddress ?? ""; | ||
message.metadata = object.metadata ?? ""; | ||
message.proposers = object.proposers?.map((e) => e) || []; | ||
message.submitTime = object.submitTime ?? undefined; | ||
message.groupVersion = (object.groupVersion !== undefined && object.groupVersion !== null) | ||
? Long.fromValue(object.groupVersion) | ||
: Long.UZERO; | ||
message.groupPolicyVersion = (object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null) | ||
? Long.fromValue(object.groupPolicyVersion) | ||
: Long.UZERO; | ||
message.status = object.status ?? 0; | ||
message.finalTallyResult = (object.finalTallyResult !== undefined && object.finalTallyResult !== null) | ||
? TallyResult.fromPartial(object.finalTallyResult) | ||
: undefined; | ||
message.votingPeriodEnd = object.votingPeriodEnd ?? undefined; | ||
message.executorResult = object.executorResult ?? 0; | ||
message.messages = object.messages?.map((e) => Any.fromPartial(e)) || []; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(Proposal.$type, Proposal); | ||
function createBaseTallyResult() { | ||
return { $type: "cosmos.group.v1.TallyResult", yesCount: "", abstainCount: "", noCount: "", noWithVetoCount: "" }; | ||
} | ||
export const TallyResult = { | ||
$type: "cosmos.group.v1.TallyResult", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.yesCount !== "") { | ||
writer.uint32(10).string(message.yesCount); | ||
} | ||
if (message.abstainCount !== "") { | ||
writer.uint32(18).string(message.abstainCount); | ||
} | ||
if (message.noCount !== "") { | ||
writer.uint32(26).string(message.noCount); | ||
} | ||
if (message.noWithVetoCount !== "") { | ||
writer.uint32(34).string(message.noWithVetoCount); | ||
} | ||
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 = createBaseTallyResult(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 10) { | ||
break; | ||
} | ||
message.yesCount = reader.string(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.abstainCount = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 26) { | ||
break; | ||
} | ||
message.noCount = reader.string(); | ||
continue; | ||
case 4: | ||
if (tag !== 34) { | ||
break; | ||
} | ||
message.noWithVetoCount = reader.string(); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: TallyResult.$type, | ||
yesCount: isSet(object.yesCount) ? globalThis.String(object.yesCount) : "", | ||
abstainCount: isSet(object.abstainCount) ? globalThis.String(object.abstainCount) : "", | ||
noCount: isSet(object.noCount) ? globalThis.String(object.noCount) : "", | ||
noWithVetoCount: isSet(object.noWithVetoCount) ? globalThis.String(object.noWithVetoCount) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.yesCount !== "") { | ||
obj.yesCount = message.yesCount; | ||
} | ||
if (message.abstainCount !== "") { | ||
obj.abstainCount = message.abstainCount; | ||
} | ||
if (message.noCount !== "") { | ||
obj.noCount = message.noCount; | ||
} | ||
if (message.noWithVetoCount !== "") { | ||
obj.noWithVetoCount = message.noWithVetoCount; | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return TallyResult.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseTallyResult(); | ||
message.yesCount = object.yesCount ?? ""; | ||
message.abstainCount = object.abstainCount ?? ""; | ||
message.noCount = object.noCount ?? ""; | ||
message.noWithVetoCount = object.noWithVetoCount ?? ""; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(TallyResult.$type, TallyResult); | ||
function createBaseVote() { | ||
return { | ||
$type: "cosmos.group.v1.Vote", | ||
proposalId: Long.UZERO, | ||
voter: "", | ||
option: 0, | ||
metadata: "", | ||
submitTime: undefined, | ||
}; | ||
} | ||
export const Vote = { | ||
$type: "cosmos.group.v1.Vote", | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.proposalId.equals(Long.UZERO)) { | ||
writer.uint32(8).uint64(message.proposalId); | ||
} | ||
if (message.voter !== "") { | ||
writer.uint32(18).string(message.voter); | ||
} | ||
if (message.option !== 0) { | ||
writer.uint32(24).int32(message.option); | ||
} | ||
if (message.metadata !== "") { | ||
writer.uint32(34).string(message.metadata); | ||
} | ||
if (message.submitTime !== undefined) { | ||
Timestamp.encode(toTimestamp(message.submitTime), 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 = createBaseVote(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
if (tag !== 8) { | ||
break; | ||
} | ||
message.proposalId = reader.uint64(); | ||
continue; | ||
case 2: | ||
if (tag !== 18) { | ||
break; | ||
} | ||
message.voter = reader.string(); | ||
continue; | ||
case 3: | ||
if (tag !== 24) { | ||
break; | ||
} | ||
message.option = reader.int32(); | ||
continue; | ||
case 4: | ||
if (tag !== 34) { | ||
break; | ||
} | ||
message.metadata = reader.string(); | ||
continue; | ||
case 5: | ||
if (tag !== 42) { | ||
break; | ||
} | ||
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32())); | ||
continue; | ||
} | ||
if ((tag & 7) === 4 || tag === 0) { | ||
break; | ||
} | ||
reader.skipType(tag & 7); | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
$type: Vote.$type, | ||
proposalId: isSet(object.proposalId) ? Long.fromValue(object.proposalId) : Long.UZERO, | ||
voter: isSet(object.voter) ? globalThis.String(object.voter) : "", | ||
option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0, | ||
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "", | ||
submitTime: isSet(object.submitTime) ? fromJsonTimestamp(object.submitTime) : undefined, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (!message.proposalId.equals(Long.UZERO)) { | ||
obj.proposalId = (message.proposalId || Long.UZERO).toString(); | ||
} | ||
if (message.voter !== "") { | ||
obj.voter = message.voter; | ||
} | ||
if (message.option !== 0) { | ||
obj.option = voteOptionToJSON(message.option); | ||
} | ||
if (message.metadata !== "") { | ||
obj.metadata = message.metadata; | ||
} | ||
if (message.submitTime !== undefined) { | ||
obj.submitTime = message.submitTime.toISOString(); | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return Vote.fromPartial(base ?? {}); | ||
}, | ||
fromPartial(object) { | ||
const message = createBaseVote(); | ||
message.proposalId = (object.proposalId !== undefined && object.proposalId !== null) | ||
? Long.fromValue(object.proposalId) | ||
: Long.UZERO; | ||
message.voter = object.voter ?? ""; | ||
message.option = object.option ?? 0; | ||
message.metadata = object.metadata ?? ""; | ||
message.submitTime = object.submitTime ?? undefined; | ||
return message; | ||
}, | ||
}; | ||
messageTypeRegistry.set(Vote.$type, Vote); | ||
function toTimestamp(date) { | ||
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000)); | ||
const nanos = (date.getTime() % 1_000) * 1_000_000; | ||
return { $type: "google.protobuf.Timestamp", seconds, nanos }; | ||
} | ||
function fromTimestamp(t) { | ||
let millis = (t.seconds.toNumber() || 0) * 1_000; | ||
millis += (t.nanos || 0) / 1_000_000; | ||
return new globalThis.Date(millis); | ||
} | ||
function fromJsonTimestamp(o) { | ||
if (o instanceof globalThis.Date) { | ||
return o; | ||
} | ||
else if (typeof o === "string") { | ||
return new globalThis.Date(o); | ||
} | ||
else { | ||
return fromTimestamp(Timestamp.fromJSON(o)); | ||
} | ||
} | ||
function numberToLong(number) { | ||
return Long.fromNumber(number); | ||
} | ||
if (_m0.util.Long !== Long) { | ||
@@ -530,0 +1427,0 @@ _m0.util.Long = Long; |
@@ -0,2 +1,7 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: cosmos/msg/v1/msg.proto | ||
/* eslint-disable */ | ||
export const protobufPackage = "cosmos.msg.v1"; |
@@ -0,2 +1,7 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: gogoproto/gogo.proto | ||
/* eslint-disable */ | ||
export const protobufPackage = "gogoproto"; |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: google/protobuf/any.proto | ||
/* eslint-disable */ | ||
@@ -2,0 +7,0 @@ import Long from "long"; |
@@ -16,5 +16,5 @@ import Long from "long"; | ||
/** file name, relative to root of source tree */ | ||
name: string; | ||
name?: string | undefined; | ||
/** e.g. "foo", "foo.bar", etc. */ | ||
package: string; | ||
package?: string | undefined; | ||
/** Names of files imported by this file. */ | ||
@@ -46,3 +46,3 @@ dependency: string[]; | ||
*/ | ||
syntax: string; | ||
syntax?: string | undefined; | ||
} | ||
@@ -52,3 +52,3 @@ /** Describes a message type. */ | ||
$type: "google.protobuf.DescriptorProto"; | ||
name: string; | ||
name?: string | undefined; | ||
field: FieldDescriptorProto[]; | ||
@@ -71,5 +71,5 @@ extension: FieldDescriptorProto[]; | ||
/** Inclusive. */ | ||
start: number; | ||
start?: number | undefined; | ||
/** Exclusive. */ | ||
end: number; | ||
end?: number | undefined; | ||
options?: ExtensionRangeOptions | undefined; | ||
@@ -85,5 +85,5 @@ } | ||
/** Inclusive. */ | ||
start: number; | ||
start?: number | undefined; | ||
/** Exclusive. */ | ||
end: number; | ||
end?: number | undefined; | ||
} | ||
@@ -98,5 +98,5 @@ export interface ExtensionRangeOptions { | ||
$type: "google.protobuf.FieldDescriptorProto"; | ||
name: string; | ||
number: number; | ||
label: FieldDescriptorProto_Label; | ||
name?: string | undefined; | ||
number?: number | undefined; | ||
label?: FieldDescriptorProto_Label | undefined; | ||
/** | ||
@@ -106,3 +106,3 @@ * If type_name is set, this need not be set. If both this and type_name | ||
*/ | ||
type: FieldDescriptorProto_Type; | ||
type?: FieldDescriptorProto_Type | undefined; | ||
/** | ||
@@ -115,3 +115,3 @@ * For message and enum types, this is the name of the type. If the name | ||
*/ | ||
typeName: string; | ||
typeName?: string | undefined; | ||
/** | ||
@@ -121,3 +121,3 @@ * For extensions, this is the name of the type being extended. It is | ||
*/ | ||
extendee: string; | ||
extendee?: string | undefined; | ||
/** | ||
@@ -129,3 +129,3 @@ * For numeric types, contains the original text representation of the value. | ||
*/ | ||
defaultValue: string; | ||
defaultValue?: string | undefined; | ||
/** | ||
@@ -135,3 +135,3 @@ * If set, gives the index of a oneof in the containing type's oneof_decl | ||
*/ | ||
oneofIndex: number; | ||
oneofIndex?: number | undefined; | ||
/** | ||
@@ -143,3 +143,3 @@ * JSON name of this field. The value is set by protocol compiler. If the | ||
*/ | ||
jsonName: string; | ||
jsonName?: string | undefined; | ||
options?: FieldOptions | undefined; | ||
@@ -169,3 +169,3 @@ /** | ||
*/ | ||
proto3Optional: boolean; | ||
proto3Optional?: boolean | undefined; | ||
} | ||
@@ -229,3 +229,3 @@ export declare enum FieldDescriptorProto_Type { | ||
$type: "google.protobuf.OneofDescriptorProto"; | ||
name: string; | ||
name?: string | undefined; | ||
options?: OneofOptions | undefined; | ||
@@ -236,3 +236,3 @@ } | ||
$type: "google.protobuf.EnumDescriptorProto"; | ||
name: string; | ||
name?: string | undefined; | ||
value: EnumValueDescriptorProto[]; | ||
@@ -263,5 +263,5 @@ options?: EnumOptions | undefined; | ||
/** Inclusive. */ | ||
start: number; | ||
start?: number | undefined; | ||
/** Inclusive. */ | ||
end: number; | ||
end?: number | undefined; | ||
} | ||
@@ -271,4 +271,4 @@ /** Describes a value within an enum. */ | ||
$type: "google.protobuf.EnumValueDescriptorProto"; | ||
name: string; | ||
number: number; | ||
name?: string | undefined; | ||
number?: number | undefined; | ||
options?: EnumValueOptions | undefined; | ||
@@ -279,3 +279,3 @@ } | ||
$type: "google.protobuf.ServiceDescriptorProto"; | ||
name: string; | ||
name?: string | undefined; | ||
method: MethodDescriptorProto[]; | ||
@@ -287,3 +287,3 @@ options?: ServiceOptions | undefined; | ||
$type: "google.protobuf.MethodDescriptorProto"; | ||
name: string; | ||
name?: string | undefined; | ||
/** | ||
@@ -293,9 +293,9 @@ * Input and output type names. These are resolved in the same way as | ||
*/ | ||
inputType: string; | ||
outputType: string; | ||
inputType?: string | undefined; | ||
outputType?: string | undefined; | ||
options?: MethodOptions | undefined; | ||
/** Identifies if client streams multiple client messages */ | ||
clientStreaming: boolean; | ||
clientStreaming?: boolean | undefined; | ||
/** Identifies if server streams multiple server messages */ | ||
serverStreaming: boolean; | ||
serverStreaming?: boolean | undefined; | ||
} | ||
@@ -310,3 +310,3 @@ export interface FileOptions { | ||
*/ | ||
javaPackage: string; | ||
javaPackage?: string | undefined; | ||
/** | ||
@@ -319,3 +319,3 @@ * Controls the name of the wrapper Java class generated for the .proto file. | ||
*/ | ||
javaOuterClassname: string; | ||
javaOuterClassname?: string | undefined; | ||
/** | ||
@@ -329,3 +329,3 @@ * If enabled, then the Java code generator will generate a separate .java | ||
*/ | ||
javaMultipleFiles: boolean; | ||
javaMultipleFiles?: boolean | undefined; | ||
/** | ||
@@ -336,3 +336,3 @@ * This option does nothing. | ||
*/ | ||
javaGenerateEqualsAndHash: boolean; | ||
javaGenerateEqualsAndHash?: boolean | undefined; | ||
/** | ||
@@ -346,4 +346,4 @@ * If set true, then the Java2 code generator will generate code that | ||
*/ | ||
javaStringCheckUtf8: boolean; | ||
optimizeFor: FileOptions_OptimizeMode; | ||
javaStringCheckUtf8?: boolean | undefined; | ||
optimizeFor?: FileOptions_OptimizeMode | undefined; | ||
/** | ||
@@ -356,3 +356,3 @@ * Sets the Go package where structs generated from this .proto will be | ||
*/ | ||
goPackage: string; | ||
goPackage?: string | undefined; | ||
/** | ||
@@ -370,6 +370,6 @@ * Should generic services be generated in each language? "Generic" services | ||
*/ | ||
ccGenericServices: boolean; | ||
javaGenericServices: boolean; | ||
pyGenericServices: boolean; | ||
phpGenericServices: boolean; | ||
ccGenericServices?: boolean | undefined; | ||
javaGenericServices?: boolean | undefined; | ||
pyGenericServices?: boolean | undefined; | ||
phpGenericServices?: boolean | undefined; | ||
/** | ||
@@ -381,3 +381,3 @@ * Is this file deprecated? | ||
*/ | ||
deprecated: boolean; | ||
deprecated?: boolean | undefined; | ||
/** | ||
@@ -387,3 +387,3 @@ * Enables the use of arenas for the proto messages in this file. This applies | ||
*/ | ||
ccEnableArenas: boolean; | ||
ccEnableArenas?: boolean | undefined; | ||
/** | ||
@@ -393,5 +393,5 @@ * Sets the objective c class prefix which is prepended to all objective c | ||
*/ | ||
objcClassPrefix: string; | ||
objcClassPrefix?: string | undefined; | ||
/** Namespace for generated classes; defaults to the package. */ | ||
csharpNamespace: string; | ||
csharpNamespace?: string | undefined; | ||
/** | ||
@@ -403,3 +403,3 @@ * By default Swift generators will take the proto package and CamelCase it | ||
*/ | ||
swiftPrefix: string; | ||
swiftPrefix?: string | undefined; | ||
/** | ||
@@ -409,3 +409,3 @@ * Sets the php class prefix which is prepended to all php generated classes | ||
*/ | ||
phpClassPrefix: string; | ||
phpClassPrefix?: string | undefined; | ||
/** | ||
@@ -416,3 +416,3 @@ * Use this option to change the namespace of php generated classes. Default | ||
*/ | ||
phpNamespace: string; | ||
phpNamespace?: string | undefined; | ||
/** | ||
@@ -423,3 +423,3 @@ * Use this option to change the namespace of php generated metadata classes. | ||
*/ | ||
phpMetadataNamespace: string; | ||
phpMetadataNamespace?: string | undefined; | ||
/** | ||
@@ -430,3 +430,3 @@ * Use this option to change the package of ruby generated classes. Default | ||
*/ | ||
rubyPackage: string; | ||
rubyPackage?: string | undefined; | ||
/** | ||
@@ -472,3 +472,3 @@ * The parser stores options it doesn't recognize here. | ||
*/ | ||
messageSetWireFormat: boolean; | ||
messageSetWireFormat?: boolean | undefined; | ||
/** | ||
@@ -479,3 +479,3 @@ * Disables the generation of the standard "descriptor()" accessor, which can | ||
*/ | ||
noStandardDescriptorAccessor: boolean; | ||
noStandardDescriptorAccessor?: boolean | undefined; | ||
/** | ||
@@ -487,3 +487,3 @@ * Is this message deprecated? | ||
*/ | ||
deprecated: boolean; | ||
deprecated?: boolean | undefined; | ||
/** | ||
@@ -512,3 +512,3 @@ * Whether the message is an automatically generated map entry type for the | ||
*/ | ||
mapEntry: boolean; | ||
mapEntry?: boolean | undefined; | ||
/** The parser stores options it doesn't recognize here. See above. */ | ||
@@ -525,3 +525,3 @@ uninterpretedOption: UninterpretedOption[]; | ||
*/ | ||
ctype: FieldOptions_CType; | ||
ctype?: FieldOptions_CType | undefined; | ||
/** | ||
@@ -534,3 +534,3 @@ * The packed option can be enabled for repeated primitive fields to enable | ||
*/ | ||
packed: boolean; | ||
packed?: boolean | undefined; | ||
/** | ||
@@ -549,3 +549,3 @@ * The jstype option determines the JavaScript type used for values of the | ||
*/ | ||
jstype: FieldOptions_JSType; | ||
jstype?: FieldOptions_JSType | undefined; | ||
/** | ||
@@ -586,3 +586,3 @@ * Should this field be parsed lazily? Lazy applies only to message-type | ||
*/ | ||
lazy: boolean; | ||
lazy?: boolean | undefined; | ||
/** | ||
@@ -593,3 +593,3 @@ * unverified_lazy does no correctness checks on the byte stream. This should | ||
*/ | ||
unverifiedLazy: boolean; | ||
unverifiedLazy?: boolean | undefined; | ||
/** | ||
@@ -601,5 +601,5 @@ * Is this field deprecated? | ||
*/ | ||
deprecated: boolean; | ||
deprecated?: boolean | undefined; | ||
/** For Google-internal migration only. Do not use. */ | ||
weak: boolean; | ||
weak?: boolean | undefined; | ||
/** The parser stores options it doesn't recognize here. See above. */ | ||
@@ -639,3 +639,3 @@ uninterpretedOption: UninterpretedOption[]; | ||
*/ | ||
allowAlias: boolean; | ||
allowAlias?: boolean | undefined; | ||
/** | ||
@@ -647,3 +647,3 @@ * Is this enum deprecated? | ||
*/ | ||
deprecated: boolean; | ||
deprecated?: boolean | undefined; | ||
/** The parser stores options it doesn't recognize here. See above. */ | ||
@@ -660,3 +660,3 @@ uninterpretedOption: UninterpretedOption[]; | ||
*/ | ||
deprecated: boolean; | ||
deprecated?: boolean | undefined; | ||
/** The parser stores options it doesn't recognize here. See above. */ | ||
@@ -673,3 +673,3 @@ uninterpretedOption: UninterpretedOption[]; | ||
*/ | ||
deprecated: boolean; | ||
deprecated?: boolean | undefined; | ||
/** The parser stores options it doesn't recognize here. See above. */ | ||
@@ -686,4 +686,4 @@ uninterpretedOption: UninterpretedOption[]; | ||
*/ | ||
deprecated: boolean; | ||
idempotencyLevel: MethodOptions_IdempotencyLevel; | ||
deprecated?: boolean | undefined; | ||
idempotencyLevel?: MethodOptions_IdempotencyLevel | undefined; | ||
/** The parser stores options it doesn't recognize here. See above. */ | ||
@@ -722,8 +722,8 @@ uninterpretedOption: UninterpretedOption[]; | ||
*/ | ||
identifierValue: string; | ||
positiveIntValue: Long; | ||
negativeIntValue: Long; | ||
doubleValue: number; | ||
stringValue: Uint8Array; | ||
aggregateValue: string; | ||
identifierValue?: string | undefined; | ||
positiveIntValue?: Long | undefined; | ||
negativeIntValue?: Long | undefined; | ||
doubleValue?: number | undefined; | ||
stringValue?: Uint8Array | undefined; | ||
aggregateValue?: string | undefined; | ||
} | ||
@@ -880,4 +880,4 @@ /** | ||
*/ | ||
leadingComments: string; | ||
trailingComments: string; | ||
leadingComments?: string | undefined; | ||
trailingComments?: string | undefined; | ||
leadingDetachedComments: string[]; | ||
@@ -906,3 +906,3 @@ } | ||
/** Identifies the filesystem path to the original source .proto. */ | ||
sourceFile: string; | ||
sourceFile?: string | undefined; | ||
/** | ||
@@ -912,3 +912,3 @@ * Identifies the starting offset in bytes in the generated code | ||
*/ | ||
begin: number; | ||
begin?: number | undefined; | ||
/** | ||
@@ -919,3 +919,3 @@ * Identifies the ending offset in bytes in the generated code that | ||
*/ | ||
end: number; | ||
end?: number | undefined; | ||
} | ||
@@ -922,0 +922,0 @@ export declare const FileDescriptorSet: { |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: google/protobuf/duration.proto | ||
/* eslint-disable */ | ||
@@ -12,3 +17,3 @@ import Long from "long"; | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.seconds.isZero()) { | ||
if (!message.seconds.equals(Long.ZERO)) { | ||
writer.uint32(8).int64(message.seconds); | ||
@@ -57,3 +62,3 @@ } | ||
const obj = {}; | ||
if (!message.seconds.isZero()) { | ||
if (!message.seconds.equals(Long.ZERO)) { | ||
obj.seconds = (message.seconds || Long.ZERO).toString(); | ||
@@ -60,0 +65,0 @@ } |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: google/protobuf/timestamp.proto | ||
/* eslint-disable */ | ||
@@ -12,3 +17,3 @@ import Long from "long"; | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (!message.seconds.isZero()) { | ||
if (!message.seconds.equals(Long.ZERO)) { | ||
writer.uint32(8).int64(message.seconds); | ||
@@ -57,3 +62,3 @@ } | ||
const obj = {}; | ||
if (!message.seconds.isZero()) { | ||
if (!message.seconds.equals(Long.ZERO)) { | ||
obj.seconds = (message.seconds || Long.ZERO).toString(); | ||
@@ -60,0 +65,0 @@ } |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: regen/data/v1/tx.proto | ||
/* eslint-disable */ | ||
@@ -227,3 +232,3 @@ import Long from "long"; | ||
} | ||
if (!message.resolverId.isZero()) { | ||
if (!message.resolverId.equals(Long.UZERO)) { | ||
writer.uint32(16).uint64(message.resolverId); | ||
@@ -284,3 +289,3 @@ } | ||
} | ||
if (!message.resolverId.isZero()) { | ||
if (!message.resolverId.equals(Long.UZERO)) { | ||
obj.resolverId = (message.resolverId || Long.UZERO).toString(); | ||
@@ -287,0 +292,0 @@ } |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: regen/data/v1/types.proto | ||
/* eslint-disable */ | ||
@@ -2,0 +7,0 @@ import Long from "long"; |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: regen/ecocredit/v1/state.proto | ||
/* eslint-disable */ | ||
@@ -2,0 +7,0 @@ import Long from "long"; |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: regen/ecocredit/v1/types.proto | ||
/* eslint-disable */ | ||
@@ -31,3 +36,3 @@ import Long from "long"; | ||
} | ||
if (message.allowlistEnabled === true) { | ||
if (message.allowlistEnabled !== false) { | ||
writer.uint32(32).bool(message.allowlistEnabled); | ||
@@ -124,3 +129,3 @@ } | ||
} | ||
if (message.allowlistEnabled === true) { | ||
if (message.allowlistEnabled !== false) { | ||
obj.allowlistEnabled = message.allowlistEnabled; | ||
@@ -127,0 +132,0 @@ } |
@@ -0,1 +1,6 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
// source: regen/intertx/v1/tx.proto | ||
/* eslint-disable */ | ||
@@ -2,0 +7,0 @@ import Long from "long"; |
@@ -0,1 +1,5 @@ | ||
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. | ||
// versions: | ||
// protoc-gen-ts_proto v1.174.0 | ||
// protoc v3.21.7 | ||
export const messageTypeRegistry = new Map(); |
@@ -42,12 +42,10 @@ export declare const bionLocal: { | ||
export declare const bionLocalX: { | ||
coopId: string; | ||
faucet: string; | ||
server: string; | ||
modules: { | ||
moduleName: string; | ||
apiPackage: string; | ||
documentation: string; | ||
gitRepository: string; | ||
gitVersion: string; | ||
gitVersionLink: string; | ||
}[]; | ||
}; |
@@ -19,6 +19,6 @@ export const bionLocal = { | ||
{ | ||
coinDenom: 'STAKE', | ||
coinMinimalDenom: 'stake', | ||
coinDenom: 'BION', | ||
coinMinimalDenom: 'ubion', | ||
coinDecimals: 6, | ||
coinGeckoId: 'stake', | ||
coinGeckoId: 'bion', | ||
}, | ||
@@ -28,6 +28,6 @@ ], | ||
{ | ||
coinDenom: 'STAKE', | ||
coinMinimalDenom: 'stake', | ||
coinDenom: 'BION', | ||
coinMinimalDenom: 'ubion', | ||
coinDecimals: 6, | ||
coinGeckoId: 'stake', | ||
coinGeckoId: 'bion', | ||
gasPriceStep: { | ||
@@ -41,10 +41,9 @@ low: 0.01, | ||
stakeCurrency: { | ||
coinDenom: 'STAKE', | ||
coinMinimalDenom: 'stake', | ||
coinDenom: 'BION', | ||
coinMinimalDenom: 'ubion', | ||
coinDecimals: 6, | ||
coinGeckoId: 'stake', | ||
coinGeckoId: 'bion', | ||
}, | ||
}; | ||
export const bionLocalX = { | ||
coopId: '1', | ||
faucet: 'http://127.0.0.1:8000', | ||
@@ -54,16 +53,8 @@ server: 'http://127.0.0.1:3000', | ||
{ | ||
moduleName: 'group', | ||
documentation: 'https://docs.cosmos.network/main/modules/group', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'validator', | ||
apiPackage: 'chora.validator.v1', | ||
documentation: 'https://docs.chora.io/specs/validator', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'v0.0.0', | ||
gitVersionLink: 'https://github.com/chora-io/mods/main', | ||
gitVersion: 'validator/v0.0.0', | ||
}, | ||
], | ||
}; |
@@ -42,12 +42,10 @@ export declare const choraLocal: { | ||
export declare const choraLocalX: { | ||
coopId: string; | ||
faucet: string; | ||
server: string; | ||
modules: { | ||
moduleName: string; | ||
apiPackage: string; | ||
documentation: string; | ||
gitRepository: string; | ||
gitVersion: string; | ||
gitVersionLink: string; | ||
}[]; | ||
}; |
@@ -46,3 +46,2 @@ export const choraLocal = { | ||
export const choraLocalX = { | ||
coopId: '1', | ||
faucet: 'http://127.0.0.1:8000', | ||
@@ -52,58 +51,122 @@ server: 'http://127.0.0.1:3000', | ||
{ | ||
moduleName: 'authz', | ||
documentation: 'https://docs.cosmos.network/main/modules/authz', | ||
apiPackage: 'chora.content.v1', | ||
documentation: 'https://docs.chora.io/specs/content', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'content/v0.0.0', | ||
}, | ||
{ | ||
apiPackage: 'chora.geonode.v1', | ||
documentation: 'https://docs.chora.io/specs/geonode', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'geonode/v0.0.0', | ||
}, | ||
{ | ||
apiPackage: 'chora.voucher.v1', | ||
documentation: 'https://docs.chora.io/specs/voucher', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'voucher/v0.0.0', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.auth.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/auth', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'bank', | ||
documentation: 'https://docs.cosmos.network/main/modules/bank', | ||
apiPackage: 'cosmos.authz.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/authz', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'data', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.bank.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/bank', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'feegrant', | ||
documentation: 'https://docs.cosmos.network/main/modules/feegrant', | ||
apiPackage: 'cosmos.crisis.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/crisis', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'geonode', | ||
documentation: 'https://docs.chora.io/specs/geonode', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'v0.0.0', | ||
gitVersionLink: 'https://github.com/chora-io/mods/tree/main', | ||
apiPackage: 'cosmos.distribution.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/distribution', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'group', | ||
documentation: 'https://docs.cosmos.network/main/modules/group', | ||
apiPackage: 'cosmos.evidence.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/evidence', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'intertx', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
apiPackage: 'cosmos.feegrant.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/feegrant', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.group.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/group', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.mint.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/mint', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.params.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/params', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.slashing.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/slashing', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.staking.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/staking', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.upgrade.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/upgrade', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'regen.data.v1', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
gitVersion: 'x/data/v2.3.1', | ||
}, | ||
{ | ||
moduleName: 'voucher', | ||
documentation: 'https://docs.chora.io/specs/voucher', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'v0.0.0', | ||
gitVersionLink: 'https://github.com/chora-io/mods/tree/main', | ||
apiPackage: 'regen.intertx.v1', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/intertx/v1.3.1', | ||
}, | ||
], | ||
}; |
@@ -42,12 +42,10 @@ export declare const choraTestnet: { | ||
export declare const choraTestnetX: { | ||
coopId: string; | ||
faucet: string; | ||
server: string; | ||
modules: { | ||
moduleName: string; | ||
apiPackage: string; | ||
documentation: string; | ||
gitRepository: string; | ||
gitVersion: string; | ||
gitVersionLink: string; | ||
}[]; | ||
}; |
@@ -46,3 +46,2 @@ export const choraTestnet = { | ||
export const choraTestnetX = { | ||
coopId: '1', | ||
faucet: 'https://testnet.chora.io/faucet/', | ||
@@ -52,58 +51,122 @@ server: 'https://server.chora.io', | ||
{ | ||
moduleName: 'authz', | ||
documentation: 'https://docs.cosmos.network/main/modules/authz', | ||
apiPackage: 'chora.content.v1', | ||
documentation: 'https://docs.chora.io/specs/content', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'content/v0.0.0', | ||
}, | ||
{ | ||
apiPackage: 'chora.geonode.v1', | ||
documentation: 'https://docs.chora.io/specs/geonode', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'geonode/v0.0.0', | ||
}, | ||
{ | ||
apiPackage: 'chora.voucher.v1', | ||
documentation: 'https://docs.chora.io/specs/voucher', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'voucher/v0.0.0', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.auth.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/auth', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'bank', | ||
documentation: 'https://docs.cosmos.network/main/modules/bank', | ||
apiPackage: 'cosmos.authz.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/authz', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'data', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.bank.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/bank', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'feegrant', | ||
documentation: 'https://docs.cosmos.network/main/modules/feegrant', | ||
apiPackage: 'cosmos.crisis.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/crisis', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'geonode', | ||
documentation: 'https://docs.chora.io/specs/geonode', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'v0.0.0', | ||
gitVersionLink: 'https://github.com/chora-io/mods/tree/main', | ||
apiPackage: 'cosmos.distribution.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/distribution', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'group', | ||
documentation: 'https://docs.cosmos.network/main/modules/group', | ||
apiPackage: 'cosmos.evidence.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/evidence', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'intertx', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
apiPackage: 'cosmos.feegrant.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/feegrant', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.group.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/group', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.mint.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/mint', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.params.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/params', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.slashing.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/slashing', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.staking.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/staking', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.upgrade.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/upgrade', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'regen.data.v1', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
gitVersion: 'x/data/v2.3.1', | ||
}, | ||
{ | ||
moduleName: 'voucher', | ||
documentation: 'https://docs.chora.io/specs/voucher', | ||
gitRepository: 'https://github.com/chora-io/mods', | ||
gitVersion: 'v0.0.0', | ||
gitVersionLink: 'https://github.com/chora-io/mods/tree/main', | ||
apiPackage: 'regen.intertx.v1', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/intertx/v1.3.1', | ||
}, | ||
], | ||
}; |
@@ -42,12 +42,10 @@ export declare const regenMainnet: { | ||
export declare const regenMainnetX: { | ||
coopId: string; | ||
faucet: undefined; | ||
server: string; | ||
modules: { | ||
moduleName: string; | ||
apiPackage: string; | ||
documentation: string; | ||
gitRepository: string; | ||
gitVersion: string; | ||
gitVersionLink: string; | ||
}[]; | ||
}; |
@@ -46,3 +46,2 @@ export const regenMainnet = { | ||
export const regenMainnetX = { | ||
coopId: '5', | ||
faucet: undefined, | ||
@@ -52,51 +51,122 @@ server: 'https://server.chora.io', | ||
{ | ||
moduleName: 'authz', | ||
documentation: 'https://docs.cosmos.network/main/modules/authz', | ||
apiPackage: 'cosmos.auth.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/auth', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'bank', | ||
documentation: 'https://docs.cosmos.network/main/modules/bank', | ||
apiPackage: 'cosmos.authz.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/authz', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'data', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.bank.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/bank', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'ecocredit', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.crisis.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/crisis', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'feegrant', | ||
documentation: 'https://docs.cosmos.network/main/modules/feegrant', | ||
apiPackage: 'cosmos.distribution.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/distribution', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'group', | ||
documentation: 'https://docs.cosmos.network/main/modules/group', | ||
apiPackage: 'cosmos.evidence.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/evidence', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'intertx', | ||
apiPackage: 'cosmos.feegrant.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/feegrant', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.group.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/group', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.mint.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/mint', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.params.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/params', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.slashing.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/slashing', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.staking.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/staking', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.upgrade.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/upgrade', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'regen.data.v1', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/data/v2.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.basket.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.marketplace.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.intertx.v1', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
gitVersion: 'x/intertx/v1.3.1', | ||
}, | ||
], | ||
}; |
@@ -42,12 +42,10 @@ export declare const regenLocal: { | ||
export declare const regenLocalX: { | ||
coopId: string; | ||
faucet: string; | ||
server: string; | ||
modules: { | ||
moduleName: string; | ||
apiPackage: string; | ||
documentation: string; | ||
gitRepository: string; | ||
gitVersion: string; | ||
gitVersionLink: string; | ||
}[]; | ||
}; |
@@ -19,6 +19,6 @@ export const regenLocal = { | ||
{ | ||
coinDenom: 'STAKE', | ||
coinMinimalDenom: 'stake', | ||
coinDenom: 'REGEN', | ||
coinMinimalDenom: 'uregen', | ||
coinDecimals: 6, | ||
coinGeckoId: 'stake', | ||
coinGeckoId: 'regen', | ||
}, | ||
@@ -28,6 +28,6 @@ ], | ||
{ | ||
coinDenom: 'STAKE', | ||
coinMinimalDenom: 'stake', | ||
coinDenom: 'REGEN', | ||
coinMinimalDenom: 'uregen', | ||
coinDecimals: 6, | ||
coinGeckoId: 'stake', | ||
coinGeckoId: 'regen', | ||
gasPriceStep: { | ||
@@ -41,10 +41,9 @@ low: 0.01, | ||
stakeCurrency: { | ||
coinDenom: 'STAKE', | ||
coinMinimalDenom: 'stake', | ||
coinDenom: 'REGEN', | ||
coinMinimalDenom: 'uregen', | ||
coinDecimals: 6, | ||
coinGeckoId: 'stake', | ||
coinGeckoId: 'regen', | ||
}, | ||
}; | ||
export const regenLocalX = { | ||
coopId: '1', | ||
faucet: 'http://127.0.0.1:8000', | ||
@@ -54,51 +53,122 @@ server: 'http://127.0.0.1:3000', | ||
{ | ||
moduleName: 'authz', | ||
documentation: 'https://docs.cosmos.network/main/modules/authz', | ||
apiPackage: 'cosmos.auth.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/auth', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'bank', | ||
documentation: 'https://docs.cosmos.network/main/modules/bank', | ||
apiPackage: 'cosmos.authz.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/authz', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'data', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.bank.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/bank', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'ecocredit', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.crisis.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/crisis', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'feegrant', | ||
documentation: 'https://docs.cosmos.network/main/modules/feegrant', | ||
apiPackage: 'cosmos.distribution.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/distribution', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'group', | ||
documentation: 'https://docs.cosmos.network/main/modules/group', | ||
apiPackage: 'cosmos.evidence.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/evidence', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'intertx', | ||
apiPackage: 'cosmos.feegrant.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/feegrant', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.group.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/group', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.mint.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/mint', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.params.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/params', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.slashing.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/slashing', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.staking.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/staking', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.upgrade.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/upgrade', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'regen.data.v1', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/data/v2.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.basket.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.marketplace.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.intertx.v1', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
gitVersion: 'x/intertx/v1.3.1', | ||
}, | ||
], | ||
}; |
@@ -42,12 +42,10 @@ export declare const regenRedwood: { | ||
export declare const regenRedwoodX: { | ||
coopId: string; | ||
faucet: string; | ||
server: string; | ||
modules: { | ||
moduleName: string; | ||
apiPackage: string; | ||
documentation: string; | ||
gitRepository: string; | ||
gitVersion: string; | ||
gitVersionLink: string; | ||
}[]; | ||
}; |
@@ -46,3 +46,2 @@ export const regenRedwood = { | ||
export const regenRedwoodX = { | ||
coopId: '10', | ||
faucet: 'https://redwood.chora.io/faucet/', | ||
@@ -52,51 +51,122 @@ server: 'https://server.chora.io', | ||
{ | ||
moduleName: 'authz', | ||
documentation: 'https://docs.cosmos.network/main/modules/authz', | ||
apiPackage: 'cosmos.auth.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/auth', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'bank', | ||
documentation: 'https://docs.cosmos.network/main/modules/bank', | ||
apiPackage: 'cosmos.authz.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/authz', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'data', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.bank.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/bank', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'ecocredit', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
apiPackage: 'cosmos.crisis.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/crisis', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'feegrant', | ||
documentation: 'https://docs.cosmos.network/main/modules/feegrant', | ||
apiPackage: 'cosmos.distribution.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/distribution', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'group', | ||
documentation: 'https://docs.cosmos.network/main/modules/group', | ||
apiPackage: 'cosmos.evidence.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/evidence', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
gitVersionLink: 'https://github.com/cosmos/cosmos-sdk/tree/v0.46.13', | ||
}, | ||
{ | ||
moduleName: 'intertx', | ||
apiPackage: 'cosmos.feegrant.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/feegrant', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.gov.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/gov', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.group.v1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/group', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.mint.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/mint', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.params.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/params', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.slashing.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/slashing', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.staking.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/staking', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'cosmos.upgrade.v1beta1', | ||
documentation: 'https://docs.cosmos.network/v0.46/modules/upgrade', | ||
gitRepository: 'https://github.com/cosmos/cosmos-sdk', | ||
gitVersion: 'v0.46.13', | ||
}, | ||
{ | ||
apiPackage: 'regen.data.v1', | ||
documentation: 'https://docs.regen.network/modules/data', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'v5.1.2', | ||
gitVersionLink: 'https://github.com/regen-network/regen-ledger/tree/v5.1.2', | ||
gitVersion: 'x/data/v2.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.basket.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.ecocredit.marketplace.v1', | ||
documentation: 'https://docs.regen.network/modules/ecocredit', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/ecocredit/v3.3.1', | ||
}, | ||
{ | ||
apiPackage: 'regen.intertx.v1', | ||
documentation: 'https://docs.regen.network/modules/intertx', | ||
gitRepository: 'https://github.com/regen-network/regen-ledger', | ||
gitVersion: 'x/intertx/v1.3.1', | ||
}, | ||
], | ||
}; |
@@ -1,9 +0,26 @@ | ||
export { authzModule } from './authz'; | ||
export { bankModule } from './bank'; | ||
export { dataModule } from './data'; | ||
export { feegrantModule } from './feegrant'; | ||
export { ecocreditModule } from './ecocredit'; | ||
export { geonodeModule } from './geonode'; | ||
export { groupModule } from './group'; | ||
export { intertxModule } from './intertx'; | ||
export { voucherModule } from './voucher'; | ||
export { choraContentV1 } from './chora.content.v1'; | ||
export { choraGeonodeV1 } from './chora.geonode.v1'; | ||
export { choraValidatorV1 } from './chora.validator.v1'; | ||
export { choraVoucherV1 } from './chora.voucher.v1'; | ||
export { cosmosAuthV1beta1 } from './cosmos.auth.v1beta1'; | ||
export { cosmosAuthzV1beta1 } from './cosmos.authz.v1beta1'; | ||
export { cosmosBankV1beta1 } from './cosmos.bank.v1beta1'; | ||
export { cosmosCircuitV1 } from './cosmos.circuit.v1'; | ||
export { cosmosConsensusV1 } from './cosmos.consensus.v1'; | ||
export { cosmosCrisisV1beta1 } from './cosmos.crisis.v1beta1'; | ||
export { cosmosDistributionV1beta1 } from './cosmos.distribution.v1beta1'; | ||
export { cosmosEvidenceV1beta1 } from './cosmos.evidence.v1beta1'; | ||
export { cosmosFeegrantV1beta1 } from './cosmos.feegrant.v1beta1'; | ||
export { cosmosGovV1 } from './cosmos.gov.v1'; | ||
export { cosmosGovV1beta1 } from './cosmos.gov.v1beta1'; | ||
export { cosmosGroupV1 } from './cosmos.group.v1'; | ||
export { cosmosMintV1beta1 } from './cosmos.mint.v1beta1'; | ||
export { cosmosParamsV1beta1 } from './cosmos.params.v1beta1'; | ||
export { cosmosSlashingV1beta1 } from './cosmos.slashing.v1beta1'; | ||
export { cosmosStakingV1beta1 } from './cosmos.staking.v1beta1'; | ||
export { cosmosUpgradeV1beta1 } from './cosmos.upgrade.v1beta1'; | ||
export { regenDataV1 } from './regen.data.v1'; | ||
export { regenEcocreditV1 } from './regen.ecocredit.v1'; | ||
export { regenEcocreditBasketV1 } from './regen.ecocredit.basket.v1'; | ||
export { regenEcocreditMarketplaceV1 } from './regen.ecocredit.marketplace.v1'; | ||
export { regenIntertxV1 } from './regen.intertx.v1'; |
@@ -1,9 +0,26 @@ | ||
export { authzModule } from './authz'; | ||
export { bankModule } from './bank'; | ||
export { dataModule } from './data'; | ||
export { feegrantModule } from './feegrant'; | ||
export { ecocreditModule } from './ecocredit'; | ||
export { geonodeModule } from './geonode'; | ||
export { groupModule } from './group'; | ||
export { intertxModule } from './intertx'; | ||
export { voucherModule } from './voucher'; | ||
export { choraContentV1 } from './chora.content.v1'; | ||
export { choraGeonodeV1 } from './chora.geonode.v1'; | ||
export { choraValidatorV1 } from './chora.validator.v1'; | ||
export { choraVoucherV1 } from './chora.voucher.v1'; | ||
export { cosmosAuthV1beta1 } from './cosmos.auth.v1beta1'; | ||
export { cosmosAuthzV1beta1 } from './cosmos.authz.v1beta1'; | ||
export { cosmosBankV1beta1 } from './cosmos.bank.v1beta1'; | ||
export { cosmosCircuitV1 } from './cosmos.circuit.v1'; | ||
export { cosmosConsensusV1 } from './cosmos.consensus.v1'; | ||
export { cosmosCrisisV1beta1 } from './cosmos.crisis.v1beta1'; | ||
export { cosmosDistributionV1beta1 } from './cosmos.distribution.v1beta1'; | ||
export { cosmosEvidenceV1beta1 } from './cosmos.evidence.v1beta1'; | ||
export { cosmosFeegrantV1beta1 } from './cosmos.feegrant.v1beta1'; | ||
export { cosmosGovV1 } from './cosmos.gov.v1'; | ||
export { cosmosGovV1beta1 } from './cosmos.gov.v1beta1'; | ||
export { cosmosGroupV1 } from './cosmos.group.v1'; | ||
export { cosmosMintV1beta1 } from './cosmos.mint.v1beta1'; | ||
export { cosmosParamsV1beta1 } from './cosmos.params.v1beta1'; | ||
export { cosmosSlashingV1beta1 } from './cosmos.slashing.v1beta1'; | ||
export { cosmosStakingV1beta1 } from './cosmos.staking.v1beta1'; | ||
export { cosmosUpgradeV1beta1 } from './cosmos.upgrade.v1beta1'; | ||
export { regenDataV1 } from './regen.data.v1'; | ||
export { regenEcocreditV1 } from './regen.ecocredit.v1'; | ||
export { regenEcocreditBasketV1 } from './regen.ecocredit.basket.v1'; | ||
export { regenEcocreditMarketplaceV1 } from './regen.ecocredit.marketplace.v1'; | ||
export { regenIntertxV1 } from './regen.intertx.v1'; |
{ | ||
"name": "@chora-io/cosmos", | ||
"description": "cosmos webkit", | ||
"version": "0.1.0-beta1", | ||
"version": "0.1.0-beta10", | ||
"homepage": "https://chora.io", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2388296
73.7%205
81.42%61180
65.67%1
Infinity%