@relay-protocol/settlement-sdk 0.0.66 → 0.0.67
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.
|
@@ -10,10 +10,10 @@ export interface SubmitWithdrawRequest {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const getSubmitWithdrawRequestHash: (request: SubmitWithdrawRequest) => `0x${string}`;
|
|
12
12
|
export type WithdrawalAddressParams = {
|
|
13
|
-
|
|
13
|
+
depository: string;
|
|
14
14
|
depositoryChainId: bigint;
|
|
15
15
|
currency: string;
|
|
16
|
-
|
|
16
|
+
recipient: string;
|
|
17
17
|
withdrawerAlias: string;
|
|
18
18
|
amount: bigint;
|
|
19
19
|
withdrawalNonce: string;
|
|
@@ -21,10 +21,10 @@ export type WithdrawalAddressParams = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Compute deterministic withdrawal address
|
|
23
23
|
*
|
|
24
|
-
* @param
|
|
24
|
+
* @param depository the depository contract holding the funds on origin chain
|
|
25
25
|
* @param depositoryChainId the chain id of the depository contract currently holding the funds
|
|
26
26
|
* @param currency the id of the currency as expressed on origin chain (string)
|
|
27
|
-
* @param
|
|
27
|
+
* @param recipient the address that will receive the withdrawn funds on destination chain
|
|
28
28
|
* @param withdrawerAlias the address that owns the balance on the settlement chain
|
|
29
29
|
* before the withdrawal is initiated
|
|
30
30
|
* @param amount the balance to withdraw
|
|
@@ -32,7 +32,7 @@ export type WithdrawalAddressParams = {
|
|
|
32
32
|
* @returns withdrawal address (in lower case)
|
|
33
33
|
*/
|
|
34
34
|
export declare function getWithdrawalAddress(withdrawalParams: WithdrawalAddressParams): string;
|
|
35
|
-
export type WithdrawalAddressRequest = Omit<WithdrawalAddressParams, "depositoryChainId" | "amount" | "
|
|
35
|
+
export type WithdrawalAddressRequest = Omit<WithdrawalAddressParams, "depositoryChainId" | "amount" | "depository"> & {
|
|
36
36
|
chainId: string;
|
|
37
37
|
amount: string;
|
|
38
38
|
};
|
|
@@ -35,10 +35,10 @@ exports.getSubmitWithdrawRequestHash = getSubmitWithdrawRequestHash;
|
|
|
35
35
|
/**
|
|
36
36
|
* Compute deterministic withdrawal address
|
|
37
37
|
*
|
|
38
|
-
* @param
|
|
38
|
+
* @param depository the depository contract holding the funds on origin chain
|
|
39
39
|
* @param depositoryChainId the chain id of the depository contract currently holding the funds
|
|
40
40
|
* @param currency the id of the currency as expressed on origin chain (string)
|
|
41
|
-
* @param
|
|
41
|
+
* @param recipient the address that will receive the withdrawn funds on destination chain
|
|
42
42
|
* @param withdrawerAlias the address that owns the balance on the settlement chain
|
|
43
43
|
* before the withdrawal is initiated
|
|
44
44
|
* @param amount the balance to withdraw
|
|
@@ -57,10 +57,10 @@ function getWithdrawalAddress(withdrawalParams) {
|
|
|
57
57
|
"uint256",
|
|
58
58
|
"bytes32",
|
|
59
59
|
], [
|
|
60
|
-
withdrawalParams.
|
|
60
|
+
withdrawalParams.depository,
|
|
61
61
|
withdrawalParams.depositoryChainId,
|
|
62
62
|
withdrawalParams.currency,
|
|
63
|
-
withdrawalParams.
|
|
63
|
+
withdrawalParams.recipient,
|
|
64
64
|
withdrawalParams.withdrawerAlias,
|
|
65
65
|
withdrawalParams.amount,
|
|
66
66
|
nonce,
|