UNPKG

@tatumio/tezos-wallet-provider

Version:

Tezos provider with local wallet operations

63 lines (62 loc) 5.65 kB
import { AllTicketBalances, BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, OriginationProofParams, PackDataParams, PendingOperations, PendingOperationsQueryArguments, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCOptions, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RPCSimulateOperationParam, RpcClientInterface, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TicketTokenParams, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult } from '@taquito/rpc'; import { TezosRpcInterface } from '@tatumio/tatum/dist/src/dto/rpc/TezosRpcSuite'; import BigNumber from 'bignumber.js'; export declare class TatumProvider implements RpcClientInterface { private readonly rpc; private readonly chain; constructor(rpc: TezosRpcInterface, chain: string); getBalance(address: string, { block }?: RPCOptions): Promise<BalanceResponse>; getChainId(): Promise<string>; getConstants({ block }?: RPCOptions): Promise<ConstantsResponse>; getContract(address: string, { block }?: RPCOptions): Promise<ContractResponse>; getBlockHeader({ block }?: RPCOptions): Promise<BlockHeaderResponse>; getManagerKey(address: string, options?: RPCOptions): Promise<ManagerKeyResponse>; simulateOperation(op: RPCSimulateOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>; preapplyOperations(ops: PreapplyParams, { block }?: RPCOptions): Promise<PreapplyResponse[]>; injectOperation(signedOpBytes: string): Promise<OperationHash>; getProtocols({ block }?: RPCOptions): Promise<ProtocolsResponse>; forgeOperations(data: ForgeOperationsParams, options?: RPCOptions): Promise<string>; getAllTicketBalances(contract: string, options?: RPCOptions): Promise<AllTicketBalances>; getBakingRights(args: BakingRightsQueryArguments, options?: RPCOptions): Promise<BakingRightsResponse>; getBallotList(options?: RPCOptions): Promise<BallotListResponse>; getBallots(options?: RPCOptions): Promise<BallotsResponse>; getBigMapExpr(id: string, expr: string, options?: RPCOptions): Promise<BigMapResponse>; getBigMapKey(address: string, key: BigMapKey, options?: RPCOptions): Promise<BigMapGetResponse>; getBlock(options?: RPCOptions): Promise<BlockResponse>; getBlockHash(options?: RPCOptions): Promise<string>; getBlockMetadata(options?: RPCOptions): Promise<BlockMetadata>; getCurrentPeriod(options?: RPCOptions): Promise<VotingPeriodBlockResult>; getCurrentProposal(options?: RPCOptions): Promise<CurrentProposalResponse>; getCurrentQuorum(options?: RPCOptions): Promise<CurrentQuorumResponse>; getDelegate(address: string, options?: RPCOptions): Promise<DelegateResponse>; getDelegates(address: string, options?: RPCOptions): Promise<DelegatesResponse>; getEndorsingRights(args: EndorsingRightsQueryArguments, options?: RPCOptions): Promise<EndorsingRightsResponse>; getEntrypoints(contract: string, options?: RPCOptions): Promise<EntrypointsResponse>; getLiveBlocks(options?: RPCOptions): Promise<string[]>; getNormalizedScript(address: string, unparsingMode?: UnparsingMode, options?: RPCOptions): Promise<ScriptResponse>; getOriginationProof(params: OriginationProofParams, options?: RPCOptions): Promise<string>; getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperations>; getProposals(options?: RPCOptions): Promise<ProposalsResponse>; getRpcUrl(): string; getSaplingDiffByContract(contract: string, options?: RPCOptions): Promise<SaplingDiffResponse>; getSaplingDiffById(id: string, options?: RPCOptions): Promise<SaplingDiffResponse>; getScript(address: string, options?: RPCOptions): Promise<ScriptResponse>; getStorage(address: string, options?: RPCOptions): Promise<StorageResponse>; getStoragePaidSpace(contract: string, options?: RPCOptions): Promise<string>; getStorageUsedSpace(contract: string, options?: RPCOptions): Promise<string>; getSuccessorPeriod(options?: RPCOptions): Promise<VotingPeriodBlockResult>; getTicketBalance(contract: string, ticket: TicketTokenParams, options?: RPCOptions): Promise<string>; getTxRollupInbox(txRollupId: string, blockLevel: string, options?: RPCOptions): Promise<TxRollupInboxResponse | null>; getTxRollupState(txRollupId: string, options?: RPCOptions): Promise<TxRollupStateResponse>; getVotesListings(options?: RPCOptions): Promise<VotesListingsResponse>; getVotingInfo(address: string, options?: RPCOptions): Promise<VotingInfoResponse>; packData(data: PackDataParams, options?: RPCOptions): Promise<{ packed: string; gas: BigNumber | 'unaccounted' | undefined; }>; runCode(code: RPCRunCodeParam, options?: RPCOptions): Promise<RunCodeResult>; runOperation(op: RPCRunOperationParam, options?: RPCOptions): Promise<PreapplyResponse>; runScriptView(viewScriptParams: RPCRunScriptViewParam, options?: RPCOptions): Promise<RunScriptViewResult>; runView(viewParams: RPCRunViewParam, options?: RPCOptions): Promise<RunViewResult>; private validateAddress; }