aftermath-ts-sdk 1.1.74-dca.1 → 1.1.74-dca.2
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.
|
@@ -53,14 +53,5 @@ export declare class Dca extends Caller {
|
|
|
53
53
|
* @returns A promise that resolves with the API transaction.
|
|
54
54
|
*/
|
|
55
55
|
getCancelDcaOrderTx(inputs: ApiDcaTransactionForCancelOrderBody): Promise<Transaction>;
|
|
56
|
-
/**
|
|
57
|
-
* Fetches address by SuiNS domain
|
|
58
|
-
* @async
|
|
59
|
-
* @param string domainName - An object containing the walletAddress.
|
|
60
|
-
* @returns {Promise<string | undefined | null>} A promise that resolves to a
|
|
61
|
-
* string object with wallet address if it exist
|
|
62
|
-
*/
|
|
63
|
-
getNameServiceAddress(domainName: string): Promise<string | undefined | null>;
|
|
64
|
-
private useProvider;
|
|
65
56
|
}
|
|
66
57
|
//# sourceMappingURL=dca.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dca.d.ts","sourceRoot":"","sources":["../../../src/packages/dca/dca.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACN,gBAAgB,EAChB,mCAAmC,EACnC,eAAe,EACf,mCAAmC,EACnC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,qBAAa,GAAI,SAAQ,MAAM;aAOb,OAAO,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBADV,OAAO,CAAC,wBAAY,EACnB,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AIzE;;;;;OAKG;IAEa,gBAAgB,CAAC,MAAM,EAAE;QAAE,aAAa,EAAE,UAAU,CAAC;KAAE;IAIvE;;;;;OAKG;IACU,yBAAyB,CAAC,MAAM,EAAE,4BAA4B;IAW3E;;;;OAIG;IAEa,mBAAmB,CAAC,MAAM,EAAE,mCAAmC,GAAG,OAAO,CAAC,WAAW,CAAC;IAOtG;;;;OAIG;IAEU,mBAAmB,CAAC,MAAM,EAAE,mCAAmC;CAM5E"}
|
package/dist/packages/dca/dca.js
CHANGED
|
@@ -19,16 +19,6 @@ class Dca extends caller_1.Caller {
|
|
|
19
19
|
super(network, "dca");
|
|
20
20
|
this.network = network;
|
|
21
21
|
this.Provider = Provider;
|
|
22
|
-
// =========================================================================
|
|
23
|
-
// Private Helpers
|
|
24
|
-
// =========================================================================
|
|
25
|
-
this.useProvider = () => {
|
|
26
|
-
var _a;
|
|
27
|
-
const provider = (_a = this.Provider) === null || _a === void 0 ? void 0 : _a.Dca();
|
|
28
|
-
if (!provider)
|
|
29
|
-
throw new Error("missing AftermathApi Provider");
|
|
30
|
-
return provider;
|
|
31
|
-
};
|
|
32
22
|
}
|
|
33
23
|
// =========================================================================
|
|
34
24
|
// Class Objects
|
|
@@ -100,23 +90,5 @@ class Dca extends caller_1.Caller {
|
|
|
100
90
|
return this.fetchApiTransaction("transactions/cancel-order", inputs);
|
|
101
91
|
});
|
|
102
92
|
}
|
|
103
|
-
// =========================================================================
|
|
104
|
-
// Helpers
|
|
105
|
-
// =========================================================================
|
|
106
|
-
/**
|
|
107
|
-
* Fetches address by SuiNS domain
|
|
108
|
-
* @async
|
|
109
|
-
* @param string domainName - An object containing the walletAddress.
|
|
110
|
-
* @returns {Promise<string | undefined | null>} A promise that resolves to a
|
|
111
|
-
* string object with wallet address if it exist
|
|
112
|
-
*/
|
|
113
|
-
getNameServiceAddress(domainName) {
|
|
114
|
-
var _a;
|
|
115
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
return (_a = this.Provider) === null || _a === void 0 ? void 0 : _a.provider.resolveNameServiceAddress({
|
|
117
|
-
name: domainName
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
93
|
}
|
|
122
94
|
exports.Dca = Dca;
|