@libid/contracts 0.19.0 → 0.21.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.
@@ -42,6 +42,19 @@ export const notaryServiceAbi = [
42
42
  ],
43
43
  "stateMutability": "view"
44
44
  },
45
+ {
46
+ "type": "function",
47
+ "name": "feeRecipient",
48
+ "inputs": [],
49
+ "outputs": [
50
+ {
51
+ "name": "",
52
+ "type": "address",
53
+ "internalType": "address"
54
+ }
55
+ ],
56
+ "stateMutability": "view"
57
+ },
45
58
  {
46
59
  "type": "function",
47
60
  "name": "initialize",
@@ -143,6 +156,19 @@ export const notaryServiceAbi = [
143
156
  "outputs": [],
144
157
  "stateMutability": "nonpayable"
145
158
  },
159
+ {
160
+ "type": "function",
161
+ "name": "setFeeRecipient",
162
+ "inputs": [
163
+ {
164
+ "name": "recipient",
165
+ "type": "address",
166
+ "internalType": "address"
167
+ }
168
+ ],
169
+ "outputs": [],
170
+ "stateMutability": "nonpayable"
171
+ },
146
172
  {
147
173
  "type": "function",
148
174
  "name": "setNotary",
@@ -161,6 +187,13 @@ export const notaryServiceAbi = [
161
187
  "outputs": [],
162
188
  "stateMutability": "nonpayable"
163
189
  },
190
+ {
191
+ "type": "function",
192
+ "name": "sweep",
193
+ "inputs": [],
194
+ "outputs": [],
195
+ "stateMutability": "nonpayable"
196
+ },
164
197
  {
165
198
  "type": "function",
166
199
  "name": "transferOwnership",
@@ -340,24 +373,6 @@ export const notaryServiceAbi = [
340
373
  ],
341
374
  "stateMutability": "payable"
342
375
  },
343
- {
344
- "type": "function",
345
- "name": "withdraw",
346
- "inputs": [
347
- {
348
- "name": "to",
349
- "type": "address",
350
- "internalType": "address"
351
- },
352
- {
353
- "name": "amount",
354
- "type": "uint256",
355
- "internalType": "uint256"
356
- }
357
- ],
358
- "outputs": [],
359
- "stateMutability": "nonpayable"
360
- },
361
376
  {
362
377
  "type": "event",
363
378
  "name": "FeeChanged",
@@ -377,6 +392,19 @@ export const notaryServiceAbi = [
377
392
  ],
378
393
  "anonymous": false
379
394
  },
395
+ {
396
+ "type": "event",
397
+ "name": "FeeRecipientSet",
398
+ "inputs": [
399
+ {
400
+ "name": "recipient",
401
+ "type": "address",
402
+ "indexed": true,
403
+ "internalType": "address"
404
+ }
405
+ ],
406
+ "anonymous": false
407
+ },
380
408
  {
381
409
  "type": "event",
382
410
  "name": "FeesWithdrawn",
@@ -538,6 +566,11 @@ export const notaryServiceAbi = [
538
566
  "name": "FailedCall",
539
567
  "inputs": []
540
568
  },
569
+ {
570
+ "type": "error",
571
+ "name": "FeeRecipientUnset",
572
+ "inputs": []
573
+ },
541
574
  {
542
575
  "type": "error",
543
576
  "name": "InvalidInitialization",
@@ -40,6 +40,13 @@ export function setFee(to: Address, ...args: NotaryServiceArgs<'setFee'>): Call
40
40
  }
41
41
  }
42
42
 
43
+ export function setFeeRecipient(to: Address, ...args: NotaryServiceArgs<'setFeeRecipient'>): Call {
44
+ return {
45
+ to,
46
+ data: encodeFunctionData({ abi: notaryServiceAbi, functionName: 'setFeeRecipient', args }),
47
+ }
48
+ }
49
+
43
50
  export function setNotary(to: Address, ...args: NotaryServiceArgs<'setNotary'>): Call {
44
51
  return {
45
52
  to,
@@ -47,6 +54,13 @@ export function setNotary(to: Address, ...args: NotaryServiceArgs<'setNotary'>):
47
54
  }
48
55
  }
49
56
 
57
+ export function sweep(to: Address, ...args: NotaryServiceArgs<'sweep'>): Call {
58
+ return {
59
+ to,
60
+ data: encodeFunctionData({ abi: notaryServiceAbi, functionName: 'sweep', args }),
61
+ }
62
+ }
63
+
50
64
  export function transferOwnership(
51
65
  to: Address,
52
66
  ...args: NotaryServiceArgs<'transferOwnership'>
@@ -76,10 +90,3 @@ export function verify(to: Address, value: bigint, ...args: NotaryServiceArgs<'v
76
90
  data: encodeFunctionData({ abi: notaryServiceAbi, functionName: 'verify', args }),
77
91
  }
78
92
  }
79
-
80
- export function withdraw(to: Address, ...args: NotaryServiceArgs<'withdraw'>): Call {
81
- return {
82
- to,
83
- data: encodeFunctionData({ abi: notaryServiceAbi, functionName: 'withdraw', args }),
84
- }
85
- }