@fairmint/canton-node-sdk
Version:
Canton Node SDK
310 lines • 14 kB
TypeScript
import { z } from 'zod';
export declare const GetDsoPartyIdResponseSchema: z.ZodObject<{
dso_party_id: z.ZodString;
}, z.core.$strip>;
export type GetDsoPartyIdResponse = z.infer<typeof GetDsoPartyIdResponseSchema>;
export declare const GetMemberTrafficStatusResponseSchema: z.ZodObject<{
traffic_status: z.ZodObject<{
actual: z.ZodObject<{
total_consumed: z.ZodNumber;
total_limit: z.ZodNumber;
}, z.core.$strip>;
target: z.ZodObject<{
total_purchased: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
}, z.core.$strip>;
export type GetMemberTrafficStatusResponse = z.infer<typeof GetMemberTrafficStatusResponseSchema>;
export declare const OpenMiningRoundSchema: z.ZodObject<{
contract: z.ZodObject<{
contract_id: z.ZodString;
template_id: z.ZodString;
created_event_blob: z.ZodString;
payload: z.ZodObject<{
opensAt: z.ZodOptional<z.ZodString>;
roundNumber: z.ZodOptional<z.ZodNumber>;
round_number: z.ZodOptional<z.ZodNumber>;
round: z.ZodOptional<z.ZodObject<{
number: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
domain_id: z.ZodString;
}, z.core.$strip>;
export declare const IssuingMiningRoundSchema: z.ZodObject<{
round_number: z.ZodNumber;
contract_id: z.ZodOptional<z.ZodString>;
contract: z.ZodOptional<z.ZodObject<{
contract_id: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetOpenAndIssuingMiningRoundsResponseSchema: z.ZodObject<{
open_mining_rounds: z.ZodArray<z.ZodObject<{
contract: z.ZodObject<{
contract_id: z.ZodString;
template_id: z.ZodString;
created_event_blob: z.ZodString;
payload: z.ZodObject<{
opensAt: z.ZodOptional<z.ZodString>;
roundNumber: z.ZodOptional<z.ZodNumber>;
round_number: z.ZodOptional<z.ZodNumber>;
round: z.ZodOptional<z.ZodObject<{
number: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
domain_id: z.ZodString;
}, z.core.$strip>>;
issuing_mining_rounds: z.ZodArray<z.ZodObject<{
round_number: z.ZodNumber;
contract_id: z.ZodOptional<z.ZodString>;
contract: z.ZodOptional<z.ZodObject<{
contract_id: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const MiningRoundDetailsSchema: z.ZodObject<{
round_number: z.ZodNumber;
issuance_per_featured_app_reward_coupon: z.ZodString;
issuance_per_unfeatured_app_reward_coupon: z.ZodString;
effective_at: z.ZodString;
status: z.ZodEnum<{
open: "open";
issuing: "issuing";
closed: "closed";
}>;
}, z.core.$strip>;
export declare const GetMiningRoundDetailsResponseSchema: z.ZodObject<{
mining_round: z.ZodObject<{
round_number: z.ZodNumber;
issuance_per_featured_app_reward_coupon: z.ZodString;
issuance_per_unfeatured_app_reward_coupon: z.ZodString;
effective_at: z.ZodString;
status: z.ZodEnum<{
open: "open";
issuing: "issuing";
closed: "closed";
}>;
}, z.core.$strip>;
}, z.core.$strip>;
export type OpenMiningRound = z.infer<typeof OpenMiningRoundSchema>;
export type IssuingMiningRound = z.infer<typeof IssuingMiningRoundSchema>;
export type GetOpenAndIssuingMiningRoundsResponse = z.infer<typeof GetOpenAndIssuingMiningRoundsResponseSchema>;
export type MiningRoundDetails = z.infer<typeof MiningRoundDetailsSchema>;
export type GetMiningRoundDetailsResponse = z.infer<typeof GetMiningRoundDetailsResponseSchema>;
export declare const GetAmuletRulesResponseSchema: z.ZodObject<{
amulet_rules: z.ZodObject<{
contract: z.ZodObject<{
template_id: z.ZodString;
contract_id: z.ZodString;
payload: z.ZodAny;
created_event_blob: z.ZodString;
created_at: z.ZodString;
}, z.core.$strip>;
domain_id: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
export type GetAmuletRulesResponse = z.infer<typeof GetAmuletRulesResponseSchema>;
export declare const LookupTransferCommandCounterByPartyResponseSchema: z.ZodObject<{
counter: z.ZodNumber;
}, z.core.$strip>;
export declare const LookupTransferCommandStatusResponseSchema: z.ZodObject<{
status: z.ZodString;
}, z.core.$strip>;
export type LookupTransferCommandCounterByPartyResponse = z.infer<typeof LookupTransferCommandCounterByPartyResponseSchema>;
export type LookupTransferCommandStatusResponse = z.infer<typeof LookupTransferCommandStatusResponseSchema>;
export declare const LookupTransferPreapprovalByPartyResponseSchema: z.ZodObject<{
transfer_preapproval: z.ZodObject<{
contract: z.ZodAny;
domain_id: z.ZodString;
}, z.core.$strip>;
}, z.core.$strip>;
export type LookupTransferPreapprovalByPartyResponse = z.infer<typeof LookupTransferPreapprovalByPartyResponseSchema>;
export declare const GetRegistryInfoResponseSchema: z.ZodObject<{
adminId: z.ZodString;
supportedApis: z.ZodRecord<z.ZodString, z.ZodNumber>;
}, z.core.$strip>;
export declare const InstrumentSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
symbol: z.ZodString;
totalSupply: z.ZodOptional<z.ZodString>;
totalSupplyAsOf: z.ZodOptional<z.ZodString>;
decimals: z.ZodNumber;
supportedApis: z.ZodRecord<z.ZodString, z.ZodNumber>;
}, z.core.$strip>;
export declare const ListInstrumentsResponseSchema: z.ZodObject<{
instruments: z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
symbol: z.ZodString;
totalSupply: z.ZodOptional<z.ZodString>;
totalSupplyAsOf: z.ZodOptional<z.ZodString>;
decimals: z.ZodNumber;
supportedApis: z.ZodRecord<z.ZodString, z.ZodNumber>;
}, z.core.$strip>>;
nextPageToken: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const GetInstrumentResponseSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
symbol: z.ZodString;
totalSupply: z.ZodOptional<z.ZodString>;
totalSupplyAsOf: z.ZodOptional<z.ZodString>;
decimals: z.ZodNumber;
supportedApis: z.ZodRecord<z.ZodString, z.ZodNumber>;
}, z.core.$strip>;
export declare const ChoiceContextSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetAllocationFactoryResponseSchema: z.ZodObject<{
factoryId: z.ZodString;
choiceContext: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const GetAllocationTransferContextResponseSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetAllocationWithdrawContextResponseSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetAllocationCancelContextResponseSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const TransferFactoryWithChoiceContextSchema: z.ZodObject<{
factoryId: z.ZodString;
transferKind: z.ZodEnum<{
self: "self";
direct: "direct";
offer: "offer";
}>;
choiceContext: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const GetTransferFactoryResponseSchema: z.ZodObject<{
factoryId: z.ZodString;
transferKind: z.ZodEnum<{
self: "self";
direct: "direct";
offer: "offer";
}>;
choiceContext: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const GetTransferInstructionAcceptContextResponseSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetTransferInstructionRejectContextResponseSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetTransferInstructionWithdrawContextResponseSchema: z.ZodObject<{
choiceContextData: z.ZodRecord<z.ZodString, z.ZodNever>;
disclosedContracts: z.ZodArray<z.ZodObject<{
templateId: z.ZodString;
contractId: z.ZodString;
createdEventBlob: z.ZodString;
synchronizerId: z.ZodString;
debugPackageName: z.ZodOptional<z.ZodString>;
debugPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
debugCreatedAt: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export type GetRegistryInfoResponse = z.infer<typeof GetRegistryInfoResponseSchema>;
export type Instrument = z.infer<typeof InstrumentSchema>;
export type ListInstrumentsResponse = z.infer<typeof ListInstrumentsResponseSchema>;
export type GetInstrumentResponse = z.infer<typeof GetInstrumentResponseSchema>;
export type ChoiceContext = z.infer<typeof ChoiceContextSchema>;
export type GetAllocationFactoryResponse = z.infer<typeof GetAllocationFactoryResponseSchema>;
export type GetAllocationTransferContextResponse = z.infer<typeof GetAllocationTransferContextResponseSchema>;
export type GetAllocationWithdrawContextResponse = z.infer<typeof GetAllocationWithdrawContextResponseSchema>;
export type GetAllocationCancelContextResponse = z.infer<typeof GetAllocationCancelContextResponseSchema>;
export type TransferFactoryWithChoiceContext = z.infer<typeof TransferFactoryWithChoiceContextSchema>;
export type GetTransferFactoryResponse = z.infer<typeof GetTransferFactoryResponseSchema>;
export type GetTransferInstructionAcceptContextResponse = z.infer<typeof GetTransferInstructionAcceptContextResponseSchema>;
export type GetTransferInstructionRejectContextResponse = z.infer<typeof GetTransferInstructionRejectContextResponseSchema>;
export type GetTransferInstructionWithdrawContextResponse = z.infer<typeof GetTransferInstructionWithdrawContextResponseSchema>;
//# sourceMappingURL=scan-proxy.d.ts.map