@relay-protocol/settlement-sdk 0.0.70 → 0.0.71

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.
@@ -15,7 +15,6 @@ export type WithdrawalAddressParams = {
15
15
  currency: string;
16
16
  recipient: string;
17
17
  withdrawerAlias: string;
18
- amount: bigint;
19
18
  withdrawalNonce: string;
20
19
  };
21
20
  /**
@@ -27,7 +26,6 @@ export type WithdrawalAddressParams = {
27
26
  * @param recipient the address that will receive the withdrawn funds on destination chain
28
27
  * @param withdrawerAlias the address that owns the balance on the settlement chain
29
28
  * before the withdrawal is initiated
30
- * @param amount the balance to withdraw
31
29
  * @param withdrawalNonce nonce to prevent collisions for similar withdrawals
32
30
  * @returns withdrawal address (in lower case)
33
31
  */
@@ -42,28 +42,18 @@ exports.getSubmitWithdrawRequestHash = getSubmitWithdrawRequestHash;
42
42
  * @param recipient the address that will receive the withdrawn funds on destination chain
43
43
  * @param withdrawerAlias the address that owns the balance on the settlement chain
44
44
  * before the withdrawal is initiated
45
- * @param amount the balance to withdraw
46
45
  * @param withdrawalNonce nonce to prevent collisions for similar withdrawals
47
46
  * @returns withdrawal address (in lower case)
48
47
  */
49
48
  function getWithdrawalAddress(withdrawalParams) {
50
49
  // pack and hash data
51
50
  const nonce = (0, viem_1.keccak256)((0, viem_1.encodePacked)(["string"], [withdrawalParams.withdrawalNonce]));
52
- const hash = (0, viem_1.keccak256)((0, viem_1.encodePacked)([
53
- "address",
54
- "uint256",
55
- "string",
56
- "address",
57
- "address",
58
- "uint256",
59
- "bytes32",
60
- ], [
51
+ const hash = (0, viem_1.keccak256)((0, viem_1.encodePacked)(["address", "uint256", "string", "address", "address", "bytes32"], [
61
52
  withdrawalParams.depository,
62
53
  withdrawalParams.depositoryChainId,
63
54
  withdrawalParams.currency,
64
55
  withdrawalParams.recipient,
65
56
  withdrawalParams.withdrawerAlias,
66
- withdrawalParams.amount,
67
57
  nonce,
68
58
  ]));
69
59
  // get 40 bytes for an address
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relay-protocol/settlement-sdk",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "description": "Relay protocol SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",