Remove unused proto files

This commit is contained in:
neeraj 2024-04-01 12:43:13 +05:30
parent 911be08850
commit 3ca6f53781
20 changed files with 0 additions and 15638 deletions

View File

@ -1,259 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: cosmos/base/query/v1beta1/pagination.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as pb_1 from "google-protobuf";
export namespace cosmos.base.query.v1beta1 {
export class PageRequest extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
key?: Uint8Array;
offset?: number;
limit?: number;
count_total?: boolean;
reverse?: boolean;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("key" in data && data.key != undefined) {
this.key = data.key;
}
if ("offset" in data && data.offset != undefined) {
this.offset = data.offset;
}
if ("limit" in data && data.limit != undefined) {
this.limit = data.limit;
}
if ("count_total" in data && data.count_total != undefined) {
this.count_total = data.count_total;
}
if ("reverse" in data && data.reverse != undefined) {
this.reverse = data.reverse;
}
}
}
get key() {
return pb_1.Message.getFieldWithDefault(this, 1, new Uint8Array(0)) as Uint8Array;
}
set key(value: Uint8Array) {
pb_1.Message.setField(this, 1, value);
}
get offset() {
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
}
set offset(value: number) {
pb_1.Message.setField(this, 2, value);
}
get limit() {
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
}
set limit(value: number) {
pb_1.Message.setField(this, 3, value);
}
get count_total() {
return pb_1.Message.getFieldWithDefault(this, 4, false) as boolean;
}
set count_total(value: boolean) {
pb_1.Message.setField(this, 4, value);
}
get reverse() {
return pb_1.Message.getFieldWithDefault(this, 5, false) as boolean;
}
set reverse(value: boolean) {
pb_1.Message.setField(this, 5, value);
}
static fromObject(data: {
key?: Uint8Array;
offset?: number;
limit?: number;
count_total?: boolean;
reverse?: boolean;
}): PageRequest {
const message = new PageRequest({});
if (data.key != null) {
message.key = data.key;
}
if (data.offset != null) {
message.offset = data.offset;
}
if (data.limit != null) {
message.limit = data.limit;
}
if (data.count_total != null) {
message.count_total = data.count_total;
}
if (data.reverse != null) {
message.reverse = data.reverse;
}
return message;
}
toObject() {
const data: {
key?: Uint8Array;
offset?: number;
limit?: number;
count_total?: boolean;
reverse?: boolean;
} = {};
if (this.key != null) {
data.key = this.key;
}
if (this.offset != null) {
data.offset = this.offset;
}
if (this.limit != null) {
data.limit = this.limit;
}
if (this.count_total != null) {
data.count_total = this.count_total;
}
if (this.reverse != null) {
data.reverse = this.reverse;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.key.length)
writer.writeBytes(1, this.key);
if (this.offset != 0)
writer.writeUint64(2, this.offset);
if (this.limit != 0)
writer.writeUint64(3, this.limit);
if (this.count_total != false)
writer.writeBool(4, this.count_total);
if (this.reverse != false)
writer.writeBool(5, this.reverse);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PageRequest {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PageRequest();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.key = reader.readBytes();
break;
case 2:
message.offset = reader.readUint64();
break;
case 3:
message.limit = reader.readUint64();
break;
case 4:
message.count_total = reader.readBool();
break;
case 5:
message.reverse = reader.readBool();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): PageRequest {
return PageRequest.deserialize(bytes);
}
}
export class PageResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
next_key?: Uint8Array;
total?: number;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("next_key" in data && data.next_key != undefined) {
this.next_key = data.next_key;
}
if ("total" in data && data.total != undefined) {
this.total = data.total;
}
}
}
get next_key() {
return pb_1.Message.getFieldWithDefault(this, 1, new Uint8Array(0)) as Uint8Array;
}
set next_key(value: Uint8Array) {
pb_1.Message.setField(this, 1, value);
}
get total() {
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
}
set total(value: number) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
next_key?: Uint8Array;
total?: number;
}): PageResponse {
const message = new PageResponse({});
if (data.next_key != null) {
message.next_key = data.next_key;
}
if (data.total != null) {
message.total = data.total;
}
return message;
}
toObject() {
const data: {
next_key?: Uint8Array;
total?: number;
} = {};
if (this.next_key != null) {
data.next_key = this.next_key;
}
if (this.total != null) {
data.total = this.total;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.next_key.length)
writer.writeBytes(1, this.next_key);
if (this.total != 0)
writer.writeUint64(2, this.total);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PageResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PageResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.next_key = reader.readBytes();
break;
case 2:
message.total = reader.readUint64();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): PageResponse {
return PageResponse.deserialize(bytes);
}
}
}

View File

@ -1,325 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: cosmos/base/v1beta1/coin.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as pb_1 from "google-protobuf";
export namespace cosmos.base.v1beta1 {
export class Coin extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
denom?: string;
amount?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("denom" in data && data.denom != undefined) {
this.denom = data.denom;
}
if ("amount" in data && data.amount != undefined) {
this.amount = data.amount;
}
}
}
get denom() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set denom(value: string) {
pb_1.Message.setField(this, 1, value);
}
get amount() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set amount(value: string) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
denom?: string;
amount?: string;
}): Coin {
const message = new Coin({});
if (data.denom != null) {
message.denom = data.denom;
}
if (data.amount != null) {
message.amount = data.amount;
}
return message;
}
toObject() {
const data: {
denom?: string;
amount?: string;
} = {};
if (this.denom != null) {
data.denom = this.denom;
}
if (this.amount != null) {
data.amount = this.amount;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.denom.length)
writer.writeString(1, this.denom);
if (this.amount.length)
writer.writeString(2, this.amount);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Coin {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Coin();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.denom = reader.readString();
break;
case 2:
message.amount = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Coin {
return Coin.deserialize(bytes);
}
}
export class DecCoin extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
denom?: string;
amount?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("denom" in data && data.denom != undefined) {
this.denom = data.denom;
}
if ("amount" in data && data.amount != undefined) {
this.amount = data.amount;
}
}
}
get denom() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set denom(value: string) {
pb_1.Message.setField(this, 1, value);
}
get amount() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set amount(value: string) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
denom?: string;
amount?: string;
}): DecCoin {
const message = new DecCoin({});
if (data.denom != null) {
message.denom = data.denom;
}
if (data.amount != null) {
message.amount = data.amount;
}
return message;
}
toObject() {
const data: {
denom?: string;
amount?: string;
} = {};
if (this.denom != null) {
data.denom = this.denom;
}
if (this.amount != null) {
data.amount = this.amount;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.denom.length)
writer.writeString(1, this.denom);
if (this.amount.length)
writer.writeString(2, this.amount);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DecCoin {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DecCoin();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.denom = reader.readString();
break;
case 2:
message.amount = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): DecCoin {
return DecCoin.deserialize(bytes);
}
}
export class IntProto extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
int?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("int" in data && data.int != undefined) {
this.int = data.int;
}
}
}
get int() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set int(value: string) {
pb_1.Message.setField(this, 1, value);
}
static fromObject(data: {
int?: string;
}): IntProto {
const message = new IntProto({});
if (data.int != null) {
message.int = data.int;
}
return message;
}
toObject() {
const data: {
int?: string;
} = {};
if (this.int != null) {
data.int = this.int;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.int.length)
writer.writeString(1, this.int);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): IntProto {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new IntProto();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.int = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): IntProto {
return IntProto.deserialize(bytes);
}
}
export class DecProto extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
dec?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("dec" in data && data.dec != undefined) {
this.dec = data.dec;
}
}
}
get dec() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set dec(value: string) {
pb_1.Message.setField(this, 1, value);
}
static fromObject(data: {
dec?: string;
}): DecProto {
const message = new DecProto({});
if (data.dec != null) {
message.dec = data.dec;
}
return message;
}
toObject() {
const data: {
dec?: string;
} = {};
if (this.dec != null) {
data.dec = this.dec;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.dec.length)
writer.writeString(1, this.dec);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DecProto {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DecProto();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.dec = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): DecProto {
return DecProto.deserialize(bytes);
}
}
}

View File

@ -1,9 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: gogoproto/gogo.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../google/protobuf/descriptor";
export namespace gogoproto { }

View File

@ -1,10 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: google/api/annotations.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./http";
import * as dependency_2 from "./../protobuf/descriptor";
export namespace google.api { }

View File

@ -1,532 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: google/api/http.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as pb_1 from "google-protobuf";
export namespace google.api {
export class Http extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
rules?: HttpRule[];
fully_decode_reserved_expansion?: boolean;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("rules" in data && data.rules != undefined) {
this.rules = data.rules;
}
if ("fully_decode_reserved_expansion" in data && data.fully_decode_reserved_expansion != undefined) {
this.fully_decode_reserved_expansion = data.fully_decode_reserved_expansion;
}
}
}
get rules() {
return pb_1.Message.getRepeatedWrapperField(this, HttpRule, 1) as HttpRule[];
}
set rules(value: HttpRule[]) {
pb_1.Message.setRepeatedWrapperField(this, 1, value);
}
get fully_decode_reserved_expansion() {
return pb_1.Message.getFieldWithDefault(this, 2, false) as boolean;
}
set fully_decode_reserved_expansion(value: boolean) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
rules?: ReturnType<typeof HttpRule.prototype.toObject>[];
fully_decode_reserved_expansion?: boolean;
}): Http {
const message = new Http({});
if (data.rules != null) {
message.rules = data.rules.map(item => HttpRule.fromObject(item));
}
if (data.fully_decode_reserved_expansion != null) {
message.fully_decode_reserved_expansion = data.fully_decode_reserved_expansion;
}
return message;
}
toObject() {
const data: {
rules?: ReturnType<typeof HttpRule.prototype.toObject>[];
fully_decode_reserved_expansion?: boolean;
} = {};
if (this.rules != null) {
data.rules = this.rules.map((item: HttpRule) => item.toObject());
}
if (this.fully_decode_reserved_expansion != null) {
data.fully_decode_reserved_expansion = this.fully_decode_reserved_expansion;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.rules.length)
writer.writeRepeatedMessage(1, this.rules, (item: HttpRule) => item.serialize(writer));
if (this.fully_decode_reserved_expansion != false)
writer.writeBool(2, this.fully_decode_reserved_expansion);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Http {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Http();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.rules, () => pb_1.Message.addToRepeatedWrapperField(message, 1, HttpRule.deserialize(reader), HttpRule));
break;
case 2:
message.fully_decode_reserved_expansion = reader.readBool();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Http {
return Http.deserialize(bytes);
}
}
export class HttpRule extends pb_1.Message {
#one_of_decls: number[][] = [[2, 3, 4, 5, 6, 8]];
constructor(data?: any[] | ({
selector?: string;
body?: string;
response_body?: string;
additional_bindings?: HttpRule[];
} & (({
get?: string;
put?: never;
post?: never;
delete?: never;
patch?: never;
custom?: never;
} | {
get?: never;
put?: string;
post?: never;
delete?: never;
patch?: never;
custom?: never;
} | {
get?: never;
put?: never;
post?: string;
delete?: never;
patch?: never;
custom?: never;
} | {
get?: never;
put?: never;
post?: never;
delete?: string;
patch?: never;
custom?: never;
} | {
get?: never;
put?: never;
post?: never;
delete?: never;
patch?: string;
custom?: never;
} | {
get?: never;
put?: never;
post?: never;
delete?: never;
patch?: never;
custom?: CustomHttpPattern;
})))) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [11], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("selector" in data && data.selector != undefined) {
this.selector = data.selector;
}
if ("get" in data && data.get != undefined) {
this.get = data.get;
}
if ("put" in data && data.put != undefined) {
this.put = data.put;
}
if ("post" in data && data.post != undefined) {
this.post = data.post;
}
if ("delete" in data && data.delete != undefined) {
this.delete = data.delete;
}
if ("patch" in data && data.patch != undefined) {
this.patch = data.patch;
}
if ("custom" in data && data.custom != undefined) {
this.custom = data.custom;
}
if ("body" in data && data.body != undefined) {
this.body = data.body;
}
if ("response_body" in data && data.response_body != undefined) {
this.response_body = data.response_body;
}
if ("additional_bindings" in data && data.additional_bindings != undefined) {
this.additional_bindings = data.additional_bindings;
}
}
}
get selector() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set selector(value: string) {
pb_1.Message.setField(this, 1, value);
}
get get() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set get(value: string) {
pb_1.Message.setOneofField(this, 2, this.#one_of_decls[0], value);
}
get has_get() {
return pb_1.Message.getField(this, 2) != null;
}
get put() {
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
}
set put(value: string) {
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);
}
get has_put() {
return pb_1.Message.getField(this, 3) != null;
}
get post() {
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
}
set post(value: string) {
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);
}
get has_post() {
return pb_1.Message.getField(this, 4) != null;
}
get delete() {
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
}
set delete(value: string) {
pb_1.Message.setOneofField(this, 5, this.#one_of_decls[0], value);
}
get has_delete() {
return pb_1.Message.getField(this, 5) != null;
}
get patch() {
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
}
set patch(value: string) {
pb_1.Message.setOneofField(this, 6, this.#one_of_decls[0], value);
}
get has_patch() {
return pb_1.Message.getField(this, 6) != null;
}
get custom() {
return pb_1.Message.getWrapperField(this, CustomHttpPattern, 8) as CustomHttpPattern;
}
set custom(value: CustomHttpPattern) {
pb_1.Message.setOneofWrapperField(this, 8, this.#one_of_decls[0], value);
}
get has_custom() {
return pb_1.Message.getField(this, 8) != null;
}
get body() {
return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
}
set body(value: string) {
pb_1.Message.setField(this, 7, value);
}
get response_body() {
return pb_1.Message.getFieldWithDefault(this, 12, "") as string;
}
set response_body(value: string) {
pb_1.Message.setField(this, 12, value);
}
get additional_bindings() {
return pb_1.Message.getRepeatedWrapperField(this, HttpRule, 11) as HttpRule[];
}
set additional_bindings(value: HttpRule[]) {
pb_1.Message.setRepeatedWrapperField(this, 11, value);
}
get pattern() {
const cases: {
[index: number]: "none" | "get" | "put" | "post" | "delete" | "patch" | "custom";
} = {
0: "none",
2: "get",
3: "put",
4: "post",
5: "delete",
6: "patch",
8: "custom"
};
return cases[pb_1.Message.computeOneofCase(this, [2, 3, 4, 5, 6, 8])];
}
static fromObject(data: {
selector?: string;
get?: string;
put?: string;
post?: string;
delete?: string;
patch?: string;
custom?: ReturnType<typeof CustomHttpPattern.prototype.toObject>;
body?: string;
response_body?: string;
additional_bindings?: ReturnType<typeof HttpRule.prototype.toObject>[];
}): HttpRule {
const message = new HttpRule({});
if (data.selector != null) {
message.selector = data.selector;
}
if (data.get != null) {
message.get = data.get;
}
if (data.put != null) {
message.put = data.put;
}
if (data.post != null) {
message.post = data.post;
}
if (data.delete != null) {
message.delete = data.delete;
}
if (data.patch != null) {
message.patch = data.patch;
}
if (data.custom != null) {
message.custom = CustomHttpPattern.fromObject(data.custom);
}
if (data.body != null) {
message.body = data.body;
}
if (data.response_body != null) {
message.response_body = data.response_body;
}
if (data.additional_bindings != null) {
message.additional_bindings = data.additional_bindings.map(item => HttpRule.fromObject(item));
}
return message;
}
toObject() {
const data: {
selector?: string;
get?: string;
put?: string;
post?: string;
delete?: string;
patch?: string;
custom?: ReturnType<typeof CustomHttpPattern.prototype.toObject>;
body?: string;
response_body?: string;
additional_bindings?: ReturnType<typeof HttpRule.prototype.toObject>[];
} = {};
if (this.selector != null) {
data.selector = this.selector;
}
if (this.get != null) {
data.get = this.get;
}
if (this.put != null) {
data.put = this.put;
}
if (this.post != null) {
data.post = this.post;
}
if (this.delete != null) {
data.delete = this.delete;
}
if (this.patch != null) {
data.patch = this.patch;
}
if (this.custom != null) {
data.custom = this.custom.toObject();
}
if (this.body != null) {
data.body = this.body;
}
if (this.response_body != null) {
data.response_body = this.response_body;
}
if (this.additional_bindings != null) {
data.additional_bindings = this.additional_bindings.map((item: HttpRule) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.selector.length)
writer.writeString(1, this.selector);
if (this.has_get)
writer.writeString(2, this.get);
if (this.has_put)
writer.writeString(3, this.put);
if (this.has_post)
writer.writeString(4, this.post);
if (this.has_delete)
writer.writeString(5, this.delete);
if (this.has_patch)
writer.writeString(6, this.patch);
if (this.has_custom)
writer.writeMessage(8, this.custom, () => this.custom.serialize(writer));
if (this.body.length)
writer.writeString(7, this.body);
if (this.response_body.length)
writer.writeString(12, this.response_body);
if (this.additional_bindings.length)
writer.writeRepeatedMessage(11, this.additional_bindings, (item: HttpRule) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HttpRule {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HttpRule();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.selector = reader.readString();
break;
case 2:
message.get = reader.readString();
break;
case 3:
message.put = reader.readString();
break;
case 4:
message.post = reader.readString();
break;
case 5:
message.delete = reader.readString();
break;
case 6:
message.patch = reader.readString();
break;
case 8:
reader.readMessage(message.custom, () => message.custom = CustomHttpPattern.deserialize(reader));
break;
case 7:
message.body = reader.readString();
break;
case 12:
message.response_body = reader.readString();
break;
case 11:
reader.readMessage(message.additional_bindings, () => pb_1.Message.addToRepeatedWrapperField(message, 11, HttpRule.deserialize(reader), HttpRule));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): HttpRule {
return HttpRule.deserialize(bytes);
}
}
export class CustomHttpPattern extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
kind?: string;
path?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("kind" in data && data.kind != undefined) {
this.kind = data.kind;
}
if ("path" in data && data.path != undefined) {
this.path = data.path;
}
}
}
get kind() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set kind(value: string) {
pb_1.Message.setField(this, 1, value);
}
get path() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set path(value: string) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
kind?: string;
path?: string;
}): CustomHttpPattern {
const message = new CustomHttpPattern({});
if (data.kind != null) {
message.kind = data.kind;
}
if (data.path != null) {
message.path = data.path;
}
return message;
}
toObject() {
const data: {
kind?: string;
path?: string;
} = {};
if (this.kind != null) {
data.kind = this.kind;
}
if (this.path != null) {
data.path = this.path;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.kind.length)
writer.writeString(1, this.kind);
if (this.path.length)
writer.writeString(2, this.path);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CustomHttpPattern {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CustomHttpPattern();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.kind = reader.readString();
break;
case 2:
message.path = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): CustomHttpPattern {
return CustomHttpPattern.deserialize(bytes);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,100 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: google/protobuf/duration.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as pb_1 from "google-protobuf";
export namespace google.protobuf {
export class Duration extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
seconds?: number;
nanos?: number;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("seconds" in data && data.seconds != undefined) {
this.seconds = data.seconds;
}
if ("nanos" in data && data.nanos != undefined) {
this.nanos = data.nanos;
}
}
}
get seconds() {
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
}
set seconds(value: number) {
pb_1.Message.setField(this, 1, value);
}
get nanos() {
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
}
set nanos(value: number) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
seconds?: number;
nanos?: number;
}): Duration {
const message = new Duration({});
if (data.seconds != null) {
message.seconds = data.seconds;
}
if (data.nanos != null) {
message.nanos = data.nanos;
}
return message;
}
toObject() {
const data: {
seconds?: number;
nanos?: number;
} = {};
if (this.seconds != null) {
data.seconds = this.seconds;
}
if (this.nanos != null) {
data.nanos = this.nanos;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.seconds != 0)
writer.writeInt64(1, this.seconds);
if (this.nanos != 0)
writer.writeInt32(2, this.nanos);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Duration {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Duration();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.seconds = reader.readInt64();
break;
case 2:
message.nanos = reader.readInt32();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Duration {
return Duration.deserialize(bytes);
}
}
}

View File

@ -1,100 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: google/protobuf/timestamp.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as pb_1 from "google-protobuf";
export namespace google.protobuf {
export class Timestamp extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
seconds?: number;
nanos?: number;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("seconds" in data && data.seconds != undefined) {
this.seconds = data.seconds;
}
if ("nanos" in data && data.nanos != undefined) {
this.nanos = data.nanos;
}
}
}
get seconds() {
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
}
set seconds(value: number) {
pb_1.Message.setField(this, 1, value);
}
get nanos() {
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
}
set nanos(value: number) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
seconds?: number;
nanos?: number;
}): Timestamp {
const message = new Timestamp({});
if (data.seconds != null) {
message.seconds = data.seconds;
}
if (data.nanos != null) {
message.nanos = data.nanos;
}
return message;
}
toObject() {
const data: {
seconds?: number;
nanos?: number;
} = {};
if (this.seconds != null) {
data.seconds = this.seconds;
}
if (this.nanos != null) {
data.nanos = this.nanos;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.seconds != 0)
writer.writeInt64(1, this.seconds);
if (this.nanos != 0)
writer.writeInt32(2, this.nanos);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Timestamp {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Timestamp();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.seconds = reader.readInt64();
break;
case 2:
message.nanos = reader.readInt32();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Timestamp {
return Timestamp.deserialize(bytes);
}
}
}

View File

@ -1,105 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/auction/v1beta1/genesis.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./types";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.auction.v1beta1 {
export class GenesisState extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
params?: dependency_2.vulcanize.auction.v1beta1.Params;
auctions?: dependency_2.vulcanize.auction.v1beta1.Auction[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("params" in data && data.params != undefined) {
this.params = data.params;
}
if ("auctions" in data && data.auctions != undefined) {
this.auctions = data.auctions;
}
}
}
get params() {
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.auction.v1beta1.Params, 1) as dependency_2.vulcanize.auction.v1beta1.Params;
}
set params(value: dependency_2.vulcanize.auction.v1beta1.Params) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_params() {
return pb_1.Message.getField(this, 1) != null;
}
get auctions() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.auction.v1beta1.Auction, 2) as dependency_2.vulcanize.auction.v1beta1.Auction[];
}
set auctions(value: dependency_2.vulcanize.auction.v1beta1.Auction[]) {
pb_1.Message.setRepeatedWrapperField(this, 2, value);
}
static fromObject(data: {
params?: ReturnType<typeof dependency_2.vulcanize.auction.v1beta1.Params.prototype.toObject>;
auctions?: ReturnType<typeof dependency_2.vulcanize.auction.v1beta1.Auction.prototype.toObject>[];
}): GenesisState {
const message = new GenesisState({});
if (data.params != null) {
message.params = dependency_2.vulcanize.auction.v1beta1.Params.fromObject(data.params);
}
if (data.auctions != null) {
message.auctions = data.auctions.map(item => dependency_2.vulcanize.auction.v1beta1.Auction.fromObject(item));
}
return message;
}
toObject() {
const data: {
params?: ReturnType<typeof dependency_2.vulcanize.auction.v1beta1.Params.prototype.toObject>;
auctions?: ReturnType<typeof dependency_2.vulcanize.auction.v1beta1.Auction.prototype.toObject>[];
} = {};
if (this.params != null) {
data.params = this.params.toObject();
}
if (this.auctions != null) {
data.auctions = this.auctions.map((item: dependency_2.vulcanize.auction.v1beta1.Auction) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_params)
writer.writeMessage(1, this.params, () => this.params.serialize(writer));
if (this.auctions.length)
writer.writeRepeatedMessage(2, this.auctions, (item: dependency_2.vulcanize.auction.v1beta1.Auction) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GenesisState {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GenesisState();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.params, () => message.params = dependency_2.vulcanize.auction.v1beta1.Params.deserialize(reader));
break;
case 2:
reader.readMessage(message.auctions, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.auction.v1beta1.Auction.deserialize(reader), dependency_2.vulcanize.auction.v1beta1.Auction));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): GenesisState {
return GenesisState.deserialize(bytes);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,647 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/auction/v1beta1/tx.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./../../../google/protobuf/duration";
import * as dependency_3 from "./../../../cosmos/base/v1beta1/coin";
import * as dependency_4 from "./types";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.auction.v1beta1 {
export class MsgCreateAuction extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
commits_duration?: dependency_2.google.protobuf.Duration;
reveals_duration?: dependency_2.google.protobuf.Duration;
commit_fee?: dependency_3.cosmos.base.v1beta1.Coin;
reveal_fee?: dependency_3.cosmos.base.v1beta1.Coin;
minimum_bid?: dependency_3.cosmos.base.v1beta1.Coin;
signer?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("commits_duration" in data && data.commits_duration != undefined) {
this.commits_duration = data.commits_duration;
}
if ("reveals_duration" in data && data.reveals_duration != undefined) {
this.reveals_duration = data.reveals_duration;
}
if ("commit_fee" in data && data.commit_fee != undefined) {
this.commit_fee = data.commit_fee;
}
if ("reveal_fee" in data && data.reveal_fee != undefined) {
this.reveal_fee = data.reveal_fee;
}
if ("minimum_bid" in data && data.minimum_bid != undefined) {
this.minimum_bid = data.minimum_bid;
}
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
}
}
get commits_duration() {
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Duration, 1) as dependency_2.google.protobuf.Duration;
}
set commits_duration(value: dependency_2.google.protobuf.Duration) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_commits_duration() {
return pb_1.Message.getField(this, 1) != null;
}
get reveals_duration() {
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Duration, 2) as dependency_2.google.protobuf.Duration;
}
set reveals_duration(value: dependency_2.google.protobuf.Duration) {
pb_1.Message.setWrapperField(this, 2, value);
}
get has_reveals_duration() {
return pb_1.Message.getField(this, 2) != null;
}
get commit_fee() {
return pb_1.Message.getWrapperField(this, dependency_3.cosmos.base.v1beta1.Coin, 3) as dependency_3.cosmos.base.v1beta1.Coin;
}
set commit_fee(value: dependency_3.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 3, value);
}
get has_commit_fee() {
return pb_1.Message.getField(this, 3) != null;
}
get reveal_fee() {
return pb_1.Message.getWrapperField(this, dependency_3.cosmos.base.v1beta1.Coin, 4) as dependency_3.cosmos.base.v1beta1.Coin;
}
set reveal_fee(value: dependency_3.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 4, value);
}
get has_reveal_fee() {
return pb_1.Message.getField(this, 4) != null;
}
get minimum_bid() {
return pb_1.Message.getWrapperField(this, dependency_3.cosmos.base.v1beta1.Coin, 5) as dependency_3.cosmos.base.v1beta1.Coin;
}
set minimum_bid(value: dependency_3.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 5, value);
}
get has_minimum_bid() {
return pb_1.Message.getField(this, 5) != null;
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 6, value);
}
static fromObject(data: {
commits_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
reveals_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_3.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_3.cosmos.base.v1beta1.Coin.prototype.toObject>;
minimum_bid?: ReturnType<typeof dependency_3.cosmos.base.v1beta1.Coin.prototype.toObject>;
signer?: string;
}): MsgCreateAuction {
const message = new MsgCreateAuction({});
if (data.commits_duration != null) {
message.commits_duration = dependency_2.google.protobuf.Duration.fromObject(data.commits_duration);
}
if (data.reveals_duration != null) {
message.reveals_duration = dependency_2.google.protobuf.Duration.fromObject(data.reveals_duration);
}
if (data.commit_fee != null) {
message.commit_fee = dependency_3.cosmos.base.v1beta1.Coin.fromObject(data.commit_fee);
}
if (data.reveal_fee != null) {
message.reveal_fee = dependency_3.cosmos.base.v1beta1.Coin.fromObject(data.reveal_fee);
}
if (data.minimum_bid != null) {
message.minimum_bid = dependency_3.cosmos.base.v1beta1.Coin.fromObject(data.minimum_bid);
}
if (data.signer != null) {
message.signer = data.signer;
}
return message;
}
toObject() {
const data: {
commits_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
reveals_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_3.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_3.cosmos.base.v1beta1.Coin.prototype.toObject>;
minimum_bid?: ReturnType<typeof dependency_3.cosmos.base.v1beta1.Coin.prototype.toObject>;
signer?: string;
} = {};
if (this.commits_duration != null) {
data.commits_duration = this.commits_duration.toObject();
}
if (this.reveals_duration != null) {
data.reveals_duration = this.reveals_duration.toObject();
}
if (this.commit_fee != null) {
data.commit_fee = this.commit_fee.toObject();
}
if (this.reveal_fee != null) {
data.reveal_fee = this.reveal_fee.toObject();
}
if (this.minimum_bid != null) {
data.minimum_bid = this.minimum_bid.toObject();
}
if (this.signer != null) {
data.signer = this.signer;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_commits_duration)
writer.writeMessage(1, this.commits_duration, () => this.commits_duration.serialize(writer));
if (this.has_reveals_duration)
writer.writeMessage(2, this.reveals_duration, () => this.reveals_duration.serialize(writer));
if (this.has_commit_fee)
writer.writeMessage(3, this.commit_fee, () => this.commit_fee.serialize(writer));
if (this.has_reveal_fee)
writer.writeMessage(4, this.reveal_fee, () => this.reveal_fee.serialize(writer));
if (this.has_minimum_bid)
writer.writeMessage(5, this.minimum_bid, () => this.minimum_bid.serialize(writer));
if (this.signer.length)
writer.writeString(6, this.signer);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCreateAuction {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCreateAuction();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.commits_duration, () => message.commits_duration = dependency_2.google.protobuf.Duration.deserialize(reader));
break;
case 2:
reader.readMessage(message.reveals_duration, () => message.reveals_duration = dependency_2.google.protobuf.Duration.deserialize(reader));
break;
case 3:
reader.readMessage(message.commit_fee, () => message.commit_fee = dependency_3.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 4:
reader.readMessage(message.reveal_fee, () => message.reveal_fee = dependency_3.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 5:
reader.readMessage(message.minimum_bid, () => message.minimum_bid = dependency_3.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 6:
message.signer = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCreateAuction {
return MsgCreateAuction.deserialize(bytes);
}
}
export class MsgCreateAuctionResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
auction?: dependency_4.vulcanize.auction.v1beta1.Auction;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("auction" in data && data.auction != undefined) {
this.auction = data.auction;
}
}
}
get auction() {
return pb_1.Message.getWrapperField(this, dependency_4.vulcanize.auction.v1beta1.Auction, 1) as dependency_4.vulcanize.auction.v1beta1.Auction;
}
set auction(value: dependency_4.vulcanize.auction.v1beta1.Auction) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_auction() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
auction?: ReturnType<typeof dependency_4.vulcanize.auction.v1beta1.Auction.prototype.toObject>;
}): MsgCreateAuctionResponse {
const message = new MsgCreateAuctionResponse({});
if (data.auction != null) {
message.auction = dependency_4.vulcanize.auction.v1beta1.Auction.fromObject(data.auction);
}
return message;
}
toObject() {
const data: {
auction?: ReturnType<typeof dependency_4.vulcanize.auction.v1beta1.Auction.prototype.toObject>;
} = {};
if (this.auction != null) {
data.auction = this.auction.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_auction)
writer.writeMessage(1, this.auction, () => this.auction.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCreateAuctionResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCreateAuctionResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.auction, () => message.auction = dependency_4.vulcanize.auction.v1beta1.Auction.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCreateAuctionResponse {
return MsgCreateAuctionResponse.deserialize(bytes);
}
}
export class MsgCommitBid extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
auction_id?: string;
commit_hash?: string;
signer?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("auction_id" in data && data.auction_id != undefined) {
this.auction_id = data.auction_id;
}
if ("commit_hash" in data && data.commit_hash != undefined) {
this.commit_hash = data.commit_hash;
}
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
}
}
get auction_id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set auction_id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get commit_hash() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set commit_hash(value: string) {
pb_1.Message.setField(this, 2, value);
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 3, value);
}
static fromObject(data: {
auction_id?: string;
commit_hash?: string;
signer?: string;
}): MsgCommitBid {
const message = new MsgCommitBid({});
if (data.auction_id != null) {
message.auction_id = data.auction_id;
}
if (data.commit_hash != null) {
message.commit_hash = data.commit_hash;
}
if (data.signer != null) {
message.signer = data.signer;
}
return message;
}
toObject() {
const data: {
auction_id?: string;
commit_hash?: string;
signer?: string;
} = {};
if (this.auction_id != null) {
data.auction_id = this.auction_id;
}
if (this.commit_hash != null) {
data.commit_hash = this.commit_hash;
}
if (this.signer != null) {
data.signer = this.signer;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.auction_id.length)
writer.writeString(1, this.auction_id);
if (this.commit_hash.length)
writer.writeString(2, this.commit_hash);
if (this.signer.length)
writer.writeString(3, this.signer);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCommitBid {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCommitBid();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.auction_id = reader.readString();
break;
case 2:
message.commit_hash = reader.readString();
break;
case 3:
message.signer = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCommitBid {
return MsgCommitBid.deserialize(bytes);
}
}
export class MsgRevealBid extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
auction_id?: string;
reveal?: string;
signer?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("auction_id" in data && data.auction_id != undefined) {
this.auction_id = data.auction_id;
}
if ("reveal" in data && data.reveal != undefined) {
this.reveal = data.reveal;
}
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
}
}
get auction_id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set auction_id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get reveal() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set reveal(value: string) {
pb_1.Message.setField(this, 2, value);
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 3, value);
}
static fromObject(data: {
auction_id?: string;
reveal?: string;
signer?: string;
}): MsgRevealBid {
const message = new MsgRevealBid({});
if (data.auction_id != null) {
message.auction_id = data.auction_id;
}
if (data.reveal != null) {
message.reveal = data.reveal;
}
if (data.signer != null) {
message.signer = data.signer;
}
return message;
}
toObject() {
const data: {
auction_id?: string;
reveal?: string;
signer?: string;
} = {};
if (this.auction_id != null) {
data.auction_id = this.auction_id;
}
if (this.reveal != null) {
data.reveal = this.reveal;
}
if (this.signer != null) {
data.signer = this.signer;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.auction_id.length)
writer.writeString(1, this.auction_id);
if (this.reveal.length)
writer.writeString(2, this.reveal);
if (this.signer.length)
writer.writeString(3, this.signer);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgRevealBid {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgRevealBid();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.auction_id = reader.readString();
break;
case 2:
message.reveal = reader.readString();
break;
case 3:
message.signer = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgRevealBid {
return MsgRevealBid.deserialize(bytes);
}
}
export class MsgCommitBidResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
bid?: dependency_4.vulcanize.auction.v1beta1.Bid;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("bid" in data && data.bid != undefined) {
this.bid = data.bid;
}
}
}
get bid() {
return pb_1.Message.getWrapperField(this, dependency_4.vulcanize.auction.v1beta1.Bid, 1) as dependency_4.vulcanize.auction.v1beta1.Bid;
}
set bid(value: dependency_4.vulcanize.auction.v1beta1.Bid) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_bid() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
bid?: ReturnType<typeof dependency_4.vulcanize.auction.v1beta1.Bid.prototype.toObject>;
}): MsgCommitBidResponse {
const message = new MsgCommitBidResponse({});
if (data.bid != null) {
message.bid = dependency_4.vulcanize.auction.v1beta1.Bid.fromObject(data.bid);
}
return message;
}
toObject() {
const data: {
bid?: ReturnType<typeof dependency_4.vulcanize.auction.v1beta1.Bid.prototype.toObject>;
} = {};
if (this.bid != null) {
data.bid = this.bid.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_bid)
writer.writeMessage(1, this.bid, () => this.bid.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCommitBidResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCommitBidResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.bid, () => message.bid = dependency_4.vulcanize.auction.v1beta1.Bid.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCommitBidResponse {
return MsgCommitBidResponse.deserialize(bytes);
}
}
export class MsgRevealBidResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
auction?: dependency_4.vulcanize.auction.v1beta1.Auction;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("auction" in data && data.auction != undefined) {
this.auction = data.auction;
}
}
}
get auction() {
return pb_1.Message.getWrapperField(this, dependency_4.vulcanize.auction.v1beta1.Auction, 1) as dependency_4.vulcanize.auction.v1beta1.Auction;
}
set auction(value: dependency_4.vulcanize.auction.v1beta1.Auction) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_auction() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
auction?: ReturnType<typeof dependency_4.vulcanize.auction.v1beta1.Auction.prototype.toObject>;
}): MsgRevealBidResponse {
const message = new MsgRevealBidResponse({});
if (data.auction != null) {
message.auction = dependency_4.vulcanize.auction.v1beta1.Auction.fromObject(data.auction);
}
return message;
}
toObject() {
const data: {
auction?: ReturnType<typeof dependency_4.vulcanize.auction.v1beta1.Auction.prototype.toObject>;
} = {};
if (this.auction != null) {
data.auction = this.auction.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_auction)
writer.writeMessage(1, this.auction, () => this.auction.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgRevealBidResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgRevealBidResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.auction, () => message.auction = dependency_4.vulcanize.auction.v1beta1.Auction.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgRevealBidResponse {
return MsgRevealBidResponse.deserialize(bytes);
}
}
}

View File

@ -1,865 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/auction/v1beta1/types.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./../../../google/protobuf/duration";
import * as dependency_3 from "./../../../google/protobuf/timestamp";
import * as dependency_4 from "./../../../cosmos/base/v1beta1/coin";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.auction.v1beta1 {
export class Params extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
commits_duration?: dependency_2.google.protobuf.Duration;
reveals_duration?: dependency_2.google.protobuf.Duration;
commit_fee?: dependency_4.cosmos.base.v1beta1.Coin;
reveal_fee?: dependency_4.cosmos.base.v1beta1.Coin;
minimum_bid?: dependency_4.cosmos.base.v1beta1.Coin;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("commits_duration" in data && data.commits_duration != undefined) {
this.commits_duration = data.commits_duration;
}
if ("reveals_duration" in data && data.reveals_duration != undefined) {
this.reveals_duration = data.reveals_duration;
}
if ("commit_fee" in data && data.commit_fee != undefined) {
this.commit_fee = data.commit_fee;
}
if ("reveal_fee" in data && data.reveal_fee != undefined) {
this.reveal_fee = data.reveal_fee;
}
if ("minimum_bid" in data && data.minimum_bid != undefined) {
this.minimum_bid = data.minimum_bid;
}
}
}
get commits_duration() {
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Duration, 1) as dependency_2.google.protobuf.Duration;
}
set commits_duration(value: dependency_2.google.protobuf.Duration) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_commits_duration() {
return pb_1.Message.getField(this, 1) != null;
}
get reveals_duration() {
return pb_1.Message.getWrapperField(this, dependency_2.google.protobuf.Duration, 2) as dependency_2.google.protobuf.Duration;
}
set reveals_duration(value: dependency_2.google.protobuf.Duration) {
pb_1.Message.setWrapperField(this, 2, value);
}
get has_reveals_duration() {
return pb_1.Message.getField(this, 2) != null;
}
get commit_fee() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 3) as dependency_4.cosmos.base.v1beta1.Coin;
}
set commit_fee(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 3, value);
}
get has_commit_fee() {
return pb_1.Message.getField(this, 3) != null;
}
get reveal_fee() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 4) as dependency_4.cosmos.base.v1beta1.Coin;
}
set reveal_fee(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 4, value);
}
get has_reveal_fee() {
return pb_1.Message.getField(this, 4) != null;
}
get minimum_bid() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 5) as dependency_4.cosmos.base.v1beta1.Coin;
}
set minimum_bid(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 5, value);
}
get has_minimum_bid() {
return pb_1.Message.getField(this, 5) != null;
}
static fromObject(data: {
commits_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
reveals_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
minimum_bid?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
}): Params {
const message = new Params({});
if (data.commits_duration != null) {
message.commits_duration = dependency_2.google.protobuf.Duration.fromObject(data.commits_duration);
}
if (data.reveals_duration != null) {
message.reveals_duration = dependency_2.google.protobuf.Duration.fromObject(data.reveals_duration);
}
if (data.commit_fee != null) {
message.commit_fee = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.commit_fee);
}
if (data.reveal_fee != null) {
message.reveal_fee = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.reveal_fee);
}
if (data.minimum_bid != null) {
message.minimum_bid = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.minimum_bid);
}
return message;
}
toObject() {
const data: {
commits_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
reveals_duration?: ReturnType<typeof dependency_2.google.protobuf.Duration.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
minimum_bid?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
} = {};
if (this.commits_duration != null) {
data.commits_duration = this.commits_duration.toObject();
}
if (this.reveals_duration != null) {
data.reveals_duration = this.reveals_duration.toObject();
}
if (this.commit_fee != null) {
data.commit_fee = this.commit_fee.toObject();
}
if (this.reveal_fee != null) {
data.reveal_fee = this.reveal_fee.toObject();
}
if (this.minimum_bid != null) {
data.minimum_bid = this.minimum_bid.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_commits_duration)
writer.writeMessage(1, this.commits_duration, () => this.commits_duration.serialize(writer));
if (this.has_reveals_duration)
writer.writeMessage(2, this.reveals_duration, () => this.reveals_duration.serialize(writer));
if (this.has_commit_fee)
writer.writeMessage(3, this.commit_fee, () => this.commit_fee.serialize(writer));
if (this.has_reveal_fee)
writer.writeMessage(4, this.reveal_fee, () => this.reveal_fee.serialize(writer));
if (this.has_minimum_bid)
writer.writeMessage(5, this.minimum_bid, () => this.minimum_bid.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Params {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Params();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.commits_duration, () => message.commits_duration = dependency_2.google.protobuf.Duration.deserialize(reader));
break;
case 2:
reader.readMessage(message.reveals_duration, () => message.reveals_duration = dependency_2.google.protobuf.Duration.deserialize(reader));
break;
case 3:
reader.readMessage(message.commit_fee, () => message.commit_fee = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 4:
reader.readMessage(message.reveal_fee, () => message.reveal_fee = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 5:
reader.readMessage(message.minimum_bid, () => message.minimum_bid = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Params {
return Params.deserialize(bytes);
}
}
export class Auction extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
status?: string;
owner_address?: string;
create_time?: dependency_3.google.protobuf.Timestamp;
commits_end_time?: dependency_3.google.protobuf.Timestamp;
reveals_end_time?: dependency_3.google.protobuf.Timestamp;
commit_fee?: dependency_4.cosmos.base.v1beta1.Coin;
reveal_fee?: dependency_4.cosmos.base.v1beta1.Coin;
minimum_bid?: dependency_4.cosmos.base.v1beta1.Coin;
winner_address?: string;
winning_bid?: dependency_4.cosmos.base.v1beta1.Coin;
winning_price?: dependency_4.cosmos.base.v1beta1.Coin;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
if ("status" in data && data.status != undefined) {
this.status = data.status;
}
if ("owner_address" in data && data.owner_address != undefined) {
this.owner_address = data.owner_address;
}
if ("create_time" in data && data.create_time != undefined) {
this.create_time = data.create_time;
}
if ("commits_end_time" in data && data.commits_end_time != undefined) {
this.commits_end_time = data.commits_end_time;
}
if ("reveals_end_time" in data && data.reveals_end_time != undefined) {
this.reveals_end_time = data.reveals_end_time;
}
if ("commit_fee" in data && data.commit_fee != undefined) {
this.commit_fee = data.commit_fee;
}
if ("reveal_fee" in data && data.reveal_fee != undefined) {
this.reveal_fee = data.reveal_fee;
}
if ("minimum_bid" in data && data.minimum_bid != undefined) {
this.minimum_bid = data.minimum_bid;
}
if ("winner_address" in data && data.winner_address != undefined) {
this.winner_address = data.winner_address;
}
if ("winning_bid" in data && data.winning_bid != undefined) {
this.winning_bid = data.winning_bid;
}
if ("winning_price" in data && data.winning_price != undefined) {
this.winning_price = data.winning_price;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get status() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set status(value: string) {
pb_1.Message.setField(this, 2, value);
}
get owner_address() {
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
}
set owner_address(value: string) {
pb_1.Message.setField(this, 3, value);
}
get create_time() {
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Timestamp, 4) as dependency_3.google.protobuf.Timestamp;
}
set create_time(value: dependency_3.google.protobuf.Timestamp) {
pb_1.Message.setWrapperField(this, 4, value);
}
get has_create_time() {
return pb_1.Message.getField(this, 4) != null;
}
get commits_end_time() {
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Timestamp, 5) as dependency_3.google.protobuf.Timestamp;
}
set commits_end_time(value: dependency_3.google.protobuf.Timestamp) {
pb_1.Message.setWrapperField(this, 5, value);
}
get has_commits_end_time() {
return pb_1.Message.getField(this, 5) != null;
}
get reveals_end_time() {
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Timestamp, 6) as dependency_3.google.protobuf.Timestamp;
}
set reveals_end_time(value: dependency_3.google.protobuf.Timestamp) {
pb_1.Message.setWrapperField(this, 6, value);
}
get has_reveals_end_time() {
return pb_1.Message.getField(this, 6) != null;
}
get commit_fee() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 7) as dependency_4.cosmos.base.v1beta1.Coin;
}
set commit_fee(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 7, value);
}
get has_commit_fee() {
return pb_1.Message.getField(this, 7) != null;
}
get reveal_fee() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 8) as dependency_4.cosmos.base.v1beta1.Coin;
}
set reveal_fee(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 8, value);
}
get has_reveal_fee() {
return pb_1.Message.getField(this, 8) != null;
}
get minimum_bid() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 9) as dependency_4.cosmos.base.v1beta1.Coin;
}
set minimum_bid(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 9, value);
}
get has_minimum_bid() {
return pb_1.Message.getField(this, 9) != null;
}
get winner_address() {
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
}
set winner_address(value: string) {
pb_1.Message.setField(this, 10, value);
}
get winning_bid() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 11) as dependency_4.cosmos.base.v1beta1.Coin;
}
set winning_bid(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 11, value);
}
get has_winning_bid() {
return pb_1.Message.getField(this, 11) != null;
}
get winning_price() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 12) as dependency_4.cosmos.base.v1beta1.Coin;
}
set winning_price(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 12, value);
}
get has_winning_price() {
return pb_1.Message.getField(this, 12) != null;
}
static fromObject(data: {
id?: string;
status?: string;
owner_address?: string;
create_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
commits_end_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
reveals_end_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
minimum_bid?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
winner_address?: string;
winning_bid?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
winning_price?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
}): Auction {
const message = new Auction({});
if (data.id != null) {
message.id = data.id;
}
if (data.status != null) {
message.status = data.status;
}
if (data.owner_address != null) {
message.owner_address = data.owner_address;
}
if (data.create_time != null) {
message.create_time = dependency_3.google.protobuf.Timestamp.fromObject(data.create_time);
}
if (data.commits_end_time != null) {
message.commits_end_time = dependency_3.google.protobuf.Timestamp.fromObject(data.commits_end_time);
}
if (data.reveals_end_time != null) {
message.reveals_end_time = dependency_3.google.protobuf.Timestamp.fromObject(data.reveals_end_time);
}
if (data.commit_fee != null) {
message.commit_fee = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.commit_fee);
}
if (data.reveal_fee != null) {
message.reveal_fee = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.reveal_fee);
}
if (data.minimum_bid != null) {
message.minimum_bid = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.minimum_bid);
}
if (data.winner_address != null) {
message.winner_address = data.winner_address;
}
if (data.winning_bid != null) {
message.winning_bid = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.winning_bid);
}
if (data.winning_price != null) {
message.winning_price = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.winning_price);
}
return message;
}
toObject() {
const data: {
id?: string;
status?: string;
owner_address?: string;
create_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
commits_end_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
reveals_end_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
minimum_bid?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
winner_address?: string;
winning_bid?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
winning_price?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
} = {};
if (this.id != null) {
data.id = this.id;
}
if (this.status != null) {
data.status = this.status;
}
if (this.owner_address != null) {
data.owner_address = this.owner_address;
}
if (this.create_time != null) {
data.create_time = this.create_time.toObject();
}
if (this.commits_end_time != null) {
data.commits_end_time = this.commits_end_time.toObject();
}
if (this.reveals_end_time != null) {
data.reveals_end_time = this.reveals_end_time.toObject();
}
if (this.commit_fee != null) {
data.commit_fee = this.commit_fee.toObject();
}
if (this.reveal_fee != null) {
data.reveal_fee = this.reveal_fee.toObject();
}
if (this.minimum_bid != null) {
data.minimum_bid = this.minimum_bid.toObject();
}
if (this.winner_address != null) {
data.winner_address = this.winner_address;
}
if (this.winning_bid != null) {
data.winning_bid = this.winning_bid.toObject();
}
if (this.winning_price != null) {
data.winning_price = this.winning_price.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (this.status.length)
writer.writeString(2, this.status);
if (this.owner_address.length)
writer.writeString(3, this.owner_address);
if (this.has_create_time)
writer.writeMessage(4, this.create_time, () => this.create_time.serialize(writer));
if (this.has_commits_end_time)
writer.writeMessage(5, this.commits_end_time, () => this.commits_end_time.serialize(writer));
if (this.has_reveals_end_time)
writer.writeMessage(6, this.reveals_end_time, () => this.reveals_end_time.serialize(writer));
if (this.has_commit_fee)
writer.writeMessage(7, this.commit_fee, () => this.commit_fee.serialize(writer));
if (this.has_reveal_fee)
writer.writeMessage(8, this.reveal_fee, () => this.reveal_fee.serialize(writer));
if (this.has_minimum_bid)
writer.writeMessage(9, this.minimum_bid, () => this.minimum_bid.serialize(writer));
if (this.winner_address.length)
writer.writeString(10, this.winner_address);
if (this.has_winning_bid)
writer.writeMessage(11, this.winning_bid, () => this.winning_bid.serialize(writer));
if (this.has_winning_price)
writer.writeMessage(12, this.winning_price, () => this.winning_price.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Auction {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Auction();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
case 2:
message.status = reader.readString();
break;
case 3:
message.owner_address = reader.readString();
break;
case 4:
reader.readMessage(message.create_time, () => message.create_time = dependency_3.google.protobuf.Timestamp.deserialize(reader));
break;
case 5:
reader.readMessage(message.commits_end_time, () => message.commits_end_time = dependency_3.google.protobuf.Timestamp.deserialize(reader));
break;
case 6:
reader.readMessage(message.reveals_end_time, () => message.reveals_end_time = dependency_3.google.protobuf.Timestamp.deserialize(reader));
break;
case 7:
reader.readMessage(message.commit_fee, () => message.commit_fee = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 8:
reader.readMessage(message.reveal_fee, () => message.reveal_fee = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 9:
reader.readMessage(message.minimum_bid, () => message.minimum_bid = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 10:
message.winner_address = reader.readString();
break;
case 11:
reader.readMessage(message.winning_bid, () => message.winning_bid = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 12:
reader.readMessage(message.winning_price, () => message.winning_price = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Auction {
return Auction.deserialize(bytes);
}
}
export class Auctions extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
auctions?: Auction[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("auctions" in data && data.auctions != undefined) {
this.auctions = data.auctions;
}
}
}
get auctions() {
return pb_1.Message.getRepeatedWrapperField(this, Auction, 1) as Auction[];
}
set auctions(value: Auction[]) {
pb_1.Message.setRepeatedWrapperField(this, 1, value);
}
static fromObject(data: {
auctions?: ReturnType<typeof Auction.prototype.toObject>[];
}): Auctions {
const message = new Auctions({});
if (data.auctions != null) {
message.auctions = data.auctions.map(item => Auction.fromObject(item));
}
return message;
}
toObject() {
const data: {
auctions?: ReturnType<typeof Auction.prototype.toObject>[];
} = {};
if (this.auctions != null) {
data.auctions = this.auctions.map((item: Auction) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.auctions.length)
writer.writeRepeatedMessage(1, this.auctions, (item: Auction) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Auctions {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Auctions();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.auctions, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Auction.deserialize(reader), Auction));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Auctions {
return Auctions.deserialize(bytes);
}
}
export class Bid extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
auction_id?: string;
bidder_address?: string;
status?: string;
commit_hash?: string;
commit_time?: dependency_3.google.protobuf.Timestamp;
commit_fee?: dependency_4.cosmos.base.v1beta1.Coin;
reveal_time?: dependency_3.google.protobuf.Timestamp;
reveal_fee?: dependency_4.cosmos.base.v1beta1.Coin;
bid_amount?: dependency_4.cosmos.base.v1beta1.Coin;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("auction_id" in data && data.auction_id != undefined) {
this.auction_id = data.auction_id;
}
if ("bidder_address" in data && data.bidder_address != undefined) {
this.bidder_address = data.bidder_address;
}
if ("status" in data && data.status != undefined) {
this.status = data.status;
}
if ("commit_hash" in data && data.commit_hash != undefined) {
this.commit_hash = data.commit_hash;
}
if ("commit_time" in data && data.commit_time != undefined) {
this.commit_time = data.commit_time;
}
if ("commit_fee" in data && data.commit_fee != undefined) {
this.commit_fee = data.commit_fee;
}
if ("reveal_time" in data && data.reveal_time != undefined) {
this.reveal_time = data.reveal_time;
}
if ("reveal_fee" in data && data.reveal_fee != undefined) {
this.reveal_fee = data.reveal_fee;
}
if ("bid_amount" in data && data.bid_amount != undefined) {
this.bid_amount = data.bid_amount;
}
}
}
get auction_id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set auction_id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get bidder_address() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set bidder_address(value: string) {
pb_1.Message.setField(this, 2, value);
}
get status() {
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
}
set status(value: string) {
pb_1.Message.setField(this, 3, value);
}
get commit_hash() {
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
}
set commit_hash(value: string) {
pb_1.Message.setField(this, 4, value);
}
get commit_time() {
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Timestamp, 5) as dependency_3.google.protobuf.Timestamp;
}
set commit_time(value: dependency_3.google.protobuf.Timestamp) {
pb_1.Message.setWrapperField(this, 5, value);
}
get has_commit_time() {
return pb_1.Message.getField(this, 5) != null;
}
get commit_fee() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 6) as dependency_4.cosmos.base.v1beta1.Coin;
}
set commit_fee(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 6, value);
}
get has_commit_fee() {
return pb_1.Message.getField(this, 6) != null;
}
get reveal_time() {
return pb_1.Message.getWrapperField(this, dependency_3.google.protobuf.Timestamp, 7) as dependency_3.google.protobuf.Timestamp;
}
set reveal_time(value: dependency_3.google.protobuf.Timestamp) {
pb_1.Message.setWrapperField(this, 7, value);
}
get has_reveal_time() {
return pb_1.Message.getField(this, 7) != null;
}
get reveal_fee() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 8) as dependency_4.cosmos.base.v1beta1.Coin;
}
set reveal_fee(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 8, value);
}
get has_reveal_fee() {
return pb_1.Message.getField(this, 8) != null;
}
get bid_amount() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.v1beta1.Coin, 9) as dependency_4.cosmos.base.v1beta1.Coin;
}
set bid_amount(value: dependency_4.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 9, value);
}
get has_bid_amount() {
return pb_1.Message.getField(this, 9) != null;
}
static fromObject(data: {
auction_id?: string;
bidder_address?: string;
status?: string;
commit_hash?: string;
commit_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
bid_amount?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
}): Bid {
const message = new Bid({});
if (data.auction_id != null) {
message.auction_id = data.auction_id;
}
if (data.bidder_address != null) {
message.bidder_address = data.bidder_address;
}
if (data.status != null) {
message.status = data.status;
}
if (data.commit_hash != null) {
message.commit_hash = data.commit_hash;
}
if (data.commit_time != null) {
message.commit_time = dependency_3.google.protobuf.Timestamp.fromObject(data.commit_time);
}
if (data.commit_fee != null) {
message.commit_fee = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.commit_fee);
}
if (data.reveal_time != null) {
message.reveal_time = dependency_3.google.protobuf.Timestamp.fromObject(data.reveal_time);
}
if (data.reveal_fee != null) {
message.reveal_fee = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.reveal_fee);
}
if (data.bid_amount != null) {
message.bid_amount = dependency_4.cosmos.base.v1beta1.Coin.fromObject(data.bid_amount);
}
return message;
}
toObject() {
const data: {
auction_id?: string;
bidder_address?: string;
status?: string;
commit_hash?: string;
commit_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
commit_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
reveal_time?: ReturnType<typeof dependency_3.google.protobuf.Timestamp.prototype.toObject>;
reveal_fee?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
bid_amount?: ReturnType<typeof dependency_4.cosmos.base.v1beta1.Coin.prototype.toObject>;
} = {};
if (this.auction_id != null) {
data.auction_id = this.auction_id;
}
if (this.bidder_address != null) {
data.bidder_address = this.bidder_address;
}
if (this.status != null) {
data.status = this.status;
}
if (this.commit_hash != null) {
data.commit_hash = this.commit_hash;
}
if (this.commit_time != null) {
data.commit_time = this.commit_time.toObject();
}
if (this.commit_fee != null) {
data.commit_fee = this.commit_fee.toObject();
}
if (this.reveal_time != null) {
data.reveal_time = this.reveal_time.toObject();
}
if (this.reveal_fee != null) {
data.reveal_fee = this.reveal_fee.toObject();
}
if (this.bid_amount != null) {
data.bid_amount = this.bid_amount.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.auction_id.length)
writer.writeString(1, this.auction_id);
if (this.bidder_address.length)
writer.writeString(2, this.bidder_address);
if (this.status.length)
writer.writeString(3, this.status);
if (this.commit_hash.length)
writer.writeString(4, this.commit_hash);
if (this.has_commit_time)
writer.writeMessage(5, this.commit_time, () => this.commit_time.serialize(writer));
if (this.has_commit_fee)
writer.writeMessage(6, this.commit_fee, () => this.commit_fee.serialize(writer));
if (this.has_reveal_time)
writer.writeMessage(7, this.reveal_time, () => this.reveal_time.serialize(writer));
if (this.has_reveal_fee)
writer.writeMessage(8, this.reveal_fee, () => this.reveal_fee.serialize(writer));
if (this.has_bid_amount)
writer.writeMessage(9, this.bid_amount, () => this.bid_amount.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Bid {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Bid();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.auction_id = reader.readString();
break;
case 2:
message.bidder_address = reader.readString();
break;
case 3:
message.status = reader.readString();
break;
case 4:
message.commit_hash = reader.readString();
break;
case 5:
reader.readMessage(message.commit_time, () => message.commit_time = dependency_3.google.protobuf.Timestamp.deserialize(reader));
break;
case 6:
reader.readMessage(message.commit_fee, () => message.commit_fee = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 7:
reader.readMessage(message.reveal_time, () => message.reveal_time = dependency_3.google.protobuf.Timestamp.deserialize(reader));
break;
case 8:
reader.readMessage(message.reveal_fee, () => message.reveal_fee = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
case 9:
reader.readMessage(message.bid_amount, () => message.bid_amount = dependency_4.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Bid {
return Bid.deserialize(bytes);
}
}
}

View File

@ -1,195 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/bond/v1beta1/bond.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./../../../cosmos/base/v1beta1/coin";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.bond.v1beta1 {
export class Params extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
max_bond_amount?: dependency_2.cosmos.base.v1beta1.Coin;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("max_bond_amount" in data && data.max_bond_amount != undefined) {
this.max_bond_amount = data.max_bond_amount;
}
}
}
get max_bond_amount() {
return pb_1.Message.getWrapperField(this, dependency_2.cosmos.base.v1beta1.Coin, 1) as dependency_2.cosmos.base.v1beta1.Coin;
}
set max_bond_amount(value: dependency_2.cosmos.base.v1beta1.Coin) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_max_bond_amount() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
max_bond_amount?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>;
}): Params {
const message = new Params({});
if (data.max_bond_amount != null) {
message.max_bond_amount = dependency_2.cosmos.base.v1beta1.Coin.fromObject(data.max_bond_amount);
}
return message;
}
toObject() {
const data: {
max_bond_amount?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>;
} = {};
if (this.max_bond_amount != null) {
data.max_bond_amount = this.max_bond_amount.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_max_bond_amount)
writer.writeMessage(1, this.max_bond_amount, () => this.max_bond_amount.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Params {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Params();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.max_bond_amount, () => message.max_bond_amount = dependency_2.cosmos.base.v1beta1.Coin.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Params {
return Params.deserialize(bytes);
}
}
export class Bond extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
owner?: string;
balance?: dependency_2.cosmos.base.v1beta1.Coin[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
if ("owner" in data && data.owner != undefined) {
this.owner = data.owner;
}
if ("balance" in data && data.balance != undefined) {
this.balance = data.balance;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get owner() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set owner(value: string) {
pb_1.Message.setField(this, 2, value);
}
get balance() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.cosmos.base.v1beta1.Coin, 3) as dependency_2.cosmos.base.v1beta1.Coin[];
}
set balance(value: dependency_2.cosmos.base.v1beta1.Coin[]) {
pb_1.Message.setRepeatedWrapperField(this, 3, value);
}
static fromObject(data: {
id?: string;
owner?: string;
balance?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
}): Bond {
const message = new Bond({});
if (data.id != null) {
message.id = data.id;
}
if (data.owner != null) {
message.owner = data.owner;
}
if (data.balance != null) {
message.balance = data.balance.map(item => dependency_2.cosmos.base.v1beta1.Coin.fromObject(item));
}
return message;
}
toObject() {
const data: {
id?: string;
owner?: string;
balance?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
} = {};
if (this.id != null) {
data.id = this.id;
}
if (this.owner != null) {
data.owner = this.owner;
}
if (this.balance != null) {
data.balance = this.balance.map((item: dependency_2.cosmos.base.v1beta1.Coin) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (this.owner.length)
writer.writeString(2, this.owner);
if (this.balance.length)
writer.writeRepeatedMessage(3, this.balance, (item: dependency_2.cosmos.base.v1beta1.Coin) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Bond {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Bond();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
case 2:
message.owner = reader.readString();
break;
case 3:
reader.readMessage(message.balance, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_2.cosmos.base.v1beta1.Coin.deserialize(reader), dependency_2.cosmos.base.v1beta1.Coin));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): Bond {
return Bond.deserialize(bytes);
}
}
}

View File

@ -1,105 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/bond/v1beta1/genesis.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./bond";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.bond.v1beta1 {
export class GenesisState extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
params?: dependency_2.vulcanize.bond.v1beta1.Params;
bonds?: dependency_2.vulcanize.bond.v1beta1.Bond[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("params" in data && data.params != undefined) {
this.params = data.params;
}
if ("bonds" in data && data.bonds != undefined) {
this.bonds = data.bonds;
}
}
}
get params() {
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.bond.v1beta1.Params, 1) as dependency_2.vulcanize.bond.v1beta1.Params;
}
set params(value: dependency_2.vulcanize.bond.v1beta1.Params) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_params() {
return pb_1.Message.getField(this, 1) != null;
}
get bonds() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.bond.v1beta1.Bond, 2) as dependency_2.vulcanize.bond.v1beta1.Bond[];
}
set bonds(value: dependency_2.vulcanize.bond.v1beta1.Bond[]) {
pb_1.Message.setRepeatedWrapperField(this, 2, value);
}
static fromObject(data: {
params?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Params.prototype.toObject>;
bonds?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>[];
}): GenesisState {
const message = new GenesisState({});
if (data.params != null) {
message.params = dependency_2.vulcanize.bond.v1beta1.Params.fromObject(data.params);
}
if (data.bonds != null) {
message.bonds = data.bonds.map(item => dependency_2.vulcanize.bond.v1beta1.Bond.fromObject(item));
}
return message;
}
toObject() {
const data: {
params?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Params.prototype.toObject>;
bonds?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>[];
} = {};
if (this.params != null) {
data.params = this.params.toObject();
}
if (this.bonds != null) {
data.bonds = this.bonds.map((item: dependency_2.vulcanize.bond.v1beta1.Bond) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_params)
writer.writeMessage(1, this.params, () => this.params.serialize(writer));
if (this.bonds.length)
writer.writeRepeatedMessage(2, this.bonds, (item: dependency_2.vulcanize.bond.v1beta1.Bond) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GenesisState {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GenesisState();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.params, () => message.params = dependency_2.vulcanize.bond.v1beta1.Params.deserialize(reader));
break;
case 2:
reader.readMessage(message.bonds, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.bond.v1beta1.Bond.deserialize(reader), dependency_2.vulcanize.bond.v1beta1.Bond));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): GenesisState {
return GenesisState.deserialize(bytes);
}
}
}

View File

@ -1,718 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/bond/v1beta1/query.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./bond";
import * as dependency_3 from "./../../../google/api/annotations";
import * as dependency_4 from "./../../../cosmos/base/query/v1beta1/pagination";
import * as dependency_5 from "./../../../cosmos/base/v1beta1/coin";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.bond.v1beta1 {
export class QueryParamsRequest extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { }
}
static fromObject(data: {}): QueryParamsRequest {
const message = new QueryParamsRequest({});
return message;
}
toObject() {
const data: {} = {};
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryParamsRequest {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryParamsRequest();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryParamsRequest {
return QueryParamsRequest.deserialize(bytes);
}
}
export class QueryParamsResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
params?: dependency_2.vulcanize.bond.v1beta1.Params;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("params" in data && data.params != undefined) {
this.params = data.params;
}
}
}
get params() {
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.bond.v1beta1.Params, 1) as dependency_2.vulcanize.bond.v1beta1.Params;
}
set params(value: dependency_2.vulcanize.bond.v1beta1.Params) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_params() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
params?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Params.prototype.toObject>;
}): QueryParamsResponse {
const message = new QueryParamsResponse({});
if (data.params != null) {
message.params = dependency_2.vulcanize.bond.v1beta1.Params.fromObject(data.params);
}
return message;
}
toObject() {
const data: {
params?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Params.prototype.toObject>;
} = {};
if (this.params != null) {
data.params = this.params.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_params)
writer.writeMessage(1, this.params, () => this.params.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryParamsResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryParamsResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.params, () => message.params = dependency_2.vulcanize.bond.v1beta1.Params.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryParamsResponse {
return QueryParamsResponse.deserialize(bytes);
}
}
export class QueryGetBondsRequest extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
pagination?: dependency_4.cosmos.base.query.v1beta1.PageRequest;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("pagination" in data && data.pagination != undefined) {
this.pagination = data.pagination;
}
}
}
get pagination() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.query.v1beta1.PageRequest, 1) as dependency_4.cosmos.base.query.v1beta1.PageRequest;
}
set pagination(value: dependency_4.cosmos.base.query.v1beta1.PageRequest) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_pagination() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageRequest.prototype.toObject>;
}): QueryGetBondsRequest {
const message = new QueryGetBondsRequest({});
if (data.pagination != null) {
message.pagination = dependency_4.cosmos.base.query.v1beta1.PageRequest.fromObject(data.pagination);
}
return message;
}
toObject() {
const data: {
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageRequest.prototype.toObject>;
} = {};
if (this.pagination != null) {
data.pagination = this.pagination.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_pagination)
writer.writeMessage(1, this.pagination, () => this.pagination.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondsRequest {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondsRequest();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.pagination, () => message.pagination = dependency_4.cosmos.base.query.v1beta1.PageRequest.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondsRequest {
return QueryGetBondsRequest.deserialize(bytes);
}
}
export class QueryGetBondsResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
bonds?: dependency_2.vulcanize.bond.v1beta1.Bond[];
pagination?: dependency_4.cosmos.base.query.v1beta1.PageResponse;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("bonds" in data && data.bonds != undefined) {
this.bonds = data.bonds;
}
if ("pagination" in data && data.pagination != undefined) {
this.pagination = data.pagination;
}
}
}
get bonds() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.bond.v1beta1.Bond, 1) as dependency_2.vulcanize.bond.v1beta1.Bond[];
}
set bonds(value: dependency_2.vulcanize.bond.v1beta1.Bond[]) {
pb_1.Message.setRepeatedWrapperField(this, 1, value);
}
get pagination() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.query.v1beta1.PageResponse, 2) as dependency_4.cosmos.base.query.v1beta1.PageResponse;
}
set pagination(value: dependency_4.cosmos.base.query.v1beta1.PageResponse) {
pb_1.Message.setWrapperField(this, 2, value);
}
get has_pagination() {
return pb_1.Message.getField(this, 2) != null;
}
static fromObject(data: {
bonds?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>[];
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
}): QueryGetBondsResponse {
const message = new QueryGetBondsResponse({});
if (data.bonds != null) {
message.bonds = data.bonds.map(item => dependency_2.vulcanize.bond.v1beta1.Bond.fromObject(item));
}
if (data.pagination != null) {
message.pagination = dependency_4.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
}
return message;
}
toObject() {
const data: {
bonds?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>[];
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
} = {};
if (this.bonds != null) {
data.bonds = this.bonds.map((item: dependency_2.vulcanize.bond.v1beta1.Bond) => item.toObject());
}
if (this.pagination != null) {
data.pagination = this.pagination.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.bonds.length)
writer.writeRepeatedMessage(1, this.bonds, (item: dependency_2.vulcanize.bond.v1beta1.Bond) => item.serialize(writer));
if (this.has_pagination)
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondsResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondsResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.bonds, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_2.vulcanize.bond.v1beta1.Bond.deserialize(reader), dependency_2.vulcanize.bond.v1beta1.Bond));
break;
case 2:
reader.readMessage(message.pagination, () => message.pagination = dependency_4.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondsResponse {
return QueryGetBondsResponse.deserialize(bytes);
}
}
export class QueryGetBondByIdRequest extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
static fromObject(data: {
id?: string;
}): QueryGetBondByIdRequest {
const message = new QueryGetBondByIdRequest({});
if (data.id != null) {
message.id = data.id;
}
return message;
}
toObject() {
const data: {
id?: string;
} = {};
if (this.id != null) {
data.id = this.id;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondByIdRequest {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondByIdRequest();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondByIdRequest {
return QueryGetBondByIdRequest.deserialize(bytes);
}
}
export class QueryGetBondByIdResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
bond?: dependency_2.vulcanize.bond.v1beta1.Bond;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("bond" in data && data.bond != undefined) {
this.bond = data.bond;
}
}
}
get bond() {
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.bond.v1beta1.Bond, 1) as dependency_2.vulcanize.bond.v1beta1.Bond;
}
set bond(value: dependency_2.vulcanize.bond.v1beta1.Bond) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_bond() {
return pb_1.Message.getField(this, 1) != null;
}
static fromObject(data: {
bond?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>;
}): QueryGetBondByIdResponse {
const message = new QueryGetBondByIdResponse({});
if (data.bond != null) {
message.bond = dependency_2.vulcanize.bond.v1beta1.Bond.fromObject(data.bond);
}
return message;
}
toObject() {
const data: {
bond?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>;
} = {};
if (this.bond != null) {
data.bond = this.bond.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_bond)
writer.writeMessage(1, this.bond, () => this.bond.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondByIdResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondByIdResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.bond, () => message.bond = dependency_2.vulcanize.bond.v1beta1.Bond.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondByIdResponse {
return QueryGetBondByIdResponse.deserialize(bytes);
}
}
export class QueryGetBondsByOwnerRequest extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
owner?: string;
pagination?: dependency_4.cosmos.base.query.v1beta1.PageResponse;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("owner" in data && data.owner != undefined) {
this.owner = data.owner;
}
if ("pagination" in data && data.pagination != undefined) {
this.pagination = data.pagination;
}
}
}
get owner() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set owner(value: string) {
pb_1.Message.setField(this, 1, value);
}
get pagination() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.query.v1beta1.PageResponse, 2) as dependency_4.cosmos.base.query.v1beta1.PageResponse;
}
set pagination(value: dependency_4.cosmos.base.query.v1beta1.PageResponse) {
pb_1.Message.setWrapperField(this, 2, value);
}
get has_pagination() {
return pb_1.Message.getField(this, 2) != null;
}
static fromObject(data: {
owner?: string;
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
}): QueryGetBondsByOwnerRequest {
const message = new QueryGetBondsByOwnerRequest({});
if (data.owner != null) {
message.owner = data.owner;
}
if (data.pagination != null) {
message.pagination = dependency_4.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
}
return message;
}
toObject() {
const data: {
owner?: string;
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
} = {};
if (this.owner != null) {
data.owner = this.owner;
}
if (this.pagination != null) {
data.pagination = this.pagination.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.owner.length)
writer.writeString(1, this.owner);
if (this.has_pagination)
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondsByOwnerRequest {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondsByOwnerRequest();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.owner = reader.readString();
break;
case 2:
reader.readMessage(message.pagination, () => message.pagination = dependency_4.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondsByOwnerRequest {
return QueryGetBondsByOwnerRequest.deserialize(bytes);
}
}
export class QueryGetBondsByOwnerResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
bonds?: dependency_2.vulcanize.bond.v1beta1.Bond[];
pagination?: dependency_4.cosmos.base.query.v1beta1.PageResponse;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("bonds" in data && data.bonds != undefined) {
this.bonds = data.bonds;
}
if ("pagination" in data && data.pagination != undefined) {
this.pagination = data.pagination;
}
}
}
get bonds() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.bond.v1beta1.Bond, 1) as dependency_2.vulcanize.bond.v1beta1.Bond[];
}
set bonds(value: dependency_2.vulcanize.bond.v1beta1.Bond[]) {
pb_1.Message.setRepeatedWrapperField(this, 1, value);
}
get pagination() {
return pb_1.Message.getWrapperField(this, dependency_4.cosmos.base.query.v1beta1.PageResponse, 2) as dependency_4.cosmos.base.query.v1beta1.PageResponse;
}
set pagination(value: dependency_4.cosmos.base.query.v1beta1.PageResponse) {
pb_1.Message.setWrapperField(this, 2, value);
}
get has_pagination() {
return pb_1.Message.getField(this, 2) != null;
}
static fromObject(data: {
bonds?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>[];
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
}): QueryGetBondsByOwnerResponse {
const message = new QueryGetBondsByOwnerResponse({});
if (data.bonds != null) {
message.bonds = data.bonds.map(item => dependency_2.vulcanize.bond.v1beta1.Bond.fromObject(item));
}
if (data.pagination != null) {
message.pagination = dependency_4.cosmos.base.query.v1beta1.PageResponse.fromObject(data.pagination);
}
return message;
}
toObject() {
const data: {
bonds?: ReturnType<typeof dependency_2.vulcanize.bond.v1beta1.Bond.prototype.toObject>[];
pagination?: ReturnType<typeof dependency_4.cosmos.base.query.v1beta1.PageResponse.prototype.toObject>;
} = {};
if (this.bonds != null) {
data.bonds = this.bonds.map((item: dependency_2.vulcanize.bond.v1beta1.Bond) => item.toObject());
}
if (this.pagination != null) {
data.pagination = this.pagination.toObject();
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.bonds.length)
writer.writeRepeatedMessage(1, this.bonds, (item: dependency_2.vulcanize.bond.v1beta1.Bond) => item.serialize(writer));
if (this.has_pagination)
writer.writeMessage(2, this.pagination, () => this.pagination.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondsByOwnerResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondsByOwnerResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.bonds, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_2.vulcanize.bond.v1beta1.Bond.deserialize(reader), dependency_2.vulcanize.bond.v1beta1.Bond));
break;
case 2:
reader.readMessage(message.pagination, () => message.pagination = dependency_4.cosmos.base.query.v1beta1.PageResponse.deserialize(reader));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondsByOwnerResponse {
return QueryGetBondsByOwnerResponse.deserialize(bytes);
}
}
export class QueryGetBondModuleBalanceRequest extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { }
}
static fromObject(data: {}): QueryGetBondModuleBalanceRequest {
const message = new QueryGetBondModuleBalanceRequest({});
return message;
}
toObject() {
const data: {} = {};
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondModuleBalanceRequest {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondModuleBalanceRequest();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondModuleBalanceRequest {
return QueryGetBondModuleBalanceRequest.deserialize(bytes);
}
}
export class QueryGetBondModuleBalanceResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
balance?: dependency_5.cosmos.base.v1beta1.Coin[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("balance" in data && data.balance != undefined) {
this.balance = data.balance;
}
}
}
get balance() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_5.cosmos.base.v1beta1.Coin, 2) as dependency_5.cosmos.base.v1beta1.Coin[];
}
set balance(value: dependency_5.cosmos.base.v1beta1.Coin[]) {
pb_1.Message.setRepeatedWrapperField(this, 2, value);
}
static fromObject(data: {
balance?: ReturnType<typeof dependency_5.cosmos.base.v1beta1.Coin.prototype.toObject>[];
}): QueryGetBondModuleBalanceResponse {
const message = new QueryGetBondModuleBalanceResponse({});
if (data.balance != null) {
message.balance = data.balance.map(item => dependency_5.cosmos.base.v1beta1.Coin.fromObject(item));
}
return message;
}
toObject() {
const data: {
balance?: ReturnType<typeof dependency_5.cosmos.base.v1beta1.Coin.prototype.toObject>[];
} = {};
if (this.balance != null) {
data.balance = this.balance.map((item: dependency_5.cosmos.base.v1beta1.Coin) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.balance.length)
writer.writeRepeatedMessage(2, this.balance, (item: dependency_5.cosmos.base.v1beta1.Coin) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QueryGetBondModuleBalanceResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new QueryGetBondModuleBalanceResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 2:
reader.readMessage(message.balance, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_5.cosmos.base.v1beta1.Coin.deserialize(reader), dependency_5.cosmos.base.v1beta1.Coin));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): QueryGetBondModuleBalanceResponse {
return QueryGetBondModuleBalanceResponse.deserialize(bytes);
}
}
}

View File

@ -1,605 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/bond/v1beta1/tx.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./../../../cosmos/base/v1beta1/coin";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.bond.v1beta1 {
export class MsgCreateBond extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
signer?: string;
coins?: dependency_2.cosmos.base.v1beta1.Coin[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
if ("coins" in data && data.coins != undefined) {
this.coins = data.coins;
}
}
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 1, value);
}
get coins() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.cosmos.base.v1beta1.Coin, 2) as dependency_2.cosmos.base.v1beta1.Coin[];
}
set coins(value: dependency_2.cosmos.base.v1beta1.Coin[]) {
pb_1.Message.setRepeatedWrapperField(this, 2, value);
}
static fromObject(data: {
signer?: string;
coins?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
}): MsgCreateBond {
const message = new MsgCreateBond({});
if (data.signer != null) {
message.signer = data.signer;
}
if (data.coins != null) {
message.coins = data.coins.map(item => dependency_2.cosmos.base.v1beta1.Coin.fromObject(item));
}
return message;
}
toObject() {
const data: {
signer?: string;
coins?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
} = {};
if (this.signer != null) {
data.signer = this.signer;
}
if (this.coins != null) {
data.coins = this.coins.map((item: dependency_2.cosmos.base.v1beta1.Coin) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.signer.length)
writer.writeString(1, this.signer);
if (this.coins.length)
writer.writeRepeatedMessage(2, this.coins, (item: dependency_2.cosmos.base.v1beta1.Coin) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCreateBond {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCreateBond();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.signer = reader.readString();
break;
case 2:
reader.readMessage(message.coins, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.cosmos.base.v1beta1.Coin.deserialize(reader), dependency_2.cosmos.base.v1beta1.Coin));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCreateBond {
return MsgCreateBond.deserialize(bytes);
}
}
export class MsgCreateBondResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
static fromObject(data: {
id?: string;
}): MsgCreateBondResponse {
const message = new MsgCreateBondResponse({});
if (data.id != null) {
message.id = data.id;
}
return message;
}
toObject() {
const data: {
id?: string;
} = {};
if (this.id != null) {
data.id = this.id;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCreateBondResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCreateBondResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCreateBondResponse {
return MsgCreateBondResponse.deserialize(bytes);
}
}
export class MsgRefillBond extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
signer?: string;
coins?: dependency_2.cosmos.base.v1beta1.Coin[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
if ("coins" in data && data.coins != undefined) {
this.coins = data.coins;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 2, value);
}
get coins() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.cosmos.base.v1beta1.Coin, 3) as dependency_2.cosmos.base.v1beta1.Coin[];
}
set coins(value: dependency_2.cosmos.base.v1beta1.Coin[]) {
pb_1.Message.setRepeatedWrapperField(this, 3, value);
}
static fromObject(data: {
id?: string;
signer?: string;
coins?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
}): MsgRefillBond {
const message = new MsgRefillBond({});
if (data.id != null) {
message.id = data.id;
}
if (data.signer != null) {
message.signer = data.signer;
}
if (data.coins != null) {
message.coins = data.coins.map(item => dependency_2.cosmos.base.v1beta1.Coin.fromObject(item));
}
return message;
}
toObject() {
const data: {
id?: string;
signer?: string;
coins?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
} = {};
if (this.id != null) {
data.id = this.id;
}
if (this.signer != null) {
data.signer = this.signer;
}
if (this.coins != null) {
data.coins = this.coins.map((item: dependency_2.cosmos.base.v1beta1.Coin) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (this.signer.length)
writer.writeString(2, this.signer);
if (this.coins.length)
writer.writeRepeatedMessage(3, this.coins, (item: dependency_2.cosmos.base.v1beta1.Coin) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgRefillBond {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgRefillBond();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
case 2:
message.signer = reader.readString();
break;
case 3:
reader.readMessage(message.coins, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_2.cosmos.base.v1beta1.Coin.deserialize(reader), dependency_2.cosmos.base.v1beta1.Coin));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgRefillBond {
return MsgRefillBond.deserialize(bytes);
}
}
export class MsgRefillBondResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { }
}
static fromObject(data: {}): MsgRefillBondResponse {
const message = new MsgRefillBondResponse({});
return message;
}
toObject() {
const data: {} = {};
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgRefillBondResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgRefillBondResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgRefillBondResponse {
return MsgRefillBondResponse.deserialize(bytes);
}
}
export class MsgWithdrawBond extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
signer?: string;
coins?: dependency_2.cosmos.base.v1beta1.Coin[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
if ("coins" in data && data.coins != undefined) {
this.coins = data.coins;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 2, value);
}
get coins() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.cosmos.base.v1beta1.Coin, 3) as dependency_2.cosmos.base.v1beta1.Coin[];
}
set coins(value: dependency_2.cosmos.base.v1beta1.Coin[]) {
pb_1.Message.setRepeatedWrapperField(this, 3, value);
}
static fromObject(data: {
id?: string;
signer?: string;
coins?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
}): MsgWithdrawBond {
const message = new MsgWithdrawBond({});
if (data.id != null) {
message.id = data.id;
}
if (data.signer != null) {
message.signer = data.signer;
}
if (data.coins != null) {
message.coins = data.coins.map(item => dependency_2.cosmos.base.v1beta1.Coin.fromObject(item));
}
return message;
}
toObject() {
const data: {
id?: string;
signer?: string;
coins?: ReturnType<typeof dependency_2.cosmos.base.v1beta1.Coin.prototype.toObject>[];
} = {};
if (this.id != null) {
data.id = this.id;
}
if (this.signer != null) {
data.signer = this.signer;
}
if (this.coins != null) {
data.coins = this.coins.map((item: dependency_2.cosmos.base.v1beta1.Coin) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (this.signer.length)
writer.writeString(2, this.signer);
if (this.coins.length)
writer.writeRepeatedMessage(3, this.coins, (item: dependency_2.cosmos.base.v1beta1.Coin) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgWithdrawBond {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgWithdrawBond();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
case 2:
message.signer = reader.readString();
break;
case 3:
reader.readMessage(message.coins, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_2.cosmos.base.v1beta1.Coin.deserialize(reader), dependency_2.cosmos.base.v1beta1.Coin));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgWithdrawBond {
return MsgWithdrawBond.deserialize(bytes);
}
}
export class MsgWithdrawBondResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { }
}
static fromObject(data: {}): MsgWithdrawBondResponse {
const message = new MsgWithdrawBondResponse({});
return message;
}
toObject() {
const data: {} = {};
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgWithdrawBondResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgWithdrawBondResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgWithdrawBondResponse {
return MsgWithdrawBondResponse.deserialize(bytes);
}
}
export class MsgCancelBond extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
id?: string;
signer?: string;
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("id" in data && data.id != undefined) {
this.id = data.id;
}
if ("signer" in data && data.signer != undefined) {
this.signer = data.signer;
}
}
}
get id() {
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
}
set id(value: string) {
pb_1.Message.setField(this, 1, value);
}
get signer() {
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
}
set signer(value: string) {
pb_1.Message.setField(this, 2, value);
}
static fromObject(data: {
id?: string;
signer?: string;
}): MsgCancelBond {
const message = new MsgCancelBond({});
if (data.id != null) {
message.id = data.id;
}
if (data.signer != null) {
message.signer = data.signer;
}
return message;
}
toObject() {
const data: {
id?: string;
signer?: string;
} = {};
if (this.id != null) {
data.id = this.id;
}
if (this.signer != null) {
data.signer = this.signer;
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.id.length)
writer.writeString(1, this.id);
if (this.signer.length)
writer.writeString(2, this.signer);
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCancelBond {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCancelBond();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
message.id = reader.readString();
break;
case 2:
message.signer = reader.readString();
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCancelBond {
return MsgCancelBond.deserialize(bytes);
}
}
export class MsgCancelBondResponse extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { }
}
static fromObject(data: {}): MsgCancelBondResponse {
const message = new MsgCancelBondResponse({});
return message;
}
toObject() {
const data: {} = {};
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsgCancelBondResponse {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsgCancelBondResponse();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): MsgCancelBondResponse {
return MsgCancelBondResponse.deserialize(bytes);
}
}
}

View File

@ -1,151 +0,0 @@
// @ts-nocheck
/* eslint-disable */
/**
* Generated by the protoc-gen-ts. DO NOT EDIT!
* compiler version: 4.25.1
* source: vulcanize/registry/v1beta1/genesis.proto
* git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./../../../gogoproto/gogo";
import * as dependency_2 from "./registry";
import * as pb_1 from "google-protobuf";
export namespace vulcanize.registry.v1beta1 {
export class GenesisState extends pb_1.Message {
#one_of_decls: number[][] = [];
constructor(data?: any[] | {
params?: dependency_2.vulcanize.registry.v1beta1.Params;
records?: dependency_2.vulcanize.registry.v1beta1.Record[];
authorities?: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry[];
names?: dependency_2.vulcanize.registry.v1beta1.NameEntry[];
}) {
super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2, 3, 4], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") {
if ("params" in data && data.params != undefined) {
this.params = data.params;
}
if ("records" in data && data.records != undefined) {
this.records = data.records;
}
if ("authorities" in data && data.authorities != undefined) {
this.authorities = data.authorities;
}
if ("names" in data && data.names != undefined) {
this.names = data.names;
}
}
}
get params() {
return pb_1.Message.getWrapperField(this, dependency_2.vulcanize.registry.v1beta1.Params, 1) as dependency_2.vulcanize.registry.v1beta1.Params;
}
set params(value: dependency_2.vulcanize.registry.v1beta1.Params) {
pb_1.Message.setWrapperField(this, 1, value);
}
get has_params() {
return pb_1.Message.getField(this, 1) != null;
}
get records() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.Record, 2) as dependency_2.vulcanize.registry.v1beta1.Record[];
}
set records(value: dependency_2.vulcanize.registry.v1beta1.Record[]) {
pb_1.Message.setRepeatedWrapperField(this, 2, value);
}
get authorities() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.AuthorityEntry, 3) as dependency_2.vulcanize.registry.v1beta1.AuthorityEntry[];
}
set authorities(value: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry[]) {
pb_1.Message.setRepeatedWrapperField(this, 3, value);
}
get names() {
return pb_1.Message.getRepeatedWrapperField(this, dependency_2.vulcanize.registry.v1beta1.NameEntry, 4) as dependency_2.vulcanize.registry.v1beta1.NameEntry[];
}
set names(value: dependency_2.vulcanize.registry.v1beta1.NameEntry[]) {
pb_1.Message.setRepeatedWrapperField(this, 4, value);
}
static fromObject(data: {
params?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Params.prototype.toObject>;
records?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
authorities?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.prototype.toObject>[];
names?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.NameEntry.prototype.toObject>[];
}): GenesisState {
const message = new GenesisState({});
if (data.params != null) {
message.params = dependency_2.vulcanize.registry.v1beta1.Params.fromObject(data.params);
}
if (data.records != null) {
message.records = data.records.map(item => dependency_2.vulcanize.registry.v1beta1.Record.fromObject(item));
}
if (data.authorities != null) {
message.authorities = data.authorities.map(item => dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.fromObject(item));
}
if (data.names != null) {
message.names = data.names.map(item => dependency_2.vulcanize.registry.v1beta1.NameEntry.fromObject(item));
}
return message;
}
toObject() {
const data: {
params?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Params.prototype.toObject>;
records?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.Record.prototype.toObject>[];
authorities?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.prototype.toObject>[];
names?: ReturnType<typeof dependency_2.vulcanize.registry.v1beta1.NameEntry.prototype.toObject>[];
} = {};
if (this.params != null) {
data.params = this.params.toObject();
}
if (this.records != null) {
data.records = this.records.map((item: dependency_2.vulcanize.registry.v1beta1.Record) => item.toObject());
}
if (this.authorities != null) {
data.authorities = this.authorities.map((item: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry) => item.toObject());
}
if (this.names != null) {
data.names = this.names.map((item: dependency_2.vulcanize.registry.v1beta1.NameEntry) => item.toObject());
}
return data;
}
serialize(): Uint8Array;
serialize(w: pb_1.BinaryWriter): void;
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
const writer = w || new pb_1.BinaryWriter();
if (this.has_params)
writer.writeMessage(1, this.params, () => this.params.serialize(writer));
if (this.records.length)
writer.writeRepeatedMessage(2, this.records, (item: dependency_2.vulcanize.registry.v1beta1.Record) => item.serialize(writer));
if (this.authorities.length)
writer.writeRepeatedMessage(3, this.authorities, (item: dependency_2.vulcanize.registry.v1beta1.AuthorityEntry) => item.serialize(writer));
if (this.names.length)
writer.writeRepeatedMessage(4, this.names, (item: dependency_2.vulcanize.registry.v1beta1.NameEntry) => item.serialize(writer));
if (!w)
return writer.getResultBuffer();
}
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GenesisState {
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GenesisState();
while (reader.nextField()) {
if (reader.isEndGroup())
break;
switch (reader.getFieldNumber()) {
case 1:
reader.readMessage(message.params, () => message.params = dependency_2.vulcanize.registry.v1beta1.Params.deserialize(reader));
break;
case 2:
reader.readMessage(message.records, () => pb_1.Message.addToRepeatedWrapperField(message, 2, dependency_2.vulcanize.registry.v1beta1.Record.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.Record));
break;
case 3:
reader.readMessage(message.authorities, () => pb_1.Message.addToRepeatedWrapperField(message, 3, dependency_2.vulcanize.registry.v1beta1.AuthorityEntry.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.AuthorityEntry));
break;
case 4:
reader.readMessage(message.names, () => pb_1.Message.addToRepeatedWrapperField(message, 4, dependency_2.vulcanize.registry.v1beta1.NameEntry.deserialize(reader), dependency_2.vulcanize.registry.v1beta1.NameEntry));
break;
default: reader.skipField();
}
}
return message;
}
serializeBinary(): Uint8Array {
return this.serialize();
}
static deserializeBinary(bytes: Uint8Array): GenesisState {
return GenesisState.deserialize(bytes);
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff