@flashbacktech/flashbackclient 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,6 +55,12 @@ export declare class FlashOnStellarClientV2 {
|
|
|
55
55
|
* @returns Promise resolving to the contract version
|
|
56
56
|
*/
|
|
57
57
|
getVersion(): Promise<number>;
|
|
58
|
+
/**
|
|
59
|
+
* Sends a transaction to the Stellar network
|
|
60
|
+
* @param xdrToSend - The XDR-encoded transaction to send
|
|
61
|
+
* @returns Promise resolving to the sent transaction
|
|
62
|
+
*/
|
|
63
|
+
sendTransaction: (xdrToSend: string, bDebug?: boolean) => Promise<any>;
|
|
58
64
|
/**
|
|
59
65
|
* Gets the owner address of the contract
|
|
60
66
|
* @returns Promise resolving to the owner address
|
|
@@ -26,6 +26,14 @@ class FlashOnStellarClientV2 {
|
|
|
26
26
|
* @param config - Configuration options for the client
|
|
27
27
|
*/
|
|
28
28
|
constructor(config) {
|
|
29
|
+
/**
|
|
30
|
+
* Sends a transaction to the Stellar network
|
|
31
|
+
* @param xdrToSend - The XDR-encoded transaction to send
|
|
32
|
+
* @returns Promise resolving to the sent transaction
|
|
33
|
+
*/
|
|
34
|
+
this.sendTransaction = async (xdrToSend, bDebug = false) => {
|
|
35
|
+
return (0, transaction_1.sendTransaction)(this.getContext(), xdrToSend, bDebug);
|
|
36
|
+
};
|
|
29
37
|
this.registerAsConsumerProvider = (0, decorator_1.withSignature)(async (address, description) => {
|
|
30
38
|
await (0, transaction_1.executeMultiWalletTransactions)(this.getContext(), address, [
|
|
31
39
|
{
|