Skip to content

Commit

Permalink
Merge pull request #55 from bandprotocol/patch-cosmos-sdk-0.50-Beta
Browse files Browse the repository at this point in the history
[chore] Patch-cosmos-sdk-0.50
  • Loading branch information
xxibcill authored Oct 29, 2024
2 parents 70f4215 + 1799d94 commit 3dca55e
Show file tree
Hide file tree
Showing 38 changed files with 17,379 additions and 15,847 deletions.
7 changes: 0 additions & 7 deletions __tests__/client/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,6 @@ describe('get latest request', () => {
'bandvaloper1e9sa38742tzhmandc4gkqve9zy8zc0yremaa3j',
'bandvaloper1l2hchtyawk9tk43zzjrzr2lcd0zyxngcjdsshe',
])
request.setTssGroupId(0)
request.setFeeLimitList([])
request.setRequester("")
request.setMinCount(3)
request.setRequestHeight(431790)
request.setRequestTime(1625547173)
Expand Down Expand Up @@ -953,10 +950,6 @@ describe('get latest request', () => {
],
executeGas: 1000000,
ibcChannel: undefined,
tssGroupId: 0,
requester: "",
feeLimitList: [],
signing: undefined
},
reportsList: [
{
Expand Down
2 changes: 1 addition & 1 deletion __tests__/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('Transaction', () => {

const signMessage = tx.getSignMessage()
expect(Buffer.from(signMessage).toString('utf-8')).toEqual(
`{\"account_number\":\"20\",\"chain_id\":\"bandchain\",\"fee\":{\"amount\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"gas\":\"2000000\"},\"memo\":\"\",\"msgs\":[{\"type\":\"oracle/Request\",\"value\":{\"ask_count\":\"3\",\"calldata\":\"AAAAA0JUQwAAAAAAAAAB\",\"client_id\":\"test\",\"execute_gas\":\"20000\",\"fee_limit\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"min_count\":\"2\",\"oracle_script_id\":\"1\",\"prepare_gas\":\"20000\",\"sender\":\"band18p27yl962l8283ct7srr5l3g7ydazj07dqrwph\",\"tss_group_id\":\"0\"}}],\"sequence\":\"100\"}`,
`{\"account_number\":\"20\",\"chain_id\":\"bandchain\",\"fee\":{\"amount\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"gas\":\"2000000\"},\"memo\":\"\",\"msgs\":[{\"type\":\"oracle/Request\",\"value\":{\"ask_count\":\"3\",\"calldata\":\"AAAAA0JUQwAAAAAAAAAB\",\"client_id\":\"test\",\"execute_gas\":\"20000\",\"fee_limit\":[{\"amount\":\"100\",\"denom\":\"uband\"}],\"min_count\":\"2\",\"oracle_script_id\":\"1\",\"prepare_gas\":\"20000\",\"sender\":\"band18p27yl962l8283ct7srr5l3g7ydazj07dqrwph\"}}],\"sequence\":\"100\"}`,
)
})

Expand Down
210 changes: 131 additions & 79 deletions proto/bandchain/v1/node/query_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,109 +1,161 @@
// package: bandchain.v1.node
// file: bandchain/v1/node/query.proto

import * as jspb from "google-protobuf";
import * as google_api_annotations_pb from "../../../google/api/annotations_pb";
import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb";

export class QueryChainIDRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QueryChainIDRequest.AsObject;
static toObject(includeInstance: boolean, msg: QueryChainIDRequest): QueryChainIDRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: QueryChainIDRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): QueryChainIDRequest;
static deserializeBinaryFromReader(message: QueryChainIDRequest, reader: jspb.BinaryReader): QueryChainIDRequest;
import * as jspb from 'google-protobuf'
import * as google_api_annotations_pb from '../../../google/api/annotations_pb'
import * as gogoproto_gogo_pb from '../../../gogoproto/gogo_pb'

export class ChainIDRequest extends jspb.Message {
serializeBinary(): Uint8Array
toObject(includeInstance?: boolean): ChainIDRequest.AsObject
static toObject(
includeInstance: boolean,
msg: ChainIDRequest,
): ChainIDRequest.AsObject
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> }
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>
}
static serializeBinaryToWriter(
message: ChainIDRequest,
writer: jspb.BinaryWriter,
): void
static deserializeBinary(bytes: Uint8Array): ChainIDRequest
static deserializeBinaryFromReader(
message: ChainIDRequest,
reader: jspb.BinaryReader,
): ChainIDRequest
}

export namespace QueryChainIDRequest {
export type AsObject = {
}
export namespace ChainIDRequest {
export type AsObject = {}
}

export class QueryChainIDResponse extends jspb.Message {
getChainId(): string;
setChainId(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QueryChainIDResponse.AsObject;
static toObject(includeInstance: boolean, msg: QueryChainIDResponse): QueryChainIDResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: QueryChainIDResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): QueryChainIDResponse;
static deserializeBinaryFromReader(message: QueryChainIDResponse, reader: jspb.BinaryReader): QueryChainIDResponse;
export class ChainIDResponse extends jspb.Message {
getChainId(): string
setChainId(value: string): void

serializeBinary(): Uint8Array
toObject(includeInstance?: boolean): ChainIDResponse.AsObject
static toObject(
includeInstance: boolean,
msg: ChainIDResponse,
): ChainIDResponse.AsObject
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> }
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>
}
static serializeBinaryToWriter(
message: ChainIDResponse,
writer: jspb.BinaryWriter,
): void
static deserializeBinary(bytes: Uint8Array): ChainIDResponse
static deserializeBinaryFromReader(
message: ChainIDResponse,
reader: jspb.BinaryReader,
): ChainIDResponse
}

export namespace QueryChainIDResponse {
export namespace ChainIDResponse {
export type AsObject = {
chainId: string,
chainId: string
}
}

export class QueryEVMValidatorsRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QueryEVMValidatorsRequest.AsObject;
static toObject(includeInstance: boolean, msg: QueryEVMValidatorsRequest): QueryEVMValidatorsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: QueryEVMValidatorsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): QueryEVMValidatorsRequest;
static deserializeBinaryFromReader(message: QueryEVMValidatorsRequest, reader: jspb.BinaryReader): QueryEVMValidatorsRequest;
export class EVMValidatorsRequest extends jspb.Message {
serializeBinary(): Uint8Array
toObject(includeInstance?: boolean): EVMValidatorsRequest.AsObject
static toObject(
includeInstance: boolean,
msg: EVMValidatorsRequest,
): EVMValidatorsRequest.AsObject
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> }
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>
}
static serializeBinaryToWriter(
message: EVMValidatorsRequest,
writer: jspb.BinaryWriter,
): void
static deserializeBinary(bytes: Uint8Array): EVMValidatorsRequest
static deserializeBinaryFromReader(
message: EVMValidatorsRequest,
reader: jspb.BinaryReader,
): EVMValidatorsRequest
}

export namespace QueryEVMValidatorsRequest {
export type AsObject = {
}
export namespace EVMValidatorsRequest {
export type AsObject = {}
}

export class QueryEVMValidatorsResponse extends jspb.Message {
getBlockHeight(): number;
setBlockHeight(value: number): void;

clearValidatorsList(): void;
getValidatorsList(): Array<ValidatorMinimal>;
setValidatorsList(value: Array<ValidatorMinimal>): void;
addValidators(value?: ValidatorMinimal, index?: number): ValidatorMinimal;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QueryEVMValidatorsResponse.AsObject;
static toObject(includeInstance: boolean, msg: QueryEVMValidatorsResponse): QueryEVMValidatorsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: QueryEVMValidatorsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): QueryEVMValidatorsResponse;
static deserializeBinaryFromReader(message: QueryEVMValidatorsResponse, reader: jspb.BinaryReader): QueryEVMValidatorsResponse;
export class EVMValidatorsResponse extends jspb.Message {
getBlockHeight(): number
setBlockHeight(value: number): void

clearValidatorsList(): void
getValidatorsList(): Array<ValidatorMinimal>
setValidatorsList(value: Array<ValidatorMinimal>): void
addValidators(value?: ValidatorMinimal, index?: number): ValidatorMinimal

serializeBinary(): Uint8Array
toObject(includeInstance?: boolean): EVMValidatorsResponse.AsObject
static toObject(
includeInstance: boolean,
msg: EVMValidatorsResponse,
): EVMValidatorsResponse.AsObject
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> }
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>
}
static serializeBinaryToWriter(
message: EVMValidatorsResponse,
writer: jspb.BinaryWriter,
): void
static deserializeBinary(bytes: Uint8Array): EVMValidatorsResponse
static deserializeBinaryFromReader(
message: EVMValidatorsResponse,
reader: jspb.BinaryReader,
): EVMValidatorsResponse
}

export namespace QueryEVMValidatorsResponse {
export namespace EVMValidatorsResponse {
export type AsObject = {
blockHeight: number,
validatorsList: Array<ValidatorMinimal.AsObject>,
blockHeight: number
validatorsList: Array<ValidatorMinimal.AsObject>
}
}

export class ValidatorMinimal extends jspb.Message {
getAddress(): string;
setAddress(value: string): void;

getVotingPower(): number;
setVotingPower(value: number): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ValidatorMinimal.AsObject;
static toObject(includeInstance: boolean, msg: ValidatorMinimal): ValidatorMinimal.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ValidatorMinimal, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ValidatorMinimal;
static deserializeBinaryFromReader(message: ValidatorMinimal, reader: jspb.BinaryReader): ValidatorMinimal;
getAddress(): string
setAddress(value: string): void

getVotingPower(): number
setVotingPower(value: number): void

serializeBinary(): Uint8Array
toObject(includeInstance?: boolean): ValidatorMinimal.AsObject
static toObject(
includeInstance: boolean,
msg: ValidatorMinimal,
): ValidatorMinimal.AsObject
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> }
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>
}
static serializeBinaryToWriter(
message: ValidatorMinimal,
writer: jspb.BinaryWriter,
): void
static deserializeBinary(bytes: Uint8Array): ValidatorMinimal
static deserializeBinaryFromReader(
message: ValidatorMinimal,
reader: jspb.BinaryReader,
): ValidatorMinimal
}

export namespace ValidatorMinimal {
export type AsObject = {
address: string,
votingPower: number,
address: string
votingPower: number
}
}

Loading

0 comments on commit 3dca55e

Please sign in to comment.