@xcapit/shelter-sdk
Version:
SDK for Shelter smart contracts on Stellar
44 lines (43 loc) • 1.17 kB
TypeScript
import { rpc, xdr } from "@stellar/stellar-sdk";
export declare const contractAddressTxReponse: {
returnValue: {
address: () => xdr.ScAddress;
};
status: rpc.Api.GetTransactionStatus;
};
export declare const pollTxReponseSuccess: {
status: rpc.Api.GetTransactionStatus;
};
export declare const pollTxReponseNotFound: {
status: rpc.Api.GetTransactionStatus;
};
export declare class FakeStellarRpc {
assembleTransaction(raw: any, simulation: any): {
build: () => {
sign: () => void;
};
};
}
export declare class FakeServer {
private readonly _pollTransactionReponse;
serverURL: string;
constructor(_pollTransactionReponse?: any);
getNetwork(): Promise<{
passphrase: string;
}>;
sendTransaction(tx: any): {
hash: string;
};
pollTransaction(hash: string): any;
getLatestLedger(): Promise<any>;
simulateTransaction(): Promise<{
transactionData: {};
minResourceFee: string;
result: {};
stateChanges: never[];
id: string;
latestLedger: number;
events: never[];
_parsed: boolean;
}>;
}