UNPKG

@fairmint/canton-node-sdk

Version:
95 lines 9.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidatorApiClient = void 0; const core_1 = require("../../core"); const create_user_1 = require("./operations/v0/admin/create-user"); const get_external_party_balance_1 = require("./operations/v0/admin/get-external-party-balance"); const create_entry_1 = require("./operations/v0/ans/create-entry"); const get_rules_1 = require("./operations/v0/ans/get-rules"); const list_entries_proxy_1 = require("./operations/v0/ans/list-entries-proxy"); const lookup_by_name_1 = require("./operations/v0/ans/lookup-by-name"); const lookup_by_party_1 = require("./operations/v0/ans/lookup-by-party"); const register_1 = require("./operations/v0/register"); const get_amulet_rules_1 = require("./operations/v0/scan-proxy/get-amulet-rules"); const get_dso_party_id_1 = require("./operations/v0/scan-proxy/get-dso-party-id"); const get_mining_round_details_1 = require("./operations/v0/scan-proxy/get-mining-round-details"); const get_open_and_issuing_mining_rounds_1 = require("./operations/v0/scan-proxy/get-open-and-issuing-mining-rounds"); const lookup_featured_app_right_1 = require("./operations/v0/scan-proxy/lookup-featured-app-right"); const lookup_transfer_command_counter_by_party_1 = require("./operations/v0/scan-proxy/lookup-transfer-command-counter-by-party"); const lookup_transfer_command_status_1 = require("./operations/v0/scan-proxy/lookup-transfer-command-status"); const lookup_transfer_preapproval_by_party_1 = require("./operations/v0/scan-proxy/lookup-transfer-preapproval-by-party"); const get_allocation_factory_1 = require("./operations/v0/scan-proxy/registry/allocation-instruction/v1/get-allocation-factory"); const get_allocation_cancel_context_1 = require("./operations/v0/scan-proxy/registry/allocations/v1/get-allocation-cancel-context"); const get_allocation_transfer_context_1 = require("./operations/v0/scan-proxy/registry/allocations/v1/get-allocation-transfer-context"); const get_allocation_withdraw_context_1 = require("./operations/v0/scan-proxy/registry/allocations/v1/get-allocation-withdraw-context"); const get_instrument_1 = require("./operations/v0/scan-proxy/registry/metadata/v1/get-instrument"); const get_registry_info_1 = require("./operations/v0/scan-proxy/registry/metadata/v1/get-registry-info"); const list_instruments_1 = require("./operations/v0/scan-proxy/registry/metadata/v1/list-instruments"); const get_transfer_factory_1 = require("./operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-factory"); const get_transfer_instruction_accept_context_1 = require("./operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-accept-context"); const get_transfer_instruction_reject_context_1 = require("./operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-reject-context"); const get_transfer_instruction_withdraw_context_1 = require("./operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-withdraw-context"); const create_1 = require("./operations/v0/wallet/buy-traffic-requests/create"); const get_status_1 = require("./operations/v0/wallet/buy-traffic-requests/get-status"); const get_amulets_1 = require("./operations/v0/wallet/get-amulets"); const get_balance_1 = require("./operations/v0/wallet/get-balance"); const get_user_status_1 = require("./operations/v0/wallet/get-user-status"); const create_2 = require("./operations/v0/wallet/token-standard/transfers/create"); const list_1 = require("./operations/v0/wallet/token-standard/transfers/list"); const accept_1 = require("./operations/v0/wallet/transfer-offers/accept"); const create_3 = require("./operations/v0/wallet/transfer-offers/create"); const get_status_2 = require("./operations/v0/wallet/transfer-offers/get-status"); const list_2 = require("./operations/v0/wallet/transfer-offers/list"); const reject_1 = require("./operations/v0/wallet/transfer-offers/reject"); const withdraw_1 = require("./operations/v0/wallet/transfer-offers/withdraw"); /** Client for interacting with Canton's ValidatorApi */ class ValidatorApiClient extends core_1.BaseClient { constructor(clientConfig) { super('VALIDATOR_API', clientConfig); this.initializeMethods(); } initializeMethods() { this.createUser = (params) => new create_user_1.CreateUser(this).execute(params); this.getExternalPartyBalance = (params) => new get_external_party_balance_1.GetExternalPartyBalance(this).execute(params); this.createAnsEntry = (params) => new create_entry_1.CreateAnsEntry(this).execute(params); this.getAnsRules = (params) => new get_rules_1.GetAnsRules(this).execute(params); this.listAnsEntries = () => new list_entries_proxy_1.ListAnsEntries(this).execute(); this.lookupAnsEntryByName = (params) => new lookup_by_name_1.LookupAnsEntryByName(this).execute(params); this.lookupAnsEntryByParty = (params) => new lookup_by_party_1.LookupAnsEntryByParty(this).execute(params); this.registerNewUser = () => new register_1.RegisterNewUser(this).execute(); this.getAmuletRules = () => new get_amulet_rules_1.GetAmuletRules(this).execute(); this.getDsoPartyId = () => new get_dso_party_id_1.GetDsoPartyId(this).execute(); this.getMiningRoundDetails = (params) => new get_mining_round_details_1.GetMiningRoundDetails(this).execute(params); this.getOpenAndIssuingMiningRounds = () => new get_open_and_issuing_mining_rounds_1.GetOpenAndIssuingMiningRounds(this).execute(); this.lookupFeaturedAppRight = (params) => new lookup_featured_app_right_1.LookupFeaturedAppRight(this).execute(params); this.lookupTransferCommandCounterByParty = (params) => new lookup_transfer_command_counter_by_party_1.LookupTransferCommandCounterByParty(this).execute(params); this.lookupTransferCommandStatus = (params) => new lookup_transfer_command_status_1.LookupTransferCommandStatus(this).execute(params); this.lookupTransferPreapprovalByParty = (params) => new lookup_transfer_preapproval_by_party_1.LookupTransferPreapprovalByParty(this).execute(params); this.getAllocationFactory = (params) => new get_allocation_factory_1.GetAllocationFactory(this).execute(params); this.getAllocationCancelContext = (params) => new get_allocation_cancel_context_1.GetAllocationCancelContext(this).execute(params); this.getAllocationTransferContext = (params) => new get_allocation_transfer_context_1.GetAllocationTransferContext(this).execute(params); this.getAllocationWithdrawContext = (params) => new get_allocation_withdraw_context_1.GetAllocationWithdrawContext(this).execute(params); this.getInstrument = (params) => new get_instrument_1.GetInstrument(this).execute(params); this.getRegistryInfo = () => new get_registry_info_1.GetRegistryInfo(this).execute(); this.listInstruments = (params) => new list_instruments_1.ListInstruments(this).execute(params); this.getTransferFactory = (params) => new get_transfer_factory_1.GetTransferFactory(this).execute(params); this.getTransferInstructionAcceptContext = (params) => new get_transfer_instruction_accept_context_1.GetTransferInstructionAcceptContext(this).execute(params); this.getTransferInstructionRejectContext = (params) => new get_transfer_instruction_reject_context_1.GetTransferInstructionRejectContext(this).execute(params); this.getTransferInstructionWithdrawContext = (params) => new get_transfer_instruction_withdraw_context_1.GetTransferInstructionWithdrawContext(this).execute(params); this.createBuyTrafficRequest = (params) => new create_1.CreateBuyTrafficRequest(this).execute(params); this.getBuyTrafficRequestStatus = (params) => new get_status_1.GetBuyTrafficRequestStatus(this).execute(params); this.getAmulets = () => new get_amulets_1.GetAmulets(this).execute(); this.getWalletBalance = () => new get_balance_1.GetWalletBalance(this).execute(); this.getUserStatus = () => new get_user_status_1.GetUserStatus(this).execute(); this.createTokenStandardTransfer = (params) => new create_2.CreateTokenStandardTransfer(this).execute(params); this.listTokenStandardTransfers = () => new list_1.ListTokenStandardTransfers(this).execute(); this.acceptTransferOffer = (params) => new accept_1.AcceptTransferOffer(this).execute(params); this.createTransferOffer = (params) => new create_3.CreateTransferOffer(this).execute(params); this.getTransferOfferStatus = (params) => new get_status_2.GetTransferOfferStatus(this).execute(params); this.listTransferOffers = () => new list_2.ListTransferOffers(this).execute(); this.rejectTransferOffer = (params) => new reject_1.RejectTransferOffer(this).execute(params); this.withdrawTransferOffer = (params) => new withdraw_1.WithdrawTransferOffer(this).execute(params); } } exports.ValidatorApiClient = ValidatorApiClient; //# sourceMappingURL=ValidatorApiClient.generated.js.map