@relay-protocol/settlement-sdk 0.0.69 → 0.0.70

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.
@@ -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 declare function computeWithdrawerBalanceMessage(withdrawerAlias: string, amount: bigint, withdrawalNonce: string): void;
35
+ export declare function computeWithdrawerBalanceMessage(withdrawerAlias: string, amount: bigint, withdrawalNonce: string): `0x${string}`;
36
36
  export type WithdrawalAddressRequest = Omit<WithdrawalAddressParams, "depositoryChainId" | "amount" | "depository" | "withdrawerAlias"> & {
37
37
  withdrawer: string;
38
38
  withdrawerChainId: string;
@@ -70,8 +70,10 @@ function getWithdrawalAddress(withdrawalParams) {
70
70
  const withdrawalAddress = hash.slice(2).slice(-40).toLowerCase();
71
71
  return `0x${withdrawalAddress}`;
72
72
  }
73
+ // compute a message about withdrawer balance
74
+ // to be signed as auth proof for the oracle
73
75
  function computeWithdrawerBalanceMessage(withdrawerAlias, amount, withdrawalNonce) {
74
- (0, viem_1.keccak256)((0, viem_1.encodePacked)(["address", "uint256", "bytes32"], [
76
+ return (0, viem_1.keccak256)((0, viem_1.encodePacked)(["address", "uint256", "bytes32"], [
75
77
  withdrawerAlias,
76
78
  BigInt(amount),
77
79
  withdrawalNonce,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relay-protocol/settlement-sdk",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "description": "Relay protocol SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",