@kaiachain/kss-bridges-celer
Version:
TypeScript client and use-cases for cBridge
537 lines • 38.9 kB
JavaScript
"use strict";
/**
* @fileoverview gRPC-Web generated client stub for sgn.gateway.v1
* @enhanceable
* @public
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebClient = void 0;
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
const grpcWeb = __importStar(require("grpc-web"));
const gateway_gateway_pb = __importStar(require("../gateway/gateway_pb"));
const sgn_health_v1_health_pb = __importStar(require("../sgn/health/v1/health_pb"));
const sgn_message_v1_query_pb = __importStar(require("../sgn/message/v1/query_pb"));
class WebClient {
constructor(hostname, credentials, options) {
this.methodInfoGetTransferConfigs = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetTransferConfigs', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetTransferConfigsRequest, gateway_gateway_pb.GetTransferConfigsResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetTransferConfigsResponse.deserializeBinary);
this.methodInfoGetTransferConfigsForAll = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetTransferConfigsForAll', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetTransferConfigsRequest, gateway_gateway_pb.GetTransferConfigsResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetTransferConfigsResponse.deserializeBinary);
this.methodInfoGetTokenInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetTokenInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetTokenInfoRequest, gateway_gateway_pb.GetTokenInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetTokenInfoResponse.deserializeBinary);
this.methodInfoEstimateAmt = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/EstimateAmt', grpcWeb.MethodType.UNARY, gateway_gateway_pb.EstimateAmtRequest, gateway_gateway_pb.EstimateAmtResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.EstimateAmtResponse.deserializeBinary);
this.methodInfoGetTransferStatus = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetTransferStatus', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetTransferStatusRequest, gateway_gateway_pb.GetTransferStatusResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetTransferStatusResponse.deserializeBinary);
this.methodInfoGetLPInfoList = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetLPInfoList', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetLPInfoListRequest, gateway_gateway_pb.GetLPInfoListResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetLPInfoListResponse.deserializeBinary);
this.methodInfoWithdrawLiquidity = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/WithdrawLiquidity', grpcWeb.MethodType.UNARY, gateway_gateway_pb.WithdrawLiquidityRequest, gateway_gateway_pb.WithdrawLiquidityResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.WithdrawLiquidityResponse.deserializeBinary);
this.methodInfoEstimateWithdrawAmt = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/EstimateWithdrawAmt', grpcWeb.MethodType.UNARY, gateway_gateway_pb.EstimateWithdrawAmtRequest, gateway_gateway_pb.EstimateWithdrawAmtResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.EstimateWithdrawAmtResponse.deserializeBinary);
this.methodInfoQueryLiquidityStatus = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/QueryLiquidityStatus', grpcWeb.MethodType.UNARY, gateway_gateway_pb.QueryLiquidityStatusRequest, gateway_gateway_pb.QueryLiquidityStatusResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.QueryLiquidityStatusResponse.deserializeBinary);
this.methodInfoUnlockFarmingReward = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/UnlockFarmingReward', grpcWeb.MethodType.UNARY, gateway_gateway_pb.UnlockFarmingRewardRequest, gateway_gateway_pb.UnlockFarmingRewardResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.UnlockFarmingRewardResponse.deserializeBinary);
this.methodInfoGetFarmingRewardDetails = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetFarmingRewardDetails', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetFarmingRewardDetailsRequest, gateway_gateway_pb.GetFarmingRewardDetailsResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetFarmingRewardDetailsResponse.deserializeBinary);
this.methodInfoTransferHistory = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/TransferHistory', grpcWeb.MethodType.UNARY, gateway_gateway_pb.TransferHistoryRequest, gateway_gateway_pb.TransferHistoryResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.TransferHistoryResponse.deserializeBinary);
this.methodInfoLPHistory = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/LPHistory', grpcWeb.MethodType.UNARY, gateway_gateway_pb.LPHistoryRequest, gateway_gateway_pb.LPHistoryResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.LPHistoryResponse.deserializeBinary);
this.methodInfoRewardingData = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/RewardingData', grpcWeb.MethodType.UNARY, gateway_gateway_pb.RewardingDataRequest, gateway_gateway_pb.RewardingDataResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.RewardingDataResponse.deserializeBinary);
this.methodInfoStakingConfig = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/StakingConfig', grpcWeb.MethodType.UNARY, gateway_gateway_pb.StakingConfigRequest, gateway_gateway_pb.StakingConfigResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.StakingConfigResponse.deserializeBinary);
this.methodInfoUnlockStakingReward = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/UnlockStakingReward', grpcWeb.MethodType.UNARY, gateway_gateway_pb.UnlockStakingRewardRequest, gateway_gateway_pb.UnlockStakingRewardResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.UnlockStakingRewardResponse.deserializeBinary);
this.methodInfoGetStakingRewardDetails = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetStakingRewardDetails', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetStakingRewardDetailsRequest, gateway_gateway_pb.GetStakingRewardDetailsResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetStakingRewardDetailsResponse.deserializeBinary);
this.methodInfoGetTotalLiquidityProviderTokenBalance = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetTotalLiquidityProviderTokenBalance', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetTotalLiquidityProviderTokenBalanceRequest, gateway_gateway_pb.GetTotalLiquidityProviderTokenBalanceResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetTotalLiquidityProviderTokenBalanceResponse.deserializeBinary);
this.methodInfoUpdateChain = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/UpdateChain', grpcWeb.MethodType.UNARY, gateway_gateway_pb.UpdateChainRequest, gateway_gateway_pb.UpdateChainResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.UpdateChainResponse.deserializeBinary);
this.methodInfoUpdateToken = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/UpdateToken', grpcWeb.MethodType.UNARY, gateway_gateway_pb.UpdateTokenRequest, gateway_gateway_pb.UpdateTokenResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.UpdateTokenResponse.deserializeBinary);
this.methodInfoGetCampaignScores = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetCampaignScores', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetCampaignScoresRequest, gateway_gateway_pb.GetCampaignScoresResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetCampaignScoresResponse.deserializeBinary);
this.methodInfoGetInfoByTxHash = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetInfoByTxHash', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetInfoByTxHashRequest, gateway_gateway_pb.GetInfoByTxHashResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetInfoByTxHashResponse.deserializeBinary);
this.methodInfoGetAbnormalStatusInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetAbnormalStatusInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetAbnormalStatusInfoRequest, gateway_gateway_pb.GetAbnormalStatusInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetAbnormalStatusInfoResponse.deserializeBinary);
this.methodInfoGetAllLPInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetAllLPInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetAllLPInfoRequest, gateway_gateway_pb.GetAllLPInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetAllLPInfoResponse.deserializeBinary);
this.methodInfoGetAllTXInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetAllTXInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetAllTXInfoRequest, gateway_gateway_pb.GetAllTXInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetAllTXInfoResponse.deserializeBinary);
this.methodInfoFixEventMiss = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/FixEventMiss', grpcWeb.MethodType.UNARY, gateway_gateway_pb.FixEventMissRequest, gateway_gateway_pb.FixEventMissResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.FixEventMissResponse.deserializeBinary);
this.methodInfoGetUsrBalance = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetUsrBalance', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetUsrBalanceRequest, gateway_gateway_pb.GetUsrBalanceResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetUsrBalanceResponse.deserializeBinary);
this.methodInfoGetAllConfigs = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetAllConfigs', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetAllConfigsRequest, gateway_gateway_pb.GetAllConfigsResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetAllConfigsResponse.deserializeBinary);
this.methodInfoGetCbrConfigsOnChain = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetCbrConfigsOnChain', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetCbrConfigsOnChainRequest, gateway_gateway_pb.GetCbrConfigsOnChainResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetCbrConfigsOnChainResponse.deserializeBinary);
this.methodInfoReportCurrentBlockNumber = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/ReportCurrentBlockNumber', grpcWeb.MethodType.UNARY, sgn_health_v1_health_pb.ReportSgnAnalyticsRequest, sgn_health_v1_health_pb.ReportSgnAnalyticsResponse, (request) => {
return request.serializeBinary();
}, sgn_health_v1_health_pb.ReportSgnAnalyticsResponse.deserializeBinary);
this.methodInfoGetCurrentBlockNumberByNode = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetCurrentBlockNumberByNode', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetCurrentBlockNumberByNodeRequest, gateway_gateway_pb.GetCurrentBlockNumberByNodeResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetCurrentBlockNumberByNodeResponse.deserializeBinary);
this.methodInfoGetRetentionRewardsInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetRetentionRewardsInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetRetentionRewardsInfoRequest, gateway_gateway_pb.GetRetentionRewardsInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetRetentionRewardsInfoResponse.deserializeBinary);
this.methodInfoGetIncentiveCampaignCelrRank = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetIncentiveCampaignCelrRank', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetIncentiveCampaignCelrRankRequest, gateway_gateway_pb.GetIncentiveCampaignCelrRankResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetIncentiveCampaignCelrRankResponse.deserializeBinary);
this.methodInfoInIncentiveCampaignBnbWhiteList = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/InIncentiveCampaignBnbWhiteList', grpcWeb.MethodType.UNARY, gateway_gateway_pb.InIncentiveCampaignBnbWhiteListRequest, gateway_gateway_pb.InIncentiveCampaignBnbWhiteListResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.InIncentiveCampaignBnbWhiteListResponse.deserializeBinary);
this.methodInfoGetIncentiveCampaignBnbRank = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetIncentiveCampaignBnbRank', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetIncentiveCampaignBnbRankRequest, gateway_gateway_pb.GetIncentiveCampaignBnbRankResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetIncentiveCampaignBnbRankResponse.deserializeBinary);
this.methodInfoClaimRetentionRewards = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/ClaimRetentionRewards', grpcWeb.MethodType.UNARY, gateway_gateway_pb.ClaimRetentionRewardsRequest, gateway_gateway_pb.ClaimRetentionRewardsResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.ClaimRetentionRewardsResponse.deserializeBinary);
this.methodInfoGetBscCampaignInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetBscCampaignInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetBscCampaignInfoRequest, gateway_gateway_pb.GetBscCampaignInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetBscCampaignInfoResponse.deserializeBinary);
this.methodInfoClaimGetBscCampaignReward = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/ClaimGetBscCampaignReward', grpcWeb.MethodType.UNARY, gateway_gateway_pb.ClaimGetBscCampaignRewardRequest, gateway_gateway_pb.ClaimGetBscCampaignRewardResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.ClaimGetBscCampaignRewardResponse.deserializeBinary);
this.methodInfoGetFeeRebateInfo = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/GetFeeRebateInfo', grpcWeb.MethodType.UNARY, gateway_gateway_pb.GetFeeRebateInfoRequest, gateway_gateway_pb.GetFeeRebateInfoResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.GetFeeRebateInfoResponse.deserializeBinary);
this.methodInfoClaimFeeRebate = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/ClaimFeeRebate', grpcWeb.MethodType.UNARY, gateway_gateway_pb.ClaimFeeRebateRequest, gateway_gateway_pb.ClaimFeeRebateResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.ClaimFeeRebateResponse.deserializeBinary);
this.methodInfoClaimPegBridgeFee = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/ClaimPegBridgeFee', grpcWeb.MethodType.UNARY, gateway_gateway_pb.ClaimPegBridgeFeeRequest, gateway_gateway_pb.ClaimPegBridgeFeeResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.ClaimPegBridgeFeeResponse.deserializeBinary);
this.methodInfoInitWithdraw = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/InitWithdraw', grpcWeb.MethodType.UNARY, gateway_gateway_pb.InitWithdrawRequest, gateway_gateway_pb.InitWithdrawResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.InitWithdrawResponse.deserializeBinary);
this.methodInfoInitPegRefund = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/InitPegRefund', grpcWeb.MethodType.UNARY, gateway_gateway_pb.InitPegRefundRequest, gateway_gateway_pb.InitPegRefundResponse, (request) => {
return request.serializeBinary();
}, gateway_gateway_pb.InitPegRefundResponse.deserializeBinary);
this.methodInfoExecutionContexts = new grpcWeb.MethodDescriptor('/sgn.gateway.v1.Web/ExecutionContexts', grpcWeb.MethodType.UNARY, sgn_message_v1_query_pb.QueryExecutionContextsRequest, sgn_message_v1_query_pb.QueryExecutionContextsResponse, (request) => {
return request.serializeBinary();
}, sgn_message_v1_query_pb.QueryExecutionContextsResponse.deserializeBinary);
if (!options)
options = {};
if (!credentials)
credentials = {};
options['format'] = 'binary';
this.client_ = new grpcWeb.GrpcWebClientBase(options);
this.hostname_ = hostname;
this.credentials_ = credentials;
this.options_ = options;
}
getTransferConfigs(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTransferConfigs', request, metadata || {}, this.methodInfoGetTransferConfigs, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTransferConfigs', request, metadata || {}, this.methodInfoGetTransferConfigs);
}
getTransferConfigsForAll(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTransferConfigsForAll', request, metadata || {}, this.methodInfoGetTransferConfigsForAll, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTransferConfigsForAll', request, metadata || {}, this.methodInfoGetTransferConfigsForAll);
}
getTokenInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTokenInfo', request, metadata || {}, this.methodInfoGetTokenInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTokenInfo', request, metadata || {}, this.methodInfoGetTokenInfo);
}
estimateAmt(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/EstimateAmt', request, metadata || {}, this.methodInfoEstimateAmt, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/EstimateAmt', request, metadata || {}, this.methodInfoEstimateAmt);
}
getTransferStatus(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTransferStatus', request, metadata || {}, this.methodInfoGetTransferStatus, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTransferStatus', request, metadata || {}, this.methodInfoGetTransferStatus);
}
getLPInfoList(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetLPInfoList', request, metadata || {}, this.methodInfoGetLPInfoList, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetLPInfoList', request, metadata || {}, this.methodInfoGetLPInfoList);
}
withdrawLiquidity(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/WithdrawLiquidity', request, metadata || {}, this.methodInfoWithdrawLiquidity, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/WithdrawLiquidity', request, metadata || {}, this.methodInfoWithdrawLiquidity);
}
estimateWithdrawAmt(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/EstimateWithdrawAmt', request, metadata || {}, this.methodInfoEstimateWithdrawAmt, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/EstimateWithdrawAmt', request, metadata || {}, this.methodInfoEstimateWithdrawAmt);
}
queryLiquidityStatus(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/QueryLiquidityStatus', request, metadata || {}, this.methodInfoQueryLiquidityStatus, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/QueryLiquidityStatus', request, metadata || {}, this.methodInfoQueryLiquidityStatus);
}
unlockFarmingReward(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/UnlockFarmingReward', request, metadata || {}, this.methodInfoUnlockFarmingReward, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/UnlockFarmingReward', request, metadata || {}, this.methodInfoUnlockFarmingReward);
}
getFarmingRewardDetails(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetFarmingRewardDetails', request, metadata || {}, this.methodInfoGetFarmingRewardDetails, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetFarmingRewardDetails', request, metadata || {}, this.methodInfoGetFarmingRewardDetails);
}
transferHistory(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/TransferHistory', request, metadata || {}, this.methodInfoTransferHistory, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/TransferHistory', request, metadata || {}, this.methodInfoTransferHistory);
}
lPHistory(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/LPHistory', request, metadata || {}, this.methodInfoLPHistory, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/LPHistory', request, metadata || {}, this.methodInfoLPHistory);
}
rewardingData(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/RewardingData', request, metadata || {}, this.methodInfoRewardingData, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/RewardingData', request, metadata || {}, this.methodInfoRewardingData);
}
stakingConfig(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/StakingConfig', request, metadata || {}, this.methodInfoStakingConfig, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/StakingConfig', request, metadata || {}, this.methodInfoStakingConfig);
}
unlockStakingReward(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/UnlockStakingReward', request, metadata || {}, this.methodInfoUnlockStakingReward, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/UnlockStakingReward', request, metadata || {}, this.methodInfoUnlockStakingReward);
}
getStakingRewardDetails(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetStakingRewardDetails', request, metadata || {}, this.methodInfoGetStakingRewardDetails, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetStakingRewardDetails', request, metadata || {}, this.methodInfoGetStakingRewardDetails);
}
getTotalLiquidityProviderTokenBalance(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTotalLiquidityProviderTokenBalance', request, metadata || {}, this.methodInfoGetTotalLiquidityProviderTokenBalance, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetTotalLiquidityProviderTokenBalance', request, metadata || {}, this.methodInfoGetTotalLiquidityProviderTokenBalance);
}
updateChain(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/UpdateChain', request, metadata || {}, this.methodInfoUpdateChain, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/UpdateChain', request, metadata || {}, this.methodInfoUpdateChain);
}
updateToken(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/UpdateToken', request, metadata || {}, this.methodInfoUpdateToken, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/UpdateToken', request, metadata || {}, this.methodInfoUpdateToken);
}
getCampaignScores(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetCampaignScores', request, metadata || {}, this.methodInfoGetCampaignScores, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetCampaignScores', request, metadata || {}, this.methodInfoGetCampaignScores);
}
getInfoByTxHash(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetInfoByTxHash', request, metadata || {}, this.methodInfoGetInfoByTxHash, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetInfoByTxHash', request, metadata || {}, this.methodInfoGetInfoByTxHash);
}
getAbnormalStatusInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAbnormalStatusInfo', request, metadata || {}, this.methodInfoGetAbnormalStatusInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAbnormalStatusInfo', request, metadata || {}, this.methodInfoGetAbnormalStatusInfo);
}
getAllLPInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAllLPInfo', request, metadata || {}, this.methodInfoGetAllLPInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAllLPInfo', request, metadata || {}, this.methodInfoGetAllLPInfo);
}
getAllTXInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAllTXInfo', request, metadata || {}, this.methodInfoGetAllTXInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAllTXInfo', request, metadata || {}, this.methodInfoGetAllTXInfo);
}
fixEventMiss(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/FixEventMiss', request, metadata || {}, this.methodInfoFixEventMiss, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/FixEventMiss', request, metadata || {}, this.methodInfoFixEventMiss);
}
getUsrBalance(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetUsrBalance', request, metadata || {}, this.methodInfoGetUsrBalance, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetUsrBalance', request, metadata || {}, this.methodInfoGetUsrBalance);
}
getAllConfigs(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAllConfigs', request, metadata || {}, this.methodInfoGetAllConfigs, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetAllConfigs', request, metadata || {}, this.methodInfoGetAllConfigs);
}
getCbrConfigsOnChain(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetCbrConfigsOnChain', request, metadata || {}, this.methodInfoGetCbrConfigsOnChain, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetCbrConfigsOnChain', request, metadata || {}, this.methodInfoGetCbrConfigsOnChain);
}
reportCurrentBlockNumber(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/ReportCurrentBlockNumber', request, metadata || {}, this.methodInfoReportCurrentBlockNumber, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/ReportCurrentBlockNumber', request, metadata || {}, this.methodInfoReportCurrentBlockNumber);
}
getCurrentBlockNumberByNode(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetCurrentBlockNumberByNode', request, metadata || {}, this.methodInfoGetCurrentBlockNumberByNode, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetCurrentBlockNumberByNode', request, metadata || {}, this.methodInfoGetCurrentBlockNumberByNode);
}
getRetentionRewardsInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetRetentionRewardsInfo', request, metadata || {}, this.methodInfoGetRetentionRewardsInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetRetentionRewardsInfo', request, metadata || {}, this.methodInfoGetRetentionRewardsInfo);
}
getIncentiveCampaignCelrRank(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetIncentiveCampaignCelrRank', request, metadata || {}, this.methodInfoGetIncentiveCampaignCelrRank, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetIncentiveCampaignCelrRank', request, metadata || {}, this.methodInfoGetIncentiveCampaignCelrRank);
}
inIncentiveCampaignBnbWhiteList(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/InIncentiveCampaignBnbWhiteList', request, metadata || {}, this.methodInfoInIncentiveCampaignBnbWhiteList, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/InIncentiveCampaignBnbWhiteList', request, metadata || {}, this.methodInfoInIncentiveCampaignBnbWhiteList);
}
getIncentiveCampaignBnbRank(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetIncentiveCampaignBnbRank', request, metadata || {}, this.methodInfoGetIncentiveCampaignBnbRank, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetIncentiveCampaignBnbRank', request, metadata || {}, this.methodInfoGetIncentiveCampaignBnbRank);
}
claimRetentionRewards(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimRetentionRewards', request, metadata || {}, this.methodInfoClaimRetentionRewards, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimRetentionRewards', request, metadata || {}, this.methodInfoClaimRetentionRewards);
}
getBscCampaignInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetBscCampaignInfo', request, metadata || {}, this.methodInfoGetBscCampaignInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetBscCampaignInfo', request, metadata || {}, this.methodInfoGetBscCampaignInfo);
}
claimGetBscCampaignReward(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimGetBscCampaignReward', request, metadata || {}, this.methodInfoClaimGetBscCampaignReward, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimGetBscCampaignReward', request, metadata || {}, this.methodInfoClaimGetBscCampaignReward);
}
getFeeRebateInfo(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetFeeRebateInfo', request, metadata || {}, this.methodInfoGetFeeRebateInfo, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/GetFeeRebateInfo', request, metadata || {}, this.methodInfoGetFeeRebateInfo);
}
claimFeeRebate(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimFeeRebate', request, metadata || {}, this.methodInfoClaimFeeRebate, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimFeeRebate', request, metadata || {}, this.methodInfoClaimFeeRebate);
}
claimPegBridgeFee(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimPegBridgeFee', request, metadata || {}, this.methodInfoClaimPegBridgeFee, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/ClaimPegBridgeFee', request, metadata || {}, this.methodInfoClaimPegBridgeFee);
}
initWithdraw(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/InitWithdraw', request, metadata || {}, this.methodInfoInitWithdraw, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/InitWithdraw', request, metadata || {}, this.methodInfoInitWithdraw);
}
initPegRefund(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/InitPegRefund', request, metadata || {}, this.methodInfoInitPegRefund, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/InitPegRefund', request, metadata || {}, this.methodInfoInitPegRefund);
}
executionContexts(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(this.hostname_ +
'/sgn.gateway.v1.Web/ExecutionContexts', request, metadata || {}, this.methodInfoExecutionContexts, callback);
}
return this.client_.unaryCall(this.hostname_ +
'/sgn.gateway.v1.Web/ExecutionContexts', request, metadata || {}, this.methodInfoExecutionContexts);
}
}
exports.WebClient = WebClient;
//# sourceMappingURL=GatewayServiceClientPb.js.map