@flashbacktech/flashbackclient 0.1.64 → 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.
|
@@ -6,8 +6,8 @@ import { ClientContext } from '.';
|
|
|
6
6
|
export declare class FundingOps {
|
|
7
7
|
private context;
|
|
8
8
|
constructor(context: ClientContext);
|
|
9
|
-
getStableAssetName(): Promise<string>;
|
|
10
|
-
getStableAssetAddress(): Promise<string>;
|
|
9
|
+
getStableAssetName(wallet_address: string): Promise<string>;
|
|
10
|
+
getStableAssetAddress(wallet_address: string): Promise<string>;
|
|
11
11
|
/**
|
|
12
12
|
* Sends funds from the contract to a receiver (owner only)
|
|
13
13
|
* @param receiver - Address of the receiver
|
|
@@ -44,8 +44,8 @@ class FundingOps {
|
|
|
44
44
|
});
|
|
45
45
|
this.context = context;
|
|
46
46
|
}
|
|
47
|
-
async getStableAssetName() {
|
|
48
|
-
const response = await (0, transaction_1.prepareTransaction)(this.context,
|
|
47
|
+
async getStableAssetName(wallet_address) {
|
|
48
|
+
const response = await (0, transaction_1.prepareTransaction)(this.context, wallet_address, {
|
|
49
49
|
method: 'get_stable_asset_name',
|
|
50
50
|
args: []
|
|
51
51
|
});
|
|
@@ -54,8 +54,8 @@ class FundingOps {
|
|
|
54
54
|
}
|
|
55
55
|
return '';
|
|
56
56
|
}
|
|
57
|
-
async getStableAssetAddress() {
|
|
58
|
-
const response = await (0, transaction_1.prepareTransaction)(this.context,
|
|
57
|
+
async getStableAssetAddress(wallet_address) {
|
|
58
|
+
const response = await (0, transaction_1.prepareTransaction)(this.context, wallet_address, {
|
|
59
59
|
method: 'get_stable_asset_address',
|
|
60
60
|
args: []
|
|
61
61
|
});
|
|
@@ -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
|
{
|