UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

1 lines 1.53 kB
import{GrpcWebFetchTransport}from'@protobuf-ts/grpcweb-transport';import{TransactionExecutionServiceClient}from'./proto/sui/rpc/v2/transaction_execution_service.client.js';import{LedgerServiceClient}from'./proto/sui/rpc/v2/ledger_service.client.js';import{MovePackageServiceClient}from'./proto/sui/rpc/v2/move_package_service.client.js';import{SignatureVerificationServiceClient}from'./proto/sui/rpc/v2/signature_verification_service.client.js';import{StateServiceClient}from'./proto/sui/rpc/v2/state_service.client.js';import{SubscriptionServiceClient}from'./proto/sui/rpc/v2/subscription_service.client.js';import{GrpcCoreClient}from'./core.js';import{Experimental_BaseClient}from'../experimental/index.js';export class WowGrpcClient extends Experimental_BaseClient{['core'];['transactionExecutionService'];['ledgerService'];['stateService'];['subscriptionService'];['movePackageService'];['signatureVerificationService'];constructor(a){super({'network':a['network']});const b=a['transport']??new GrpcWebFetchTransport({'baseUrl':a['baseUrl'],'fetchInit':a['fetchInit']});this['transactionExecutionService']=new TransactionExecutionServiceClient(b),this['ledgerService']=new LedgerServiceClient(b),this['stateService']=new StateServiceClient(b),this['subscriptionService']=new SubscriptionServiceClient(b),this['movePackageService']=new MovePackageServiceClient(b),this['signatureVerificationService']=new SignatureVerificationServiceClient(b),this['core']=new GrpcCoreClient({'client':this,'base':this,'network':a['network']});}}