@fairmint/canton-node-sdk
Version:
Canton Node SDK
69 lines • 8.12 kB
TypeScript
import { LookupFeaturedAppRightResponse } from './operations/v0/scan-proxy/lookup-featured-app-right';
import { BaseClient, ClientConfig } from '../../core';
import { AcceptTransferOfferParams, CreateBuyTrafficRequestParams, CreateTransferOfferParams, GetAllocationCancelContextParams, GetAllocationFactoryParams, GetAllocationTransferContextParams, GetAllocationWithdrawContextParams, GetFeaturedAppRightParams, GetInstrumentParams, GetMemberTrafficStatusParams, GetMiningRoundDetailsParams, GetTransferFactoryParams, GetTransferInstructionAcceptContextParams, GetTransferInstructionRejectContextParams, GetTransferInstructionWithdrawContextParams, GetTransferPreapprovalsByPartyParams, ListInstrumentsParams, LookupTransferCommandCounterByPartyParams, LookupTransferCommandStatusParams, RejectTransferOfferParams, WithdrawTransferOfferParams } from './schemas/operations';
import { AcceptTransferOfferResponse, CreateBuyTrafficRequestResponse, CreateTransferOfferResponse, GetAllocationCancelContextResponse, GetAllocationFactoryResponse, GetAllocationTransferContextResponse, GetAllocationWithdrawContextResponse, GetInstrumentResponse, GetMemberTrafficStatusResponse, GetMiningRoundDetailsResponse, GetOpenAndIssuingMiningRoundsResponse, GetRegistryInfoResponse, GetTransferFactoryResponse, GetTransferInstructionAcceptContextResponse, GetTransferInstructionRejectContextResponse, GetTransferInstructionWithdrawContextResponse, ListInstrumentsResponse, ListTransferOffersResponse, LookupTransferCommandCounterByPartyResponse, LookupTransferCommandStatusResponse, LookupTransferPreapprovalByPartyResponse, RejectTransferOfferResponse, WithdrawTransferOfferResponse } from './schemas/api';
import { operations as ansOperations } from '../../generated/apps/validator/src/main/openapi/ans-external';
import { operations as scanProxyOperations } from '../../generated/apps/validator/src/main/openapi/scan-proxy';
import { operations as validatorOperations } from '../../generated/apps/validator/src/main/openapi/validator-internal';
import { operations as walletOperations } from '../../generated/apps/wallet/src/main/openapi/wallet-internal';
/** Client for interacting with Canton's Validator API */
export declare class ValidatorApiClient extends BaseClient {
createUser: (params: validatorOperations['onboardUser']['requestBody']['content']['application/json']) => Promise<validatorOperations['onboardUser']['responses']['200']['content']['application/json']>;
getExternalPartyBalance: (params: {
partyId: string;
}) => Promise<validatorOperations['getExternalPartyBalance']['responses']['200']['content']['application/json']>;
createAnsEntry: (params: ansOperations['createAnsEntry']['requestBody']['content']['application/json']) => Promise<ansOperations['createAnsEntry']['responses']['200']['content']['application/json']>;
getAnsRules: (params: scanProxyOperations['getAnsRules']['requestBody']['content']['application/json']) => Promise<scanProxyOperations['getAnsRules']['responses']['200']['content']['application/json']>;
listAnsEntriesProxy: (params: void) => Promise<ansOperations['listAnsEntries']['responses']['200']['content']['application/json']>;
lookupAnsEntryByName: (params: {
name: string;
}) => Promise<scanProxyOperations['lookupAnsEntryByName']['responses']['200']['content']['application/json']>;
lookupAnsEntryByParty: (params: {
party: string;
}) => Promise<scanProxyOperations['lookupAnsEntryByParty']['responses']['200']['content']['application/json']>;
registerNewUser: (params: void) => Promise<validatorOperations['register']['responses']['200']['content']['application/json']>;
getAmuletRules: (params: void) => Promise<scanProxyOperations['getAmuletRules']['responses']['200']['content']['application/json']>;
getDsoPartyId: (params: void) => Promise<scanProxyOperations['getDsoPartyId']['responses']['200']['content']['application/json']>;
getMemberTrafficStatus: (params: GetMemberTrafficStatusParams) => Promise<GetMemberTrafficStatusResponse>;
getMiningRoundDetails: (params: GetMiningRoundDetailsParams) => Promise<GetMiningRoundDetailsResponse>;
getOpenAndIssuingMiningRounds: (params: void) => Promise<GetOpenAndIssuingMiningRoundsResponse>;
lookupFeaturedAppRight: (params: GetFeaturedAppRightParams) => Promise<LookupFeaturedAppRightResponse>;
lookupTransferCommandCounterByParty: (params: LookupTransferCommandCounterByPartyParams) => Promise<LookupTransferCommandCounterByPartyResponse>;
lookupTransferCommandStatus: (params: LookupTransferCommandStatusParams) => Promise<LookupTransferCommandStatusResponse>;
lookupTransferPreapprovalByParty: (params: GetTransferPreapprovalsByPartyParams) => Promise<LookupTransferPreapprovalByPartyResponse>;
getAllocationFactory: (params: GetAllocationFactoryParams) => Promise<GetAllocationFactoryResponse>;
getAllocationCancelContext: (params: GetAllocationCancelContextParams) => Promise<GetAllocationCancelContextResponse>;
getAllocationTransferContext: (params: GetAllocationTransferContextParams) => Promise<GetAllocationTransferContextResponse>;
getAllocationWithdrawContext: (params: GetAllocationWithdrawContextParams) => Promise<GetAllocationWithdrawContextResponse>;
getInstrument: (params: GetInstrumentParams) => Promise<GetInstrumentResponse>;
getRegistryInfo: (params: void) => Promise<GetRegistryInfoResponse>;
listInstruments: (params: ListInstrumentsParams) => Promise<ListInstrumentsResponse>;
getTransferFactory: (params: GetTransferFactoryParams) => Promise<GetTransferFactoryResponse>;
getTransferInstructionAcceptContext: (params: GetTransferInstructionAcceptContextParams) => Promise<GetTransferInstructionAcceptContextResponse>;
getTransferInstructionRejectContext: (params: GetTransferInstructionRejectContextParams) => Promise<GetTransferInstructionRejectContextResponse>;
getTransferInstructionWithdrawContext: (params: GetTransferInstructionWithdrawContextParams) => Promise<GetTransferInstructionWithdrawContextResponse>;
createBuyTrafficRequest: (params: CreateBuyTrafficRequestParams) => Promise<CreateBuyTrafficRequestResponse>;
getAmulets: (params: void) => Promise<walletOperations['list']['responses']['200']['content']['application/json']>;
getWalletBalance: (params: void) => Promise<walletOperations['getBalance']['responses']['200']['content']['application/json']>;
getUserStatus: (params: void) => Promise<walletOperations['userStatus']['responses']['200']['content']['application/json']>;
createTokenStandardTransfer: (params: walletOperations['createTokenStandardTransfer']['requestBody']['content']['application/json']) => Promise<walletOperations['createTokenStandardTransfer']['responses']['200']['content']['application/json']>;
listTokenStandardTransfers: (params: void) => Promise<walletOperations['listTokenStandardTransfers']['responses']['200']['content']['application/json']>;
acceptTransferOffer: (params: AcceptTransferOfferParams) => Promise<AcceptTransferOfferResponse>;
createTransferOffer: (params: CreateTransferOfferParams) => Promise<CreateTransferOfferResponse>;
listTransferOffers: (params: void) => Promise<ListTransferOffersResponse>;
rejectTransferOffer: (params: RejectTransferOfferParams) => Promise<RejectTransferOfferResponse>;
withdrawTransferOffer: (params: WithdrawTransferOfferParams) => Promise<WithdrawTransferOfferResponse>;
constructor(clientConfig: ClientConfig);
/**
* Initializes method implementations by binding them to operation classes.
* This is required because TypeScript declarations (above) only provide type safety,
* but don't create the actual runtime method implementations.
*
* Auto-generation happens via `yarn generate-client-methods` which:
* 1. Scans operation files for `createApiOperation` usage
* 2. Generates imports, method declarations, and implementations
* 3. Replaces content between codegen markers
*/
private initializeMethods;
}
//# sourceMappingURL=ValidatorApiClient.d.ts.map