@ledgerhq/wallet-api-exchange-module 0.4.0 → 0.5.0-next.0
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.
- package/lib/index.d.ts +14 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +22 -5
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +12 -8
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +0 -3
- package/lib/types.js.map +1 -1
- package/lib-es/index.d.ts +14 -5
- package/lib-es/index.d.ts.map +1 -1
- package/lib-es/index.js +22 -5
- package/lib-es/index.js.map +1 -1
- package/lib-es/types.d.ts +12 -8
- package/lib-es/types.d.ts.map +1 -1
- package/lib-es/types.js +0 -3
- package/lib-es/types.js.map +1 -1
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { CustomModule, Transaction } from "@ledgerhq/wallet-api-client";
|
|
3
|
-
import { ExchangeCompleteParams,
|
|
3
|
+
import { ExchangeCompleteParams, ExchangeStartSellParams, ExchangeStartSwapParams } from "./types";
|
|
4
4
|
export * from "./types";
|
|
5
5
|
export declare class ExchangeModule extends CustomModule {
|
|
6
6
|
/**
|
|
@@ -9,7 +9,14 @@ export declare class ExchangeModule extends CustomModule {
|
|
|
9
9
|
*
|
|
10
10
|
* @returns - A transaction ID used to complete the exchange process
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
startFund(): Promise<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Start the exchange process by generating a nonce on Ledger device
|
|
15
|
+
* @param provider - provider's id
|
|
16
|
+
*
|
|
17
|
+
* @returns - A transaction ID used to complete the exchange process
|
|
18
|
+
*/
|
|
19
|
+
startSell({ provider }: Omit<ExchangeStartSellParams, "exchangeType">): Promise<string>;
|
|
13
20
|
/**
|
|
14
21
|
* Start the swap process by generating a nonce on Ledger device
|
|
15
22
|
* @param exchangeType - used by the exchange transport to discern between swap/sell/fund
|
|
@@ -25,7 +32,8 @@ export declare class ExchangeModule extends CustomModule {
|
|
|
25
32
|
* @param fromAccountId - Identifier of the account used as a source for the tx or parent account (for "new token")
|
|
26
33
|
* @param toAccountId - Identifier of the account or parent account (for "new token") used as a destination
|
|
27
34
|
* @param swapId - Identifier of the swap used by backend
|
|
28
|
-
* @param
|
|
35
|
+
* @param amountExpectedTo - Amount expected to receive by the user in the transaction
|
|
36
|
+
* @param magnitudeAwareRate - rate expected to receive by the user in the swap transaction
|
|
29
37
|
* @param tokenCurrency - "new token" used in the transaction, not listed yet in wallet-api list
|
|
30
38
|
* @param transaction - Transaction containing the recipient and amount
|
|
31
39
|
* @param binaryPayload - Blueprint of the data that we'll allow signing
|
|
@@ -34,12 +42,13 @@ export declare class ExchangeModule extends CustomModule {
|
|
|
34
42
|
*
|
|
35
43
|
* @returns - The broadcasted transaction hash.
|
|
36
44
|
*/
|
|
37
|
-
completeSwap({ provider, fromAccountId, toAccountId, swapId,
|
|
45
|
+
completeSwap({ provider, fromAccountId, toAccountId, swapId, amountExpectedTo, magnitudeAwareRate, transaction, binaryPayload, signature, feeStrategy, tokenCurrency, }: {
|
|
38
46
|
provider: string;
|
|
39
47
|
fromAccountId: string;
|
|
40
48
|
toAccountId: string;
|
|
41
49
|
swapId: string;
|
|
42
|
-
|
|
50
|
+
amountExpectedTo: bigint;
|
|
51
|
+
magnitudeAwareRate: bigint;
|
|
43
52
|
transaction: Transaction;
|
|
44
53
|
binaryPayload: string;
|
|
45
54
|
signature: string;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"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a,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;KACpD,GAAG,OAAO,CAAC,MAAM,CAAC;IAiBnB;;;;;;;;;;;;OAYG;IACG,YAAY,CAAC,EACjB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,GACd,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,WAAW,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;QACnD,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBpB"}
|
package/lib/index.js
CHANGED
|
@@ -34,10 +34,25 @@ class ExchangeModule extends wallet_api_client_1.CustomModule {
|
|
|
34
34
|
*
|
|
35
35
|
* @returns - A transaction ID used to complete the exchange process
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
startFund() {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const result = yield this.request("custom.exchange.start", {
|
|
40
|
-
exchangeType,
|
|
40
|
+
exchangeType: "FUND",
|
|
41
|
+
});
|
|
42
|
+
return result.transactionId;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Start the exchange process by generating a nonce on Ledger device
|
|
47
|
+
* @param provider - provider's id
|
|
48
|
+
*
|
|
49
|
+
* @returns - A transaction ID used to complete the exchange process
|
|
50
|
+
*/
|
|
51
|
+
startSell({ provider }) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const result = yield this.request("custom.exchange.start", {
|
|
54
|
+
exchangeType: "SELL",
|
|
55
|
+
provider,
|
|
41
56
|
});
|
|
42
57
|
return result.transactionId;
|
|
43
58
|
});
|
|
@@ -68,7 +83,8 @@ class ExchangeModule extends wallet_api_client_1.CustomModule {
|
|
|
68
83
|
* @param fromAccountId - Identifier of the account used as a source for the tx or parent account (for "new token")
|
|
69
84
|
* @param toAccountId - Identifier of the account or parent account (for "new token") used as a destination
|
|
70
85
|
* @param swapId - Identifier of the swap used by backend
|
|
71
|
-
* @param
|
|
86
|
+
* @param amountExpectedTo - Amount expected to receive by the user in the transaction
|
|
87
|
+
* @param magnitudeAwareRate - rate expected to receive by the user in the swap transaction
|
|
72
88
|
* @param tokenCurrency - "new token" used in the transaction, not listed yet in wallet-api list
|
|
73
89
|
* @param transaction - Transaction containing the recipient and amount
|
|
74
90
|
* @param binaryPayload - Blueprint of the data that we'll allow signing
|
|
@@ -77,7 +93,7 @@ class ExchangeModule extends wallet_api_client_1.CustomModule {
|
|
|
77
93
|
*
|
|
78
94
|
* @returns - The broadcasted transaction hash.
|
|
79
95
|
*/
|
|
80
|
-
completeSwap({ provider, fromAccountId, toAccountId, swapId,
|
|
96
|
+
completeSwap({ provider, fromAccountId, toAccountId, swapId, amountExpectedTo, magnitudeAwareRate, transaction, binaryPayload, signature, feeStrategy, tokenCurrency, }) {
|
|
81
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
98
|
const result = yield this.request("custom.exchange.complete", {
|
|
83
99
|
exchangeType: "SWAP",
|
|
@@ -85,7 +101,8 @@ class ExchangeModule extends wallet_api_client_1.CustomModule {
|
|
|
85
101
|
fromAccountId,
|
|
86
102
|
toAccountId,
|
|
87
103
|
swapId,
|
|
88
|
-
|
|
104
|
+
amountExpectedTo,
|
|
105
|
+
magnitudeAwareRate,
|
|
89
106
|
rawTransaction: (0, wallet_api_client_1.serializeTransaction)(transaction),
|
|
90
107
|
hexBinaryPayload: binaryPayload,
|
|
91
108
|
hexSignature: signature,
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA8F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA8F;AAU9F,0CAAwB;AAExB,wFAAwF;AACxF,MAAa,cAAe,SAAQ,gCAAY;IAC9C;;;;;OAKG;IACG,SAAS;;YACb,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,uBAAuB,EACvB;gBACE,YAAY,EAAE,MAAM;aACrB,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,aAAa,CAAC;QAC9B,CAAC;KAAA;IAED;;;;;OAKG;IACG,SAAS,CAAC,EAAE,QAAQ,EAAiD;;YACzE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,uBAAuB,EACvB;gBACE,YAAY,EAAE,MAAM;gBACpB,QAAQ;aACT,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,aAAa,CAAC;QAC9B,CAAC;KAAA;IAED;;;;;OAKG;IACG,SAAS,CAAC,EACd,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,WAAW,EACX,aAAa,GACW;;YACxB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,uBAAuB,EACvB;gBACE,YAAY;gBACZ,QAAQ;gBACR,aAAa;gBACb,WAAW;gBACX,aAAa;aACd,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,aAAa,CAAC;QAC9B,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;OAiBG;IACG,YAAY,CAAC,EACjB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,GAad;;YACC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,0BAA0B,EAC1B;g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ACd,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,eAAe,CAAC;QAChC,CAAC;KAAA;CACF;AAzND,wCAyNC"}
|
package/lib/types.d.ts
CHANGED
|
@@ -2,15 +2,18 @@ import { RawTransaction } from "@ledgerhq/wallet-api-core";
|
|
|
2
2
|
export declare enum ExchangeType {
|
|
3
3
|
SWAP = 0,
|
|
4
4
|
SELL = 1,
|
|
5
|
-
FUND = 2
|
|
6
|
-
SWAP_NG = 3,
|
|
7
|
-
SELL_NG = 4,
|
|
8
|
-
FUND_NG = 5
|
|
5
|
+
FUND = 2
|
|
9
6
|
}
|
|
10
|
-
export type ExchangeStartParams =
|
|
11
|
-
|
|
7
|
+
export type ExchangeStartParams = ExchangeStartFundParams | ExchangeStartSellParams | ExchangeStartSwapParams;
|
|
8
|
+
export type ExchangeStartFundParams = {
|
|
9
|
+
exchangeType: "FUND";
|
|
12
10
|
};
|
|
13
|
-
export type
|
|
11
|
+
export type ExchangeStartSellParams = {
|
|
12
|
+
exchangeType: "SELL";
|
|
13
|
+
provider: string;
|
|
14
|
+
};
|
|
15
|
+
export type ExchangeStartSwapParams = {
|
|
16
|
+
exchangeType: "SWAP";
|
|
14
17
|
provider: string;
|
|
15
18
|
fromAccountId: string;
|
|
16
19
|
toAccountId: string;
|
|
@@ -38,7 +41,8 @@ export type ExchangeCompleteSwapParams = ExchangeCompleteBaseParams & {
|
|
|
38
41
|
exchangeType: "SWAP";
|
|
39
42
|
toAccountId: string;
|
|
40
43
|
swapId: string;
|
|
41
|
-
|
|
44
|
+
amountExpectedTo: bigint;
|
|
45
|
+
magnitudeAwareRate: bigint;
|
|
42
46
|
};
|
|
43
47
|
export type ExchangeCompleteParams = ExchangeCompleteFundParams | ExchangeCompleteSellParams | ExchangeCompleteSwapParams;
|
|
44
48
|
export type ExchangeCompleteResult = {
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.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,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG;IACpE,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,0BAA0B,GAAG;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,0BAA0B,GAC1B,0BAA0B,GAC1B,0BAA0B,CAAC;AAE/B,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
package/lib/types.js
CHANGED
|
@@ -6,8 +6,5 @@ var ExchangeType;
|
|
|
6
6
|
ExchangeType[ExchangeType["SWAP"] = 0] = "SWAP";
|
|
7
7
|
ExchangeType[ExchangeType["SELL"] = 1] = "SELL";
|
|
8
8
|
ExchangeType[ExchangeType["FUND"] = 2] = "FUND";
|
|
9
|
-
ExchangeType[ExchangeType["SWAP_NG"] = 3] = "SWAP_NG";
|
|
10
|
-
ExchangeType[ExchangeType["SELL_NG"] = 4] = "SELL_NG";
|
|
11
|
-
ExchangeType[ExchangeType["FUND_NG"] = 5] = "FUND_NG";
|
|
12
9
|
})(ExchangeType || (exports.ExchangeType = ExchangeType = {}));
|
|
13
10
|
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;AACb,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
package/lib-es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { CustomModule, Transaction } from "@ledgerhq/wallet-api-client";
|
|
3
|
-
import { ExchangeCompleteParams,
|
|
3
|
+
import { ExchangeCompleteParams, ExchangeStartSellParams, ExchangeStartSwapParams } from "./types";
|
|
4
4
|
export * from "./types";
|
|
5
5
|
export declare class ExchangeModule extends CustomModule {
|
|
6
6
|
/**
|
|
@@ -9,7 +9,14 @@ export declare class ExchangeModule extends CustomModule {
|
|
|
9
9
|
*
|
|
10
10
|
* @returns - A transaction ID used to complete the exchange process
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
startFund(): Promise<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Start the exchange process by generating a nonce on Ledger device
|
|
15
|
+
* @param provider - provider's id
|
|
16
|
+
*
|
|
17
|
+
* @returns - A transaction ID used to complete the exchange process
|
|
18
|
+
*/
|
|
19
|
+
startSell({ provider }: Omit<ExchangeStartSellParams, "exchangeType">): Promise<string>;
|
|
13
20
|
/**
|
|
14
21
|
* Start the swap process by generating a nonce on Ledger device
|
|
15
22
|
* @param exchangeType - used by the exchange transport to discern between swap/sell/fund
|
|
@@ -25,7 +32,8 @@ export declare class ExchangeModule extends CustomModule {
|
|
|
25
32
|
* @param fromAccountId - Identifier of the account used as a source for the tx or parent account (for "new token")
|
|
26
33
|
* @param toAccountId - Identifier of the account or parent account (for "new token") used as a destination
|
|
27
34
|
* @param swapId - Identifier of the swap used by backend
|
|
28
|
-
* @param
|
|
35
|
+
* @param amountExpectedTo - Amount expected to receive by the user in the transaction
|
|
36
|
+
* @param magnitudeAwareRate - rate expected to receive by the user in the swap transaction
|
|
29
37
|
* @param tokenCurrency - "new token" used in the transaction, not listed yet in wallet-api list
|
|
30
38
|
* @param transaction - Transaction containing the recipient and amount
|
|
31
39
|
* @param binaryPayload - Blueprint of the data that we'll allow signing
|
|
@@ -34,12 +42,13 @@ export declare class ExchangeModule extends CustomModule {
|
|
|
34
42
|
*
|
|
35
43
|
* @returns - The broadcasted transaction hash.
|
|
36
44
|
*/
|
|
37
|
-
completeSwap({ provider, fromAccountId, toAccountId, swapId,
|
|
45
|
+
completeSwap({ provider, fromAccountId, toAccountId, swapId, amountExpectedTo, magnitudeAwareRate, transaction, binaryPayload, signature, feeStrategy, tokenCurrency, }: {
|
|
38
46
|
provider: string;
|
|
39
47
|
fromAccountId: string;
|
|
40
48
|
toAccountId: string;
|
|
41
49
|
swapId: string;
|
|
42
|
-
|
|
50
|
+
amountExpectedTo: bigint;
|
|
51
|
+
magnitudeAwareRate: bigint;
|
|
43
52
|
transaction: Transaction;
|
|
44
53
|
binaryPayload: string;
|
|
45
54
|
signature: string;
|
package/lib-es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,sBAAsB,EAItB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,cAAc,SAAS,CAAC;AAGxB,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;;;OAKG;IACG,SAAS;IAWf;;;;;OAKG;IACG,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,uBAAuB,EAAE,cAAc,CAAC;IAY3E;;;;;OAKG;IACG,SAAS,CAAC,EACd,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,WAAW,EACX,aAAa,GACd,E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,sBAAsB,CAAC,aAAa,CAAC,CAAC;QACnD,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBpB"}
|
package/lib-es/index.js
CHANGED
|
@@ -17,10 +17,25 @@ export class ExchangeModule extends CustomModule {
|
|
|
17
17
|
*
|
|
18
18
|
* @returns - A transaction ID used to complete the exchange process
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
startFund() {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
const result = yield this.request("custom.exchange.start", {
|
|
23
|
-
exchangeType,
|
|
23
|
+
exchangeType: "FUND",
|
|
24
|
+
});
|
|
25
|
+
return result.transactionId;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Start the exchange process by generating a nonce on Ledger device
|
|
30
|
+
* @param provider - provider's id
|
|
31
|
+
*
|
|
32
|
+
* @returns - A transaction ID used to complete the exchange process
|
|
33
|
+
*/
|
|
34
|
+
startSell({ provider }) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const result = yield this.request("custom.exchange.start", {
|
|
37
|
+
exchangeType: "SELL",
|
|
38
|
+
provider,
|
|
24
39
|
});
|
|
25
40
|
return result.transactionId;
|
|
26
41
|
});
|
|
@@ -51,7 +66,8 @@ export class ExchangeModule extends CustomModule {
|
|
|
51
66
|
* @param fromAccountId - Identifier of the account used as a source for the tx or parent account (for "new token")
|
|
52
67
|
* @param toAccountId - Identifier of the account or parent account (for "new token") used as a destination
|
|
53
68
|
* @param swapId - Identifier of the swap used by backend
|
|
54
|
-
* @param
|
|
69
|
+
* @param amountExpectedTo - Amount expected to receive by the user in the transaction
|
|
70
|
+
* @param magnitudeAwareRate - rate expected to receive by the user in the swap transaction
|
|
55
71
|
* @param tokenCurrency - "new token" used in the transaction, not listed yet in wallet-api list
|
|
56
72
|
* @param transaction - Transaction containing the recipient and amount
|
|
57
73
|
* @param binaryPayload - Blueprint of the data that we'll allow signing
|
|
@@ -60,7 +76,7 @@ export class ExchangeModule extends CustomModule {
|
|
|
60
76
|
*
|
|
61
77
|
* @returns - The broadcasted transaction hash.
|
|
62
78
|
*/
|
|
63
|
-
completeSwap({ provider, fromAccountId, toAccountId, swapId,
|
|
79
|
+
completeSwap({ provider, fromAccountId, toAccountId, swapId, amountExpectedTo, magnitudeAwareRate, transaction, binaryPayload, signature, feeStrategy, tokenCurrency, }) {
|
|
64
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
81
|
const result = yield this.request("custom.exchange.complete", {
|
|
66
82
|
exchangeType: "SWAP",
|
|
@@ -68,7 +84,8 @@ export class ExchangeModule extends CustomModule {
|
|
|
68
84
|
fromAccountId,
|
|
69
85
|
toAccountId,
|
|
70
86
|
swapId,
|
|
71
|
-
|
|
87
|
+
amountExpectedTo,
|
|
88
|
+
magnitudeAwareRate,
|
|
72
89
|
rawTransaction: serializeTransaction(transaction),
|
|
73
90
|
hexBinaryPayload: binaryPayload,
|
|
74
91
|
hexSignature: signature,
|
package/lib-es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAe,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAe,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAU9F,cAAc,SAAS,CAAC;AAExB,wFAAwF;AACxF,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC9C;;;;;OAKG;IACG,SAAS;;YACb,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,uBAAuB,EACvB;gBACE,YAAY,EAAE,MAAM;aACrB,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,aAA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,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,0BAA0B,EAC1B;gBACE,YAAY,EAAE,MAAM;gBACpB,QAAQ;gBACR,aAAa;gBACb,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC;gBACjD,gBAAgB,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC/C,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;gBACvC,WAAW;aACZ,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,eAAe,CAAC;QAChC,CAAC;KAAA;IAED;;;;;;;;;;;;OAYG;IACG,YAAY,CAAC,EACjB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,GASd;;YACC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,0BAA0B,EAC1B;gBACE,YAAY,EAAE,MAAM;gBACpB,QAAQ;gBACR,aAAa;gBACb,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC;gBACjD,gBAAgB,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC/C,YAAY,EAAE,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;gBACvC,WAAW;gBACX,aAAa;aACd,CACF,CAAC;YAEF,OAAO,MAAM,CAAC,eAAe,CAAC;QAChC,CAAC;KAAA;CACF"}
|
package/lib-es/types.d.ts
CHANGED
|
@@ -2,15 +2,18 @@ import { RawTransaction } from "@ledgerhq/wallet-api-core";
|
|
|
2
2
|
export declare enum ExchangeType {
|
|
3
3
|
SWAP = 0,
|
|
4
4
|
SELL = 1,
|
|
5
|
-
FUND = 2
|
|
6
|
-
SWAP_NG = 3,
|
|
7
|
-
SELL_NG = 4,
|
|
8
|
-
FUND_NG = 5
|
|
5
|
+
FUND = 2
|
|
9
6
|
}
|
|
10
|
-
export type ExchangeStartParams =
|
|
11
|
-
|
|
7
|
+
export type ExchangeStartParams = ExchangeStartFundParams | ExchangeStartSellParams | ExchangeStartSwapParams;
|
|
8
|
+
export type ExchangeStartFundParams = {
|
|
9
|
+
exchangeType: "FUND";
|
|
12
10
|
};
|
|
13
|
-
export type
|
|
11
|
+
export type ExchangeStartSellParams = {
|
|
12
|
+
exchangeType: "SELL";
|
|
13
|
+
provider: string;
|
|
14
|
+
};
|
|
15
|
+
export type ExchangeStartSwapParams = {
|
|
16
|
+
exchangeType: "SWAP";
|
|
14
17
|
provider: string;
|
|
15
18
|
fromAccountId: string;
|
|
16
19
|
toAccountId: string;
|
|
@@ -38,7 +41,8 @@ export type ExchangeCompleteSwapParams = ExchangeCompleteBaseParams & {
|
|
|
38
41
|
exchangeType: "SWAP";
|
|
39
42
|
toAccountId: string;
|
|
40
43
|
swapId: string;
|
|
41
|
-
|
|
44
|
+
amountExpectedTo: bigint;
|
|
45
|
+
magnitudeAwareRate: bigint;
|
|
42
46
|
};
|
|
43
47
|
export type ExchangeCompleteParams = ExchangeCompleteFundParams | ExchangeCompleteSellParams | ExchangeCompleteSwapParams;
|
|
44
48
|
export type ExchangeCompleteResult = {
|
package/lib-es/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,oBAAY,YAAY;IACtB,IAAI,IAAO;IACX,IAAI,IAAO;IACX,IAAI,IAAO;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,oBAAY,YAAY;IACtB,IAAI,IAAO;IACX,IAAI,IAAO;IACX,IAAI,IAAO;CACZ;AAED,MAAM,MAAM,mBAAmB,GAC3B,uBAAuB,GACvB,uBAAuB,GACvB,uBAAuB,CAAC;AAE5B,MAAM,MAAM,uBAAuB,G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,GAAG;IACnC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
package/lib-es/types.js
CHANGED
|
@@ -3,8 +3,5 @@ export var ExchangeType;
|
|
|
3
3
|
ExchangeType[ExchangeType["SWAP"] = 0] = "SWAP";
|
|
4
4
|
ExchangeType[ExchangeType["SELL"] = 1] = "SELL";
|
|
5
5
|
ExchangeType[ExchangeType["FUND"] = 2] = "FUND";
|
|
6
|
-
ExchangeType[ExchangeType["SWAP_NG"] = 3] = "SWAP_NG";
|
|
7
|
-
ExchangeType[ExchangeType["SELL_NG"] = 4] = "SELL_NG";
|
|
8
|
-
ExchangeType[ExchangeType["FUND_NG"] = 5] = "FUND_NG";
|
|
9
6
|
})(ExchangeType || (ExchangeType = {}));
|
|
10
7
|
//# sourceMappingURL=types.js.map
|
package/lib-es/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/wallet-api-exchange-module",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0-next.0",
|
|
4
4
|
"description": "Wallet-API Exchange Module for Ledger Live",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ledgerhq/wallet-api-client": "^1.5.
|
|
29
|
-
"@ledgerhq/wallet-api-core": "^1.
|
|
28
|
+
"@ledgerhq/wallet-api-client": "^1.5.6",
|
|
29
|
+
"@ledgerhq/wallet-api-core": "^1.8.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.2.5"
|