UNPKG

stellar-plus

Version:

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

31 lines (30 loc) 1.56 kB
import { xdr } from '@stellar/stellar-sdk'; import { FeeBumpHeader, TransactionInvocation } from '../../../stellar-plus/types'; import { AccountHandler, SignatureSchema } from '../../account/account-handler/types'; import { EnvelopeHeader } from '../../core/types'; export declare const MockSubmitTransaction: { hash: string; ledger: string; successful: boolean; envelope_xdr: string; result_xdr: string; result_meta_xdr: string; paging_token: string; }; export declare const mockAccount = "GBDMM7FQBVQPZFQPXVS3ZKK4UMELIWPBLG2BZQSWERD2KZR44WI6PTBQ"; export declare const mockSecretAccount = "SCA6IAHZA53NVVOYVUQQI3YCNVUUBNJ4WMNQHFLKI4AKPXFGCU5NCXOV"; export declare function mockHeader(sourceKey?: string): EnvelopeHeader; export declare function mockSignatureSchema(threasholds?: SignatureSchema['threasholds'], signers?: SignatureSchema['signers']): SignatureSchema; export declare function mockAccountHandler({ accountKey, outputSignedTransaction, outputSignedAuthEntry, signatureSchema, }: { accountKey?: string; outputSignedTransaction?: string; outputSignedAuthEntry?: xdr.SorobanAuthorizationEntry; signatureSchema?: SignatureSchema; }): jest.Mocked<AccountHandler>; export declare function mockFeeBumpHeader(signerKey?: string): FeeBumpHeader; export declare function mockTransactionInvocation(signerKey?: string): TransactionInvocation; export declare const mockTransactionBuilder: { build: jest.Mock<any, any, any>; addOperation: jest.Mock<any, any, any>; toXDR: jest.Mock<any, any, any>; };