Skip to content

Commit

Permalink
Merge pull request #52 from bandprotocol/dev
Browse files Browse the repository at this point in the history
Pre-release v2.4.0-rc
  • Loading branch information
babybunn authored Oct 4, 2023
2 parents 6a54a07 + 5e4b00b commit 2b3506b
Show file tree
Hide file tree
Showing 54 changed files with 30,493 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ yarn-error.log*

# dev
next-app
_proto
7 changes: 7 additions & 0 deletions __tests__/client/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,9 @@ 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 @@ -950,6 +953,10 @@ 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"}}],"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\",\"tss_group_id\":\"0\"}}],\"sequence\":\"100\"}`,
)
})

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bandprotocol/bandchain.js",
"version": "2.2.1",
"version": "2.4.0-rc",
"description": "Library for interacting with BandChain in browser and Node.js environments",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
109 changes: 109 additions & 0 deletions proto/bandchain/v1/node/query_pb.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// 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;
}

export namespace QueryChainIDRequest {
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 namespace QueryChainIDResponse {
export type AsObject = {
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 namespace QueryEVMValidatorsRequest {
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 namespace QueryEVMValidatorsResponse {
export type 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;
}

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

Loading

0 comments on commit 2b3506b

Please sign in to comment.