@relay-protocol/settlement-sdk 0.0.66 → 0.0.68

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
- depositoryAddress: string;
13
+ depository: string;
14
14
  depositoryChainId: bigint;
15
15
  currency: string;
16
- recipientAddress: string;
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 depositoryAddress the depository contract holding the funds on origin chain
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 recipientAddress the address that will receive the withdrawn funds on destination chain
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,13 +32,16 @@ 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" | "depositoryAddress"> & {
35
+ export type WithdrawalAddressRequest = Omit<WithdrawalAddressParams, "depositoryChainId" | "amount" | "depository" | "withdrawerAlias"> & {
36
+ withdrawer: string;
37
+ withdrawerChainId: string;
36
38
  chainId: string;
37
39
  amount: string;
38
40
  };
39
41
  export type WithdrawalInitiationMessage = {
40
42
  data: WithdrawalAddressRequest & {
41
43
  settlementChainId: string;
44
+ signature: string;
42
45
  };
43
46
  result: {
44
47
  withdrawalAddress: string;
@@ -35,10 +35,10 @@ exports.getSubmitWithdrawRequestHash = getSubmitWithdrawRequestHash;
35
35
  /**
36
36
  * Compute deterministic withdrawal address
37
37
  *
38
- * @param depositoryAddress the depository contract holding the funds on origin chain
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 recipientAddress the address that will receive the withdrawn funds on destination chain
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.depositoryAddress,
60
+ withdrawalParams.depository,
61
61
  withdrawalParams.depositoryChainId,
62
62
  withdrawalParams.currency,
63
- withdrawalParams.recipientAddress,
63
+ withdrawalParams.recipient,
64
64
  withdrawalParams.withdrawerAlias,
65
65
  withdrawalParams.amount,
66
66
  nonce,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relay-protocol/settlement-sdk",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "description": "Relay protocol SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",