UNPKG

stellar-plus

Version:

beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain

19 lines (18 loc) 1.55 kB
import { Transaction, xdr } from '@stellar/stellar-sdk'; import { StellarPlusError } from '../../../../stellar-plus/error'; import { ConveyorBeltErrorMeta } from '../../../../stellar-plus/error/helpers/conveyor-belt'; import { BeltMetadata } from '../../../../stellar-plus/utils/pipeline/conveyor-belts/types'; import { SorobanAuthPipelineInput } from './types'; export declare enum ErrorCodesPipelineSorobanAuth { PSA001 = "PSA001", PSA002 = "PSA002", PSA003 = "PSA003", PSA004 = "PSA004" } export declare const PSAError: { signerNotFound: (conveyorBeltErrorMeta: ConveyorBeltErrorMeta<SorobanAuthPipelineInput, BeltMetadata>, transaction: Transaction, signers: string[], authEntryRequiredSigner: string, authEntry: xdr.SorobanAuthorizationEntry) => StellarPlusError; noSignersProvided: (conveyorBeltErrorMeta: ConveyorBeltErrorMeta<SorobanAuthPipelineInput, BeltMetadata>) => StellarPlusError; couldntUpdateTransaction: (error: Error, conveyorBeltErrorMeta: ConveyorBeltErrorMeta<SorobanAuthPipelineInput, BeltMetadata>, transaction: Transaction, signedAuthEntries: xdr.SorobanAuthorizationEntry[]) => StellarPlusError; couldntSimulateAuthorizedTransaction: (error: Error, conveyorBeltErrorMeta: ConveyorBeltErrorMeta<SorobanAuthPipelineInput, BeltMetadata>, transaction: Transaction, signedAuthEntries: xdr.SorobanAuthorizationEntry[]) => StellarPlusError; contractAuthNotSupported: (contractId: string, conveyorBeltErrorMeta: ConveyorBeltErrorMeta<SorobanAuthPipelineInput, BeltMetadata>) => StellarPlusError; };