@injectivelabs/chain-api
Advanced tools
Comparing version 1.1.16 to 1.1.17
@@ -205,1 +205,195 @@ // package: injective.evm.v1beta1 | ||
export class TxReceipt extends jspb.Message { | ||
getHash(): Uint8Array | string; | ||
getHash_asU8(): Uint8Array; | ||
getHash_asB64(): string; | ||
setHash(value: Uint8Array | string): void; | ||
getFrom(): Uint8Array | string; | ||
getFrom_asU8(): Uint8Array; | ||
getFrom_asB64(): string; | ||
setFrom(value: Uint8Array | string): void; | ||
hasData(): boolean; | ||
clearData(): void; | ||
getData(): TxData | undefined; | ||
setData(value?: TxData): void; | ||
hasResult(): boolean; | ||
clearResult(): void; | ||
getResult(): TxResult | undefined; | ||
setResult(value?: TxResult): void; | ||
getIndex(): number; | ||
setIndex(value: number): void; | ||
getBlockheight(): number; | ||
setBlockheight(value: number): void; | ||
getBlockhash(): Uint8Array | string; | ||
getBlockhash_asU8(): Uint8Array; | ||
getBlockhash_asB64(): string; | ||
setBlockhash(value: Uint8Array | string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): TxReceipt.AsObject; | ||
static toObject(includeInstance: boolean, msg: TxReceipt): TxReceipt.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: TxReceipt, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): TxReceipt; | ||
static deserializeBinaryFromReader(message: TxReceipt, reader: jspb.BinaryReader): TxReceipt; | ||
} | ||
export namespace TxReceipt { | ||
export type AsObject = { | ||
hash: Uint8Array | string, | ||
from: Uint8Array | string, | ||
data?: TxData.AsObject, | ||
result?: TxResult.AsObject, | ||
index: number, | ||
blockheight: number, | ||
blockhash: Uint8Array | string, | ||
} | ||
} | ||
export class TxResult extends jspb.Message { | ||
getContractAddress(): string; | ||
setContractAddress(value: string): void; | ||
getBloom(): Uint8Array | string; | ||
getBloom_asU8(): Uint8Array; | ||
getBloom_asB64(): string; | ||
setBloom(value: Uint8Array | string): void; | ||
hasTxLogs(): boolean; | ||
clearTxLogs(): void; | ||
getTxLogs(): TransactionLogs | undefined; | ||
setTxLogs(value?: TransactionLogs): void; | ||
getRet(): Uint8Array | string; | ||
getRet_asU8(): Uint8Array; | ||
getRet_asB64(): string; | ||
setRet(value: Uint8Array | string): void; | ||
getReverted(): boolean; | ||
setReverted(value: boolean): void; | ||
getGasUsed(): number; | ||
setGasUsed(value: number): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): TxResult.AsObject; | ||
static toObject(includeInstance: boolean, msg: TxResult): TxResult.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: TxResult, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): TxResult; | ||
static deserializeBinaryFromReader(message: TxResult, reader: jspb.BinaryReader): TxResult; | ||
} | ||
export namespace TxResult { | ||
export type AsObject = { | ||
contractAddress: string, | ||
bloom: Uint8Array | string, | ||
txLogs?: TransactionLogs.AsObject, | ||
ret: Uint8Array | string, | ||
reverted: boolean, | ||
gasUsed: number, | ||
} | ||
} | ||
export class TxData extends jspb.Message { | ||
getNonce(): number; | ||
setNonce(value: number): void; | ||
getPrice(): Uint8Array | string; | ||
getPrice_asU8(): Uint8Array; | ||
getPrice_asB64(): string; | ||
setPrice(value: Uint8Array | string): void; | ||
getGas(): number; | ||
setGas(value: number): void; | ||
getTo(): Uint8Array | string; | ||
getTo_asU8(): Uint8Array; | ||
getTo_asB64(): string; | ||
setTo(value: Uint8Array | string): void; | ||
getValue(): Uint8Array | string; | ||
getValue_asU8(): Uint8Array; | ||
getValue_asB64(): string; | ||
setValue(value: Uint8Array | string): void; | ||
getInput(): Uint8Array | string; | ||
getInput_asU8(): Uint8Array; | ||
getInput_asB64(): string; | ||
setInput(value: Uint8Array | string): void; | ||
getV(): Uint8Array | string; | ||
getV_asU8(): Uint8Array; | ||
getV_asB64(): string; | ||
setV(value: Uint8Array | string): void; | ||
getR(): Uint8Array | string; | ||
getR_asU8(): Uint8Array; | ||
getR_asB64(): string; | ||
setR(value: Uint8Array | string): void; | ||
getS(): Uint8Array | string; | ||
getS_asU8(): Uint8Array; | ||
getS_asB64(): string; | ||
setS(value: Uint8Array | string): void; | ||
getHash(): string; | ||
setHash(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): TxData.AsObject; | ||
static toObject(includeInstance: boolean, msg: TxData): TxData.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: TxData, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): TxData; | ||
static deserializeBinaryFromReader(message: TxData, reader: jspb.BinaryReader): TxData; | ||
} | ||
export namespace TxData { | ||
export type AsObject = { | ||
nonce: number, | ||
price: Uint8Array | string, | ||
gas: number, | ||
to: Uint8Array | string, | ||
value: Uint8Array | string, | ||
input: Uint8Array | string, | ||
v: Uint8Array | string, | ||
r: Uint8Array | string, | ||
s: Uint8Array | string, | ||
hash: string, | ||
} | ||
} | ||
export class BytesList extends jspb.Message { | ||
clearBytesList(): void; | ||
getBytesList(): Array<Uint8Array | string>; | ||
getBytesList_asU8(): Array<Uint8Array>; | ||
getBytesList_asB64(): Array<string>; | ||
setBytesList(value: Array<Uint8Array | string>): void; | ||
addBytes(value: Uint8Array | string, index?: number): Uint8Array | string; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): BytesList.AsObject; | ||
static toObject(includeInstance: boolean, msg: BytesList): BytesList.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: BytesList, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): BytesList; | ||
static deserializeBinaryFromReader(message: BytesList, reader: jspb.BinaryReader): BytesList; | ||
} | ||
export namespace BytesList { | ||
export type AsObject = { | ||
bytesList: Array<Uint8Array | string>, | ||
} | ||
} | ||
@@ -52,2 +52,29 @@ // package: injective.evm.v1beta1 | ||
type QueryTxReceipt = { | ||
readonly methodName: string; | ||
readonly service: typeof Query; | ||
readonly requestStream: false; | ||
readonly responseStream: false; | ||
readonly requestType: typeof injective_evm_v1beta1_query_pb.QueryTxReceiptRequest; | ||
readonly responseType: typeof injective_evm_v1beta1_query_pb.QueryTxReceiptResponse; | ||
}; | ||
type QueryTxReceiptsByBlockHeight = { | ||
readonly methodName: string; | ||
readonly service: typeof Query; | ||
readonly requestStream: false; | ||
readonly responseStream: false; | ||
readonly requestType: typeof injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightRequest; | ||
readonly responseType: typeof injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightResponse; | ||
}; | ||
type QueryTxReceiptsByBlockHash = { | ||
readonly methodName: string; | ||
readonly service: typeof Query; | ||
readonly requestStream: false; | ||
readonly responseStream: false; | ||
readonly requestType: typeof injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashRequest; | ||
readonly responseType: typeof injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashResponse; | ||
}; | ||
type QueryBlockLogs = { | ||
@@ -87,2 +114,5 @@ readonly methodName: string; | ||
static readonly TxLogs: QueryTxLogs; | ||
static readonly TxReceipt: QueryTxReceipt; | ||
static readonly TxReceiptsByBlockHeight: QueryTxReceiptsByBlockHeight; | ||
static readonly TxReceiptsByBlockHash: QueryTxReceiptsByBlockHash; | ||
static readonly BlockLogs: QueryBlockLogs; | ||
@@ -170,2 +200,29 @@ static readonly BlockBloom: QueryBlockBloom; | ||
): UnaryResponse; | ||
txReceipt( | ||
requestMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptRequest, | ||
metadata: grpc.Metadata, | ||
callback: (error: ServiceError|null, responseMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptResponse|null) => void | ||
): UnaryResponse; | ||
txReceipt( | ||
requestMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptRequest, | ||
callback: (error: ServiceError|null, responseMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptResponse|null) => void | ||
): UnaryResponse; | ||
txReceiptsByBlockHeight( | ||
requestMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightRequest, | ||
metadata: grpc.Metadata, | ||
callback: (error: ServiceError|null, responseMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightResponse|null) => void | ||
): UnaryResponse; | ||
txReceiptsByBlockHeight( | ||
requestMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightRequest, | ||
callback: (error: ServiceError|null, responseMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightResponse|null) => void | ||
): UnaryResponse; | ||
txReceiptsByBlockHash( | ||
requestMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashRequest, | ||
metadata: grpc.Metadata, | ||
callback: (error: ServiceError|null, responseMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashResponse|null) => void | ||
): UnaryResponse; | ||
txReceiptsByBlockHash( | ||
requestMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashRequest, | ||
callback: (error: ServiceError|null, responseMessage: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashResponse|null) => void | ||
): UnaryResponse; | ||
blockLogs( | ||
@@ -172,0 +229,0 @@ requestMessage: injective_evm_v1beta1_query_pb.QueryBlockLogsRequest, |
@@ -58,2 +58,29 @@ // package: injective.evm.v1beta1 | ||
Query.TxReceipt = { | ||
methodName: "TxReceipt", | ||
service: Query, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: injective_evm_v1beta1_query_pb.QueryTxReceiptRequest, | ||
responseType: injective_evm_v1beta1_query_pb.QueryTxReceiptResponse | ||
}; | ||
Query.TxReceiptsByBlockHeight = { | ||
methodName: "TxReceiptsByBlockHeight", | ||
service: Query, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightRequest, | ||
responseType: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHeightResponse | ||
}; | ||
Query.TxReceiptsByBlockHash = { | ||
methodName: "TxReceiptsByBlockHash", | ||
service: Query, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashRequest, | ||
responseType: injective_evm_v1beta1_query_pb.QueryTxReceiptsByBlockHashResponse | ||
}; | ||
Query.BlockLogs = { | ||
@@ -248,2 +275,95 @@ methodName: "BlockLogs", | ||
QueryClient.prototype.txReceipt = function txReceipt(requestMessage, metadata, callback) { | ||
if (arguments.length === 2) { | ||
callback = arguments[1]; | ||
} | ||
var client = grpc.unary(Query.TxReceipt, { | ||
request: requestMessage, | ||
host: this.serviceHost, | ||
metadata: metadata, | ||
transport: this.options.transport, | ||
debug: this.options.debug, | ||
onEnd: function (response) { | ||
if (callback) { | ||
if (response.status !== grpc.Code.OK) { | ||
var err = new Error(response.statusMessage); | ||
err.code = response.status; | ||
err.metadata = response.trailers; | ||
callback(err, null); | ||
} else { | ||
callback(null, response.message); | ||
} | ||
} | ||
} | ||
}); | ||
return { | ||
cancel: function () { | ||
callback = null; | ||
client.close(); | ||
} | ||
}; | ||
}; | ||
QueryClient.prototype.txReceiptsByBlockHeight = function txReceiptsByBlockHeight(requestMessage, metadata, callback) { | ||
if (arguments.length === 2) { | ||
callback = arguments[1]; | ||
} | ||
var client = grpc.unary(Query.TxReceiptsByBlockHeight, { | ||
request: requestMessage, | ||
host: this.serviceHost, | ||
metadata: metadata, | ||
transport: this.options.transport, | ||
debug: this.options.debug, | ||
onEnd: function (response) { | ||
if (callback) { | ||
if (response.status !== grpc.Code.OK) { | ||
var err = new Error(response.statusMessage); | ||
err.code = response.status; | ||
err.metadata = response.trailers; | ||
callback(err, null); | ||
} else { | ||
callback(null, response.message); | ||
} | ||
} | ||
} | ||
}); | ||
return { | ||
cancel: function () { | ||
callback = null; | ||
client.close(); | ||
} | ||
}; | ||
}; | ||
QueryClient.prototype.txReceiptsByBlockHash = function txReceiptsByBlockHash(requestMessage, metadata, callback) { | ||
if (arguments.length === 2) { | ||
callback = arguments[1]; | ||
} | ||
var client = grpc.unary(Query.TxReceiptsByBlockHash, { | ||
request: requestMessage, | ||
host: this.serviceHost, | ||
metadata: metadata, | ||
transport: this.options.transport, | ||
debug: this.options.debug, | ||
onEnd: function (response) { | ||
if (callback) { | ||
if (response.status !== grpc.Code.OK) { | ||
var err = new Error(response.statusMessage); | ||
err.code = response.status; | ||
err.metadata = response.trailers; | ||
callback(err, null); | ||
} else { | ||
callback(null, response.message); | ||
} | ||
} | ||
} | ||
}); | ||
return { | ||
cancel: function () { | ||
callback = null; | ||
client.close(); | ||
} | ||
}; | ||
}; | ||
QueryClient.prototype.blockLogs = function blockLogs(requestMessage, metadata, callback) { | ||
@@ -250,0 +370,0 @@ if (arguments.length === 2) { |
@@ -227,2 +227,128 @@ // package: injective.evm.v1beta1 | ||
export class QueryTxReceiptRequest extends jspb.Message { | ||
getHash(): string; | ||
setHash(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryTxReceiptRequest.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryTxReceiptRequest): QueryTxReceiptRequest.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryTxReceiptRequest, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryTxReceiptRequest; | ||
static deserializeBinaryFromReader(message: QueryTxReceiptRequest, reader: jspb.BinaryReader): QueryTxReceiptRequest; | ||
} | ||
export namespace QueryTxReceiptRequest { | ||
export type AsObject = { | ||
hash: string, | ||
} | ||
} | ||
export class QueryTxReceiptResponse extends jspb.Message { | ||
hasReceipt(): boolean; | ||
clearReceipt(): void; | ||
getReceipt(): injective_evm_v1beta1_evm_pb.TxReceipt | undefined; | ||
setReceipt(value?: injective_evm_v1beta1_evm_pb.TxReceipt): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryTxReceiptResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryTxReceiptResponse): QueryTxReceiptResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryTxReceiptResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryTxReceiptResponse; | ||
static deserializeBinaryFromReader(message: QueryTxReceiptResponse, reader: jspb.BinaryReader): QueryTxReceiptResponse; | ||
} | ||
export namespace QueryTxReceiptResponse { | ||
export type AsObject = { | ||
receipt?: injective_evm_v1beta1_evm_pb.TxReceipt.AsObject, | ||
} | ||
} | ||
export class QueryTxReceiptsByBlockHeightRequest extends jspb.Message { | ||
getHeight(): number; | ||
setHeight(value: number): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryTxReceiptsByBlockHeightRequest.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryTxReceiptsByBlockHeightRequest): QueryTxReceiptsByBlockHeightRequest.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryTxReceiptsByBlockHeightRequest, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryTxReceiptsByBlockHeightRequest; | ||
static deserializeBinaryFromReader(message: QueryTxReceiptsByBlockHeightRequest, reader: jspb.BinaryReader): QueryTxReceiptsByBlockHeightRequest; | ||
} | ||
export namespace QueryTxReceiptsByBlockHeightRequest { | ||
export type AsObject = { | ||
height: number, | ||
} | ||
} | ||
export class QueryTxReceiptsByBlockHeightResponse extends jspb.Message { | ||
clearReceiptsList(): void; | ||
getReceiptsList(): Array<injective_evm_v1beta1_evm_pb.TxReceipt>; | ||
setReceiptsList(value: Array<injective_evm_v1beta1_evm_pb.TxReceipt>): void; | ||
addReceipts(value?: injective_evm_v1beta1_evm_pb.TxReceipt, index?: number): injective_evm_v1beta1_evm_pb.TxReceipt; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryTxReceiptsByBlockHeightResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryTxReceiptsByBlockHeightResponse): QueryTxReceiptsByBlockHeightResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryTxReceiptsByBlockHeightResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryTxReceiptsByBlockHeightResponse; | ||
static deserializeBinaryFromReader(message: QueryTxReceiptsByBlockHeightResponse, reader: jspb.BinaryReader): QueryTxReceiptsByBlockHeightResponse; | ||
} | ||
export namespace QueryTxReceiptsByBlockHeightResponse { | ||
export type AsObject = { | ||
receiptsList: Array<injective_evm_v1beta1_evm_pb.TxReceipt.AsObject>, | ||
} | ||
} | ||
export class QueryTxReceiptsByBlockHashRequest extends jspb.Message { | ||
getHash(): string; | ||
setHash(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryTxReceiptsByBlockHashRequest.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryTxReceiptsByBlockHashRequest): QueryTxReceiptsByBlockHashRequest.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryTxReceiptsByBlockHashRequest, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryTxReceiptsByBlockHashRequest; | ||
static deserializeBinaryFromReader(message: QueryTxReceiptsByBlockHashRequest, reader: jspb.BinaryReader): QueryTxReceiptsByBlockHashRequest; | ||
} | ||
export namespace QueryTxReceiptsByBlockHashRequest { | ||
export type AsObject = { | ||
hash: string, | ||
} | ||
} | ||
export class QueryTxReceiptsByBlockHashResponse extends jspb.Message { | ||
clearReceiptsList(): void; | ||
getReceiptsList(): Array<injective_evm_v1beta1_evm_pb.TxReceipt>; | ||
setReceiptsList(value: Array<injective_evm_v1beta1_evm_pb.TxReceipt>): void; | ||
addReceipts(value?: injective_evm_v1beta1_evm_pb.TxReceipt, index?: number): injective_evm_v1beta1_evm_pb.TxReceipt; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryTxReceiptsByBlockHashResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryTxReceiptsByBlockHashResponse): QueryTxReceiptsByBlockHashResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryTxReceiptsByBlockHashResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryTxReceiptsByBlockHashResponse; | ||
static deserializeBinaryFromReader(message: QueryTxReceiptsByBlockHashResponse, reader: jspb.BinaryReader): QueryTxReceiptsByBlockHashResponse; | ||
} | ||
export namespace QueryTxReceiptsByBlockHashResponse { | ||
export type AsObject = { | ||
receiptsList: Array<injective_evm_v1beta1_evm_pb.TxReceipt.AsObject>, | ||
} | ||
} | ||
export class QueryBlockLogsRequest extends jspb.Message { | ||
@@ -229,0 +355,0 @@ getHash(): string; |
@@ -11,4 +11,4 @@ // package: injective.evm.v1beta1 | ||
clearData(): void; | ||
getData(): TxData | undefined; | ||
setData(value?: TxData): void; | ||
getData(): injective_evm_v1beta1_evm_pb.TxData | undefined; | ||
setData(value?: injective_evm_v1beta1_evm_pb.TxData): void; | ||
@@ -35,3 +35,3 @@ getSize(): number; | ||
export type AsObject = { | ||
data?: TxData.AsObject, | ||
data?: injective_evm_v1beta1_evm_pb.TxData.AsObject, | ||
size: number, | ||
@@ -100,72 +100,2 @@ from?: SigCache.AsObject, | ||
export class TxData extends jspb.Message { | ||
getNonce(): number; | ||
setNonce(value: number): void; | ||
getPrice(): Uint8Array | string; | ||
getPrice_asU8(): Uint8Array; | ||
getPrice_asB64(): string; | ||
setPrice(value: Uint8Array | string): void; | ||
getGas(): number; | ||
setGas(value: number): void; | ||
getTo(): Uint8Array | string; | ||
getTo_asU8(): Uint8Array; | ||
getTo_asB64(): string; | ||
setTo(value: Uint8Array | string): void; | ||
getValue(): Uint8Array | string; | ||
getValue_asU8(): Uint8Array; | ||
getValue_asB64(): string; | ||
setValue(value: Uint8Array | string): void; | ||
getInput(): Uint8Array | string; | ||
getInput_asU8(): Uint8Array; | ||
getInput_asB64(): string; | ||
setInput(value: Uint8Array | string): void; | ||
getV(): Uint8Array | string; | ||
getV_asU8(): Uint8Array; | ||
getV_asB64(): string; | ||
setV(value: Uint8Array | string): void; | ||
getR(): Uint8Array | string; | ||
getR_asU8(): Uint8Array; | ||
getR_asB64(): string; | ||
setR(value: Uint8Array | string): void; | ||
getS(): Uint8Array | string; | ||
getS_asU8(): Uint8Array; | ||
getS_asB64(): string; | ||
setS(value: Uint8Array | string): void; | ||
getHash(): string; | ||
setHash(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): TxData.AsObject; | ||
static toObject(includeInstance: boolean, msg: TxData): TxData.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: TxData, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): TxData; | ||
static deserializeBinaryFromReader(message: TxData, reader: jspb.BinaryReader): TxData; | ||
} | ||
export namespace TxData { | ||
export type AsObject = { | ||
nonce: number, | ||
price: Uint8Array | string, | ||
gas: number, | ||
to: Uint8Array | string, | ||
value: Uint8Array | string, | ||
input: Uint8Array | string, | ||
v: Uint8Array | string, | ||
r: Uint8Array | string, | ||
s: Uint8Array | string, | ||
hash: string, | ||
} | ||
} | ||
export class SigCache extends jspb.Message { | ||
@@ -172,0 +102,0 @@ hasSigner(): boolean; |
@@ -24,3 +24,2 @@ // source: injective/evm/v1beta1/tx.proto | ||
goog.exportSymbol('proto.injective.evm.v1beta1.SigCache', null, global); | ||
goog.exportSymbol('proto.injective.evm.v1beta1.TxData', null, global); | ||
/** | ||
@@ -99,23 +98,2 @@ * Generated by JsPbCodeGenerator. | ||
*/ | ||
proto.injective.evm.v1beta1.TxData = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
goog.inherits(proto.injective.evm.v1beta1.TxData, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
/** | ||
* @public | ||
* @override | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.displayName = 'proto.injective.evm.v1beta1.TxData'; | ||
} | ||
/** | ||
* Generated by JsPbCodeGenerator. | ||
* @param {Array=} opt_data Optional initial data array, typically from a | ||
* server response, or constructed directly in Javascript. The array is used | ||
* in place and becomes part of the constructed object. It is not cloned. | ||
* If no data is provided, the constructed object will be empty, but still | ||
* valid. | ||
* @extends {jspb.Message} | ||
* @constructor | ||
*/ | ||
proto.injective.evm.v1beta1.SigCache = function(opt_data) { | ||
@@ -185,3 +163,3 @@ jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
var f, obj = { | ||
data: (f = msg.getData()) && proto.injective.evm.v1beta1.TxData.toObject(includeInstance, f), | ||
data: (f = msg.getData()) && injective_evm_v1beta1_evm_pb.TxData.toObject(includeInstance, f), | ||
size: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), | ||
@@ -226,4 +204,4 @@ from: (f = msg.getFrom()) && proto.injective.evm.v1beta1.SigCache.toObject(includeInstance, f) | ||
case 1: | ||
var value = new proto.injective.evm.v1beta1.TxData; | ||
reader.readMessage(value,proto.injective.evm.v1beta1.TxData.deserializeBinaryFromReader); | ||
var value = new injective_evm_v1beta1_evm_pb.TxData; | ||
reader.readMessage(value,injective_evm_v1beta1_evm_pb.TxData.deserializeBinaryFromReader); | ||
msg.setData(value); | ||
@@ -274,3 +252,3 @@ break; | ||
f, | ||
proto.injective.evm.v1beta1.TxData.serializeBinaryToWriter | ||
injective_evm_v1beta1_evm_pb.TxData.serializeBinaryToWriter | ||
); | ||
@@ -302,3 +280,3 @@ } | ||
return /** @type{?proto.injective.evm.v1beta1.TxData} */ ( | ||
jspb.Message.getWrapperField(this, proto.injective.evm.v1beta1.TxData, 1)); | ||
jspb.Message.getWrapperField(this, injective_evm_v1beta1_evm_pb.TxData, 1)); | ||
}; | ||
@@ -825,570 +803,2 @@ | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.toObject = function(opt_includeInstance) { | ||
return proto.injective.evm.v1beta1.TxData.toObject(opt_includeInstance, this); | ||
}; | ||
/** | ||
* Static version of the {@see toObject} method. | ||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include | ||
* the JSPB instance for transitional soy proto support: | ||
* http://goto/soy-param-migration | ||
* @param {!proto.injective.evm.v1beta1.TxData} msg The msg instance to transform. | ||
* @return {!Object} | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.toObject = function(includeInstance, msg) { | ||
var f, obj = { | ||
nonce: jspb.Message.getFieldWithDefault(msg, 1, 0), | ||
price: msg.getPrice_asB64(), | ||
gas: jspb.Message.getFieldWithDefault(msg, 3, 0), | ||
to: msg.getTo_asB64(), | ||
value: msg.getValue_asB64(), | ||
input: msg.getInput_asB64(), | ||
v: msg.getV_asB64(), | ||
r: msg.getR_asB64(), | ||
s: msg.getS_asB64(), | ||
hash: jspb.Message.getFieldWithDefault(msg, 10, "") | ||
}; | ||
if (includeInstance) { | ||
obj.$jspbMessageInstance = msg; | ||
} | ||
return obj; | ||
}; | ||
} | ||
/** | ||
* Deserializes binary data (in protobuf wire format). | ||
* @param {jspb.ByteSource} bytes The bytes to deserialize. | ||
* @return {!proto.injective.evm.v1beta1.TxData} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.injective.evm.v1beta1.TxData; | ||
return proto.injective.evm.v1beta1.TxData.deserializeBinaryFromReader(msg, reader); | ||
}; | ||
/** | ||
* Deserializes binary data (in protobuf wire format) from the | ||
* given reader into the given message object. | ||
* @param {!proto.injective.evm.v1beta1.TxData} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.injective.evm.v1beta1.TxData} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.deserializeBinaryFromReader = function(msg, reader) { | ||
while (reader.nextField()) { | ||
if (reader.isEndGroup()) { | ||
break; | ||
} | ||
var field = reader.getFieldNumber(); | ||
switch (field) { | ||
case 1: | ||
var value = /** @type {number} */ (reader.readUint64()); | ||
msg.setNonce(value); | ||
break; | ||
case 2: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setPrice(value); | ||
break; | ||
case 3: | ||
var value = /** @type {number} */ (reader.readUint64()); | ||
msg.setGas(value); | ||
break; | ||
case 4: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setTo(value); | ||
break; | ||
case 5: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setValue(value); | ||
break; | ||
case 6: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setInput(value); | ||
break; | ||
case 7: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setV(value); | ||
break; | ||
case 8: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setR(value); | ||
break; | ||
case 9: | ||
var value = /** @type {!Uint8Array} */ (reader.readBytes()); | ||
msg.setS(value); | ||
break; | ||
case 10: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setHash(value); | ||
break; | ||
default: | ||
reader.skipField(); | ||
break; | ||
} | ||
} | ||
return msg; | ||
}; | ||
/** | ||
* Serializes the message to binary data (in protobuf wire format). | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
proto.injective.evm.v1beta1.TxData.serializeBinaryToWriter(this, writer); | ||
return writer.getResultBuffer(); | ||
}; | ||
/** | ||
* Serializes the given message to binary data (in protobuf wire | ||
* format), writing to the given BinaryWriter. | ||
* @param {!proto.injective.evm.v1beta1.TxData} message | ||
* @param {!jspb.BinaryWriter} writer | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.serializeBinaryToWriter = function(message, writer) { | ||
var f = undefined; | ||
f = message.getNonce(); | ||
if (f !== 0) { | ||
writer.writeUint64( | ||
1, | ||
f | ||
); | ||
} | ||
f = message.getPrice_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
2, | ||
f | ||
); | ||
} | ||
f = message.getGas(); | ||
if (f !== 0) { | ||
writer.writeUint64( | ||
3, | ||
f | ||
); | ||
} | ||
f = message.getTo_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
4, | ||
f | ||
); | ||
} | ||
f = message.getValue_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
5, | ||
f | ||
); | ||
} | ||
f = message.getInput_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
6, | ||
f | ||
); | ||
} | ||
f = message.getV_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
7, | ||
f | ||
); | ||
} | ||
f = message.getR_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
8, | ||
f | ||
); | ||
} | ||
f = message.getS_asU8(); | ||
if (f.length > 0) { | ||
writer.writeBytes( | ||
9, | ||
f | ||
); | ||
} | ||
f = message.getHash(); | ||
if (f.length > 0) { | ||
writer.writeString( | ||
10, | ||
f | ||
); | ||
} | ||
}; | ||
/** | ||
* optional uint64 nonce = 1; | ||
* @return {number} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getNonce = function() { | ||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); | ||
}; | ||
/** | ||
* @param {number} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setNonce = function(value) { | ||
return jspb.Message.setProto3IntField(this, 1, value); | ||
}; | ||
/** | ||
* optional bytes price = 2; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getPrice = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); | ||
}; | ||
/** | ||
* optional bytes price = 2; | ||
* This is a type-conversion wrapper around `getPrice()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getPrice_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getPrice())); | ||
}; | ||
/** | ||
* optional bytes price = 2; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getPrice()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getPrice_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getPrice())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setPrice = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 2, value); | ||
}; | ||
/** | ||
* optional uint64 gas = 3; | ||
* @return {number} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getGas = function() { | ||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); | ||
}; | ||
/** | ||
* @param {number} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setGas = function(value) { | ||
return jspb.Message.setProto3IntField(this, 3, value); | ||
}; | ||
/** | ||
* optional bytes to = 4; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getTo = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); | ||
}; | ||
/** | ||
* optional bytes to = 4; | ||
* This is a type-conversion wrapper around `getTo()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getTo_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getTo())); | ||
}; | ||
/** | ||
* optional bytes to = 4; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getTo()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getTo_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getTo())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setTo = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 4, value); | ||
}; | ||
/** | ||
* optional bytes value = 5; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getValue = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); | ||
}; | ||
/** | ||
* optional bytes value = 5; | ||
* This is a type-conversion wrapper around `getValue()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getValue_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getValue())); | ||
}; | ||
/** | ||
* optional bytes value = 5; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getValue()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getValue_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getValue())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setValue = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 5, value); | ||
}; | ||
/** | ||
* optional bytes input = 6; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getInput = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); | ||
}; | ||
/** | ||
* optional bytes input = 6; | ||
* This is a type-conversion wrapper around `getInput()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getInput_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getInput())); | ||
}; | ||
/** | ||
* optional bytes input = 6; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getInput()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getInput_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getInput())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setInput = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 6, value); | ||
}; | ||
/** | ||
* optional bytes v = 7; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getV = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); | ||
}; | ||
/** | ||
* optional bytes v = 7; | ||
* This is a type-conversion wrapper around `getV()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getV_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getV())); | ||
}; | ||
/** | ||
* optional bytes v = 7; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getV()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getV_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getV())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setV = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 7, value); | ||
}; | ||
/** | ||
* optional bytes r = 8; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getR = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); | ||
}; | ||
/** | ||
* optional bytes r = 8; | ||
* This is a type-conversion wrapper around `getR()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getR_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getR())); | ||
}; | ||
/** | ||
* optional bytes r = 8; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getR()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getR_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getR())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setR = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 8, value); | ||
}; | ||
/** | ||
* optional bytes s = 9; | ||
* @return {!(string|Uint8Array)} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getS = function() { | ||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); | ||
}; | ||
/** | ||
* optional bytes s = 9; | ||
* This is a type-conversion wrapper around `getS()` | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getS_asB64 = function() { | ||
return /** @type {string} */ (jspb.Message.bytesAsB64( | ||
this.getS())); | ||
}; | ||
/** | ||
* optional bytes s = 9; | ||
* Note that Uint8Array is not supported on all browsers. | ||
* @see http://caniuse.com/Uint8Array | ||
* This is a type-conversion wrapper around `getS()` | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getS_asU8 = function() { | ||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( | ||
this.getS())); | ||
}; | ||
/** | ||
* @param {!(string|Uint8Array)} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setS = function(value) { | ||
return jspb.Message.setProto3BytesField(this, 9, value); | ||
}; | ||
/** | ||
* optional string hash = 10; | ||
* @return {string} | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.getHash = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); | ||
}; | ||
/** | ||
* @param {string} value | ||
* @return {!proto.injective.evm.v1beta1.TxData} returns this | ||
*/ | ||
proto.injective.evm.v1beta1.TxData.prototype.setHash = function(value) { | ||
return jspb.Message.setProto3StringField(this, 10, value); | ||
}; | ||
if (jspb.Message.GENERATE_TO_OBJECT) { | ||
/** | ||
* Creates an object representation of this proto. | ||
* Field names that are reserved in JavaScript and will be renamed to pb_name. | ||
* Optional fields that are not set will be set to undefined. | ||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | ||
* For the list of reserved names please see: | ||
* net/proto2/compiler/js/internal/generator.cc#kKeyword. | ||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the | ||
* JSPB instance for transitional soy proto support: | ||
* http://goto/soy-param-migration | ||
* @return {!Object} | ||
*/ | ||
proto.injective.evm.v1beta1.SigCache.prototype.toObject = function(opt_includeInstance) { | ||
@@ -1395,0 +805,0 @@ return proto.injective.evm.v1beta1.SigCache.toObject(opt_includeInstance, this); |
@@ -406,2 +406,5 @@ // package: injective.orders.v1beta1 | ||
getEntryprice(): string; | ||
setEntryprice(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
@@ -425,2 +428,3 @@ toObject(includeInstance?: boolean): PositionInfo.AsObject; | ||
margin: string, | ||
entryprice: string, | ||
} | ||
@@ -479,26 +483,2 @@ } | ||
export class ExchangeDomain extends jspb.Message { | ||
getVerifyingContract(): string; | ||
setVerifyingContract(value: string): void; | ||
getChainId(): string; | ||
setChainId(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): ExchangeDomain.AsObject; | ||
static toObject(includeInstance: boolean, msg: ExchangeDomain): ExchangeDomain.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: ExchangeDomain, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): ExchangeDomain; | ||
static deserializeBinaryFromReader(message: ExchangeDomain, reader: jspb.BinaryReader): ExchangeDomain; | ||
} | ||
export namespace ExchangeDomain { | ||
export type AsObject = { | ||
verifyingContract: string, | ||
chainId: string, | ||
} | ||
} | ||
export class MsgCreateSpotOrder extends jspb.Message { | ||
@@ -782,1 +762,123 @@ getSender(): string; | ||
export class MsgExecuteDerivativeTakeOrder extends jspb.Message { | ||
getSender(): string; | ||
setSender(value: string): void; | ||
hasOrder(): boolean; | ||
clearOrder(): void; | ||
getOrder(): BaseOrder | undefined; | ||
setOrder(value?: BaseOrder): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): MsgExecuteDerivativeTakeOrder.AsObject; | ||
static toObject(includeInstance: boolean, msg: MsgExecuteDerivativeTakeOrder): MsgExecuteDerivativeTakeOrder.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: MsgExecuteDerivativeTakeOrder, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): MsgExecuteDerivativeTakeOrder; | ||
static deserializeBinaryFromReader(message: MsgExecuteDerivativeTakeOrder, reader: jspb.BinaryReader): MsgExecuteDerivativeTakeOrder; | ||
} | ||
export namespace MsgExecuteDerivativeTakeOrder { | ||
export type AsObject = { | ||
sender: string, | ||
order?: BaseOrder.AsObject, | ||
} | ||
} | ||
export class MsgExecuteTECTransaction extends jspb.Message { | ||
getSender(): string; | ||
setSender(value: string): void; | ||
hasTectransaction(): boolean; | ||
clearTectransaction(): void; | ||
getTectransaction(): SignedTransaction | undefined; | ||
setTectransaction(value?: SignedTransaction): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): MsgExecuteTECTransaction.AsObject; | ||
static toObject(includeInstance: boolean, msg: MsgExecuteTECTransaction): MsgExecuteTECTransaction.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: MsgExecuteTECTransaction, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): MsgExecuteTECTransaction; | ||
static deserializeBinaryFromReader(message: MsgExecuteTECTransaction, reader: jspb.BinaryReader): MsgExecuteTECTransaction; | ||
} | ||
export namespace MsgExecuteTECTransaction { | ||
export type AsObject = { | ||
sender: string, | ||
tectransaction?: SignedTransaction.AsObject, | ||
} | ||
} | ||
export class ExchangeDomain extends jspb.Message { | ||
getVerifyingContract(): string; | ||
setVerifyingContract(value: string): void; | ||
getChainId(): string; | ||
setChainId(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): ExchangeDomain.AsObject; | ||
static toObject(includeInstance: boolean, msg: ExchangeDomain): ExchangeDomain.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: ExchangeDomain, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): ExchangeDomain; | ||
static deserializeBinaryFromReader(message: ExchangeDomain, reader: jspb.BinaryReader): ExchangeDomain; | ||
} | ||
export namespace ExchangeDomain { | ||
export type AsObject = { | ||
verifyingContract: string, | ||
chainId: string, | ||
} | ||
} | ||
export class SignedTransaction extends jspb.Message { | ||
getSalt(): string; | ||
setSalt(value: string): void; | ||
getSignerAddress(): string; | ||
setSignerAddress(value: string): void; | ||
getData(): string; | ||
setData(value: string): void; | ||
getExpirationTimeSeconds(): string; | ||
setExpirationTimeSeconds(value: string): void; | ||
getGasPrice(): string; | ||
setGasPrice(value: string): void; | ||
hasDomain(): boolean; | ||
clearDomain(): void; | ||
getDomain(): ExchangeDomain | undefined; | ||
setDomain(value?: ExchangeDomain): void; | ||
getSignature(): string; | ||
setSignature(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): SignedTransaction.AsObject; | ||
static toObject(includeInstance: boolean, msg: SignedTransaction): SignedTransaction.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: SignedTransaction, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): SignedTransaction; | ||
static deserializeBinaryFromReader(message: SignedTransaction, reader: jspb.BinaryReader): SignedTransaction; | ||
} | ||
export namespace SignedTransaction { | ||
export type AsObject = { | ||
salt: string, | ||
signerAddress: string, | ||
data: string, | ||
expirationTimeSeconds: string, | ||
gasPrice: string, | ||
domain?: ExchangeDomain.AsObject, | ||
signature: string, | ||
} | ||
} | ||
@@ -106,2 +106,11 @@ // package: injective.orders.v1beta1 | ||
type QueryQueryDerivativeOrderbookDepthAvgWeightedPrice = { | ||
readonly methodName: string; | ||
readonly service: typeof Query; | ||
readonly requestStream: false; | ||
readonly responseStream: false; | ||
readonly requestType: typeof injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceRequest; | ||
readonly responseType: typeof injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceResponse; | ||
}; | ||
type QueryQuerySubaccountMarginHold = { | ||
@@ -174,2 +183,3 @@ readonly methodName: string; | ||
static readonly QueryDerivativeOrderbookDepthBatchAvgWeightedPrice: QueryQueryDerivativeOrderbookDepthBatchAvgWeightedPrice; | ||
static readonly QueryDerivativeOrderbookDepthAvgWeightedPrice: QueryQueryDerivativeOrderbookDepthAvgWeightedPrice; | ||
static readonly QuerySubaccountMarginHold: QueryQuerySubaccountMarginHold; | ||
@@ -314,2 +324,11 @@ static readonly QueryDerivativeOrderbook: QueryQueryDerivativeOrderbook; | ||
): UnaryResponse; | ||
queryDerivativeOrderbookDepthAvgWeightedPrice( | ||
requestMessage: injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceRequest, | ||
metadata: grpc.Metadata, | ||
callback: (error: ServiceError|null, responseMessage: injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceResponse|null) => void | ||
): UnaryResponse; | ||
queryDerivativeOrderbookDepthAvgWeightedPrice( | ||
requestMessage: injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceRequest, | ||
callback: (error: ServiceError|null, responseMessage: injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceResponse|null) => void | ||
): UnaryResponse; | ||
querySubaccountMarginHold( | ||
@@ -316,0 +335,0 @@ requestMessage: injective_orders_v1beta1_query_pb.QuerySubaccountMarginHoldRequest, |
@@ -112,2 +112,11 @@ // package: injective.orders.v1beta1 | ||
Query.QueryDerivativeOrderbookDepthAvgWeightedPrice = { | ||
methodName: "QueryDerivativeOrderbookDepthAvgWeightedPrice", | ||
service: Query, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceRequest, | ||
responseType: injective_orders_v1beta1_query_pb.QueryDerivativeOrderbookDepthAvgWeightedPriceResponse | ||
}; | ||
Query.QuerySubaccountMarginHold = { | ||
@@ -515,2 +524,33 @@ methodName: "QuerySubaccountMarginHold", | ||
QueryClient.prototype.queryDerivativeOrderbookDepthAvgWeightedPrice = function queryDerivativeOrderbookDepthAvgWeightedPrice(requestMessage, metadata, callback) { | ||
if (arguments.length === 2) { | ||
callback = arguments[1]; | ||
} | ||
var client = grpc.unary(Query.QueryDerivativeOrderbookDepthAvgWeightedPrice, { | ||
request: requestMessage, | ||
host: this.serviceHost, | ||
metadata: metadata, | ||
transport: this.options.transport, | ||
debug: this.options.debug, | ||
onEnd: function (response) { | ||
if (callback) { | ||
if (response.status !== grpc.Code.OK) { | ||
var err = new Error(response.statusMessage); | ||
err.code = response.status; | ||
err.metadata = response.trailers; | ||
callback(err, null); | ||
} else { | ||
callback(null, response.message); | ||
} | ||
} | ||
} | ||
}); | ||
return { | ||
cancel: function () { | ||
callback = null; | ||
client.close(); | ||
} | ||
}; | ||
}; | ||
QueryClient.prototype.querySubaccountMarginHold = function querySubaccountMarginHold(requestMessage, metadata, callback) { | ||
@@ -517,0 +557,0 @@ if (arguments.length === 2) { |
@@ -9,4 +9,4 @@ // package: injective.orders.v1beta1 | ||
export class QueryDerivativeOrdersQuoteRequest extends jspb.Message { | ||
getQuantity(): string; | ||
setQuantity(value: string): void; | ||
getExchangeAddress(): string; | ||
setExchangeAddress(value: string): void; | ||
@@ -16,2 +16,5 @@ getMarketId(): string; | ||
getQuantity(): string; | ||
setQuantity(value: string): void; | ||
getIslong(): boolean; | ||
@@ -23,2 +26,5 @@ setIslong(value: boolean): void; | ||
getFilterPriceBound(): string; | ||
setFilterPriceBound(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
@@ -36,6 +42,8 @@ toObject(includeInstance?: boolean): QueryDerivativeOrdersQuoteRequest.AsObject; | ||
export type AsObject = { | ||
exchangeAddress: string, | ||
marketId: string, | ||
quantity: string, | ||
marketId: string, | ||
islong: boolean, | ||
makerAddress: string, | ||
filterPriceBound: string, | ||
} | ||
@@ -154,2 +162,44 @@ } | ||
export class QueryDerivativeOrderbookDepthAvgWeightedPriceRequest extends jspb.Message { | ||
hasQuoteRequest(): boolean; | ||
clearQuoteRequest(): void; | ||
getQuoteRequest(): QueryDerivativeOrdersQuoteRequest | undefined; | ||
setQuoteRequest(value?: QueryDerivativeOrdersQuoteRequest): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryDerivativeOrderbookDepthAvgWeightedPriceRequest.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryDerivativeOrderbookDepthAvgWeightedPriceRequest): QueryDerivativeOrderbookDepthAvgWeightedPriceRequest.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryDerivativeOrderbookDepthAvgWeightedPriceRequest, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryDerivativeOrderbookDepthAvgWeightedPriceRequest; | ||
static deserializeBinaryFromReader(message: QueryDerivativeOrderbookDepthAvgWeightedPriceRequest, reader: jspb.BinaryReader): QueryDerivativeOrderbookDepthAvgWeightedPriceRequest; | ||
} | ||
export namespace QueryDerivativeOrderbookDepthAvgWeightedPriceRequest { | ||
export type AsObject = { | ||
quoteRequest?: QueryDerivativeOrdersQuoteRequest.AsObject, | ||
} | ||
} | ||
export class QueryDerivativeOrderbookDepthAvgWeightedPriceResponse extends jspb.Message { | ||
getAvgWeightedPrice(): string; | ||
setAvgWeightedPrice(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
toObject(includeInstance?: boolean): QueryDerivativeOrderbookDepthAvgWeightedPriceResponse.AsObject; | ||
static toObject(includeInstance: boolean, msg: QueryDerivativeOrderbookDepthAvgWeightedPriceResponse): QueryDerivativeOrderbookDepthAvgWeightedPriceResponse.AsObject; | ||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>}; | ||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>}; | ||
static serializeBinaryToWriter(message: QueryDerivativeOrderbookDepthAvgWeightedPriceResponse, writer: jspb.BinaryWriter): void; | ||
static deserializeBinary(bytes: Uint8Array): QueryDerivativeOrderbookDepthAvgWeightedPriceResponse; | ||
static deserializeBinaryFromReader(message: QueryDerivativeOrderbookDepthAvgWeightedPriceResponse, reader: jspb.BinaryReader): QueryDerivativeOrderbookDepthAvgWeightedPriceResponse; | ||
} | ||
export namespace QueryDerivativeOrderbookDepthAvgWeightedPriceResponse { | ||
export type AsObject = { | ||
avgWeightedPrice: string, | ||
} | ||
} | ||
export class QuerySubaccountMarginHoldRequest extends jspb.Message { | ||
@@ -418,2 +468,5 @@ getMakerAddress(): string; | ||
export class QueryDerivativeMarketsRequest extends jspb.Message { | ||
getExchangeAddress(): string; | ||
setExchangeAddress(value: string): void; | ||
serializeBinary(): Uint8Array; | ||
@@ -431,2 +484,3 @@ toObject(includeInstance?: boolean): QueryDerivativeMarketsRequest.AsObject; | ||
export type AsObject = { | ||
exchangeAddress: string, | ||
} | ||
@@ -433,0 +487,0 @@ } |
{ | ||
"name": "@injectivelabs/chain-api", | ||
"version": "1.1.16", | ||
"version": "1.1.17", | ||
"description": "Injective Chain API Query client with generated gRPC bindings.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1609237
39605