Skip to content

Commit

Permalink
feat: update endpoint logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Aug 29, 2024
1 parent 2a0aac2 commit 62de6ce
Show file tree
Hide file tree
Showing 17 changed files with 433 additions and 432 deletions.
76 changes: 38 additions & 38 deletions packages/dapi-grpc/clients/core/v0/web/core_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,44 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();

goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeaders', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest.FromBlockCase', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.ResponsesCase', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BloomFilter', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.InstantSendLockMessages', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.RawTransactions', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest.FromBlockCase', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse', null, global);
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse.ResponsesCase', null, global);
const proto = {};

goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeaders', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest.FromBlockCase', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksResponse.ResponsesCase', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BloomFilter', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.InstantSendLockMessages', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.RawTransactions', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest.FromBlockCase', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse', null, { proto });
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsResponse.ResponsesCase', null, { proto });
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ class PlatformPromiseClient {
throw new Error('metadata must be an object');
}

return this.client.getTotalCreditsInPlatform(
return this.client.getStatus(
getStatusRequest,
convertObjectToMetadata(metadata),
{
Expand Down
Loading

0 comments on commit 62de6ce

Please sign in to comment.