/** * Copyright 2019 the orbs-client-sdk-javascript authors * This file is part of the orbs-client-sdk-javascript library in the Orbs project. * * This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. * The above notice should be included in all copies or substantial portions of the software. */ import { NetworkType } from "../codec/NetworkType"; import { Argument } from "../codec/Arguments"; import { SendTransactionResponse } from "../codec/OpSendTransaction"; import { RunQueryResponse } from "../codec/OpRunQuery"; import { GetTransactionStatusResponse } from "../codec/OpGetTransactionStatus"; import { GetTransactionReceiptProofResponse } from "../codec/OpGetTransactionReceiptProof"; import { GetBlockResponse } from "../codec/OpGetBlock"; import { Signer } from "../crypto/Signer"; export declare const PROCESSOR_TYPE_NATIVE = 1; export declare const PROCESSOR_TYPE_JAVASCRIPT = 2; export declare class Client { private endpoint; private virtualChainId; private networkType; private signer; private nextNanoNonce; constructor(endpoint: string, virtualChainId: number, networkType: NetworkType, signer: Signer); bumpNanoNonce(): number; createTransaction(contractName: string, methodName: string, inputArguments: Argument[]): Promise<[Uint8Array, string]>; createDeployTransaction(contractName: string, processorType: number, ...sources: Uint8Array[]): Promise<[Uint8Array, string]>; createQuery(contractName: string, methodName: string, inputArguments: Argument[]): Promise; protected createGetTransactionStatusPayload(txId: string): Uint8Array; protected createGetTransactionReceiptProofPayload(txId: string): Uint8Array; protected createGetBlockPayload(blockHeight: bigint): Uint8Array; sendTransaction(rawTransaction: Uint8Array): Promise; sendQuery(rawQuery: Uint8Array): Promise; getTransactionStatus(txId: string): Promise; getTransactionReceiptProof(txId: string): Promise; getBlock(blockHeight: bigint): Promise; private sendHttpPost; }