@pufferfinance/puffer-sdk 1.22.2 → 1.23.1
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.
- package/dist/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.js +13 -13
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.cjs.map +1 -1
- package/dist/api/puffer-client.d.ts +3 -0
- package/dist/api/puffer-client.js +30 -23
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/{ccip-ChHXXL5d.js → ccip-CiQCCFUl.js} +14 -14
- package/dist/{ccip-ChHXXL5d.js.map → ccip-CiQCCFUl.js.map} +1 -1
- package/dist/{ccip-oOJ9rRj3.cjs → ccip-DIWF4nDh.cjs} +2 -2
- package/dist/{ccip-oOJ9rRj3.cjs.map → ccip-DIWF4nDh.cjs.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.js +1 -1
- package/dist/{constants-LC89CXNv.js → constants-BaHwPdbi.js} +60 -60
- package/dist/{constants-LC89CXNv.js.map → constants-BaHwPdbi.js.map} +1 -1
- package/dist/{constants-BI6T6ZbJ.cjs → constants-c-vATmlG.cjs} +2 -2
- package/dist/{constants-BI6T6ZbJ.cjs.map → constants-c-vATmlG.cjs.map} +1 -1
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs +2 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.d.ts +513 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js +310 -0
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js.map +1 -0
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.js +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.js +2 -2
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
- package/dist/contracts/handlers/guardian-module-handler.js +2 -2
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs +2 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs.map +1 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +15374 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.js +504 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.js.map +1 -0
- package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.js +2 -2
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
- package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.d.ts +2 -1
- package/dist/contracts/tokens.js +10 -6
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{createWalletClient-BI9ya5Hq.js → createWalletClient-D74YRepQ.js} +44 -44
- package/dist/{createWalletClient-BI9ya5Hq.js.map → createWalletClient-D74YRepQ.js.map} +1 -1
- package/dist/{createWalletClient-KYWq_Sx_.cjs → createWalletClient-DKSH6l9_.cjs} +2 -2
- package/dist/{createWalletClient-KYWq_Sx_.cjs.map → createWalletClient-DKSH6l9_.cjs.map} +1 -1
- package/dist/{getContract-Ck2VtUkY.js → getContract-DGV8J5xI.js} +11 -11
- package/dist/{getContract-Ck2VtUkY.js.map → getContract-DGV8J5xI.js.map} +1 -1
- package/dist/{getContract-CPwqa1sR.cjs → getContract-RNLlK54b.cjs} +2 -2
- package/dist/{getContract-CPwqa1sR.cjs.map → getContract-RNLlK54b.cjs.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-rB-jsNOU.js → secp256k1-B-LxKJrQ.js} +2 -2
- package/dist/{secp256k1-rB-jsNOU.js.map → secp256k1-B-LxKJrQ.js.map} +1 -1
- package/dist/secp256k1-CC-cv1vD.cjs +2 -0
- package/dist/{secp256k1-93KDDbJS.cjs.map → secp256k1-CC-cv1vD.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-DlZ0jYhZ.js → writeContract-BU3yK-Xj.js} +513 -512
- package/dist/{writeContract-DlZ0jYhZ.js.map → writeContract-BU3yK-Xj.js.map} +1 -1
- package/dist/{writeContract-DPtg3nGu.cjs → writeContract-CKqv1dsa.cjs} +17 -17
- package/dist/{writeContract-DPtg3nGu.cjs.map → writeContract-CKqv1dsa.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/secp256k1-93KDDbJS.cjs +0 -2
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [],
|
|
4
|
+
name: "ADMIN_ROLE",
|
|
5
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
6
|
+
stateMutability: "view",
|
|
7
|
+
type: "function"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "PUBLIC_ROLE",
|
|
12
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
13
|
+
stateMutability: "view",
|
|
14
|
+
type: "function"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
inputs: [
|
|
18
|
+
{ internalType: "address", name: "caller", type: "address" },
|
|
19
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
20
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" }
|
|
21
|
+
],
|
|
22
|
+
name: "canCall",
|
|
23
|
+
outputs: [
|
|
24
|
+
{ internalType: "bool", name: "immediate", type: "bool" },
|
|
25
|
+
{ internalType: "uint32", name: "delay", type: "uint32" }
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
type: "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [
|
|
32
|
+
{ internalType: "address", name: "caller", type: "address" },
|
|
33
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
34
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
35
|
+
],
|
|
36
|
+
name: "cancel",
|
|
37
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
38
|
+
stateMutability: "nonpayable",
|
|
39
|
+
type: "function"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [
|
|
43
|
+
{ internalType: "address", name: "caller", type: "address" },
|
|
44
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
45
|
+
],
|
|
46
|
+
name: "consumeScheduledOp",
|
|
47
|
+
outputs: [],
|
|
48
|
+
stateMutability: "nonpayable",
|
|
49
|
+
type: "function"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
inputs: [
|
|
53
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
54
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
55
|
+
],
|
|
56
|
+
name: "execute",
|
|
57
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
58
|
+
stateMutability: "payable",
|
|
59
|
+
type: "function"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "expiration",
|
|
64
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
65
|
+
stateMutability: "view",
|
|
66
|
+
type: "function"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
inputs: [
|
|
70
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
71
|
+
{ internalType: "address", name: "account", type: "address" }
|
|
72
|
+
],
|
|
73
|
+
name: "getAccess",
|
|
74
|
+
outputs: [
|
|
75
|
+
{ internalType: "uint48", name: "since", type: "uint48" },
|
|
76
|
+
{ internalType: "uint32", name: "currentDelay", type: "uint32" },
|
|
77
|
+
{ internalType: "uint32", name: "pendingDelay", type: "uint32" },
|
|
78
|
+
{ internalType: "uint48", name: "effect", type: "uint48" }
|
|
79
|
+
],
|
|
80
|
+
stateMutability: "view",
|
|
81
|
+
type: "function"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [{ internalType: "bytes32", name: "id", type: "bytes32" }],
|
|
85
|
+
name: "getNonce",
|
|
86
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
87
|
+
stateMutability: "view",
|
|
88
|
+
type: "function"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
inputs: [{ internalType: "uint64", name: "roleId", type: "uint64" }],
|
|
92
|
+
name: "getRoleAdmin",
|
|
93
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
94
|
+
stateMutability: "view",
|
|
95
|
+
type: "function"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
inputs: [{ internalType: "uint64", name: "roleId", type: "uint64" }],
|
|
99
|
+
name: "getRoleGrantDelay",
|
|
100
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
101
|
+
stateMutability: "view",
|
|
102
|
+
type: "function"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [{ internalType: "uint64", name: "roleId", type: "uint64" }],
|
|
106
|
+
name: "getRoleGuardian",
|
|
107
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
108
|
+
stateMutability: "view",
|
|
109
|
+
type: "function"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [{ internalType: "bytes32", name: "id", type: "bytes32" }],
|
|
113
|
+
name: "getSchedule",
|
|
114
|
+
outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [{ internalType: "address", name: "target", type: "address" }],
|
|
120
|
+
name: "getTargetAdminDelay",
|
|
121
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
122
|
+
stateMutability: "view",
|
|
123
|
+
type: "function"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
inputs: [
|
|
127
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
128
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" }
|
|
129
|
+
],
|
|
130
|
+
name: "getTargetFunctionRole",
|
|
131
|
+
outputs: [{ internalType: "uint64", name: "", type: "uint64" }],
|
|
132
|
+
stateMutability: "view",
|
|
133
|
+
type: "function"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [
|
|
137
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
138
|
+
{ internalType: "address", name: "account", type: "address" },
|
|
139
|
+
{ internalType: "uint32", name: "executionDelay", type: "uint32" }
|
|
140
|
+
],
|
|
141
|
+
name: "grantRole",
|
|
142
|
+
outputs: [],
|
|
143
|
+
stateMutability: "nonpayable",
|
|
144
|
+
type: "function"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [
|
|
148
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
149
|
+
{ internalType: "address", name: "account", type: "address" }
|
|
150
|
+
],
|
|
151
|
+
name: "hasRole",
|
|
152
|
+
outputs: [
|
|
153
|
+
{ internalType: "bool", name: "isMember", type: "bool" },
|
|
154
|
+
{ internalType: "uint32", name: "executionDelay", type: "uint32" }
|
|
155
|
+
],
|
|
156
|
+
stateMutability: "view",
|
|
157
|
+
type: "function"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [
|
|
161
|
+
{ internalType: "address", name: "caller", type: "address" },
|
|
162
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
163
|
+
{ internalType: "bytes", name: "data", type: "bytes" }
|
|
164
|
+
],
|
|
165
|
+
name: "hashOperation",
|
|
166
|
+
outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
|
|
167
|
+
stateMutability: "view",
|
|
168
|
+
type: "function"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [{ internalType: "address", name: "target", type: "address" }],
|
|
172
|
+
name: "isTargetClosed",
|
|
173
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
180
|
+
{ internalType: "string", name: "label", type: "string" }
|
|
181
|
+
],
|
|
182
|
+
name: "labelRole",
|
|
183
|
+
outputs: [],
|
|
184
|
+
stateMutability: "nonpayable",
|
|
185
|
+
type: "function"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
inputs: [],
|
|
189
|
+
name: "minSetback",
|
|
190
|
+
outputs: [{ internalType: "uint32", name: "", type: "uint32" }],
|
|
191
|
+
stateMutability: "view",
|
|
192
|
+
type: "function"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }],
|
|
196
|
+
name: "multicall",
|
|
197
|
+
outputs: [{ internalType: "bytes[]", name: "results", type: "bytes[]" }],
|
|
198
|
+
stateMutability: "nonpayable",
|
|
199
|
+
type: "function"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [
|
|
203
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
204
|
+
{ internalType: "address", name: "callerConfirmation", type: "address" }
|
|
205
|
+
],
|
|
206
|
+
name: "renounceRole",
|
|
207
|
+
outputs: [],
|
|
208
|
+
stateMutability: "nonpayable",
|
|
209
|
+
type: "function"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
inputs: [
|
|
213
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
214
|
+
{ internalType: "address", name: "account", type: "address" }
|
|
215
|
+
],
|
|
216
|
+
name: "revokeRole",
|
|
217
|
+
outputs: [],
|
|
218
|
+
stateMutability: "nonpayable",
|
|
219
|
+
type: "function"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [
|
|
223
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
224
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
225
|
+
{ internalType: "uint48", name: "when", type: "uint48" }
|
|
226
|
+
],
|
|
227
|
+
name: "schedule",
|
|
228
|
+
outputs: [
|
|
229
|
+
{ internalType: "bytes32", name: "operationId", type: "bytes32" },
|
|
230
|
+
{ internalType: "uint32", name: "nonce", type: "uint32" }
|
|
231
|
+
],
|
|
232
|
+
stateMutability: "nonpayable",
|
|
233
|
+
type: "function"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
inputs: [
|
|
237
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
238
|
+
{ internalType: "uint32", name: "newDelay", type: "uint32" }
|
|
239
|
+
],
|
|
240
|
+
name: "setGrantDelay",
|
|
241
|
+
outputs: [],
|
|
242
|
+
stateMutability: "nonpayable",
|
|
243
|
+
type: "function"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
inputs: [
|
|
247
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
248
|
+
{ internalType: "uint64", name: "admin", type: "uint64" }
|
|
249
|
+
],
|
|
250
|
+
name: "setRoleAdmin",
|
|
251
|
+
outputs: [],
|
|
252
|
+
stateMutability: "nonpayable",
|
|
253
|
+
type: "function"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
inputs: [
|
|
257
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" },
|
|
258
|
+
{ internalType: "uint64", name: "guardian", type: "uint64" }
|
|
259
|
+
],
|
|
260
|
+
name: "setRoleGuardian",
|
|
261
|
+
outputs: [],
|
|
262
|
+
stateMutability: "nonpayable",
|
|
263
|
+
type: "function"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
268
|
+
{ internalType: "uint32", name: "newDelay", type: "uint32" }
|
|
269
|
+
],
|
|
270
|
+
name: "setTargetAdminDelay",
|
|
271
|
+
outputs: [],
|
|
272
|
+
stateMutability: "nonpayable",
|
|
273
|
+
type: "function"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
inputs: [
|
|
277
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
278
|
+
{ internalType: "bool", name: "closed", type: "bool" }
|
|
279
|
+
],
|
|
280
|
+
name: "setTargetClosed",
|
|
281
|
+
outputs: [],
|
|
282
|
+
stateMutability: "nonpayable",
|
|
283
|
+
type: "function"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
inputs: [
|
|
287
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
288
|
+
{ internalType: "bytes4[]", name: "selectors", type: "bytes4[]" },
|
|
289
|
+
{ internalType: "uint64", name: "roleId", type: "uint64" }
|
|
290
|
+
],
|
|
291
|
+
name: "setTargetFunctionRole",
|
|
292
|
+
outputs: [],
|
|
293
|
+
stateMutability: "nonpayable",
|
|
294
|
+
type: "function"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
inputs: [
|
|
298
|
+
{ internalType: "address", name: "target", type: "address" },
|
|
299
|
+
{ internalType: "address", name: "newAuthority", type: "address" }
|
|
300
|
+
],
|
|
301
|
+
name: "updateAuthority",
|
|
302
|
+
outputs: [],
|
|
303
|
+
stateMutability: "nonpayable",
|
|
304
|
+
type: "function"
|
|
305
|
+
}
|
|
306
|
+
];
|
|
307
|
+
export {
|
|
308
|
+
e as InstitutionalAccessManager
|
|
309
|
+
};
|
|
310
|
+
//# sourceMappingURL=InstitutionalAccessManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstitutionalAccessManager.js","sources":["../../../../lib/contracts/abis/mainnet/InstitutionalAccessManager.ts"],"sourcesContent":["export const InstitutionalAccessManager = <const>[\n {\n inputs: [],\n name: 'ADMIN_ROLE',\n outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'PUBLIC_ROLE',\n outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'caller', type: 'address' },\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes4', name: 'selector', type: 'bytes4' },\n ],\n name: 'canCall',\n outputs: [\n { internalType: 'bool', name: 'immediate', type: 'bool' },\n { internalType: 'uint32', name: 'delay', type: 'uint32' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'caller', type: 'address' },\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n ],\n name: 'cancel',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'caller', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n ],\n name: 'consumeScheduledOp',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n ],\n name: 'execute',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'expiration',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'address', name: 'account', type: 'address' },\n ],\n name: 'getAccess',\n outputs: [\n { internalType: 'uint48', name: 'since', type: 'uint48' },\n { internalType: 'uint32', name: 'currentDelay', type: 'uint32' },\n { internalType: 'uint32', name: 'pendingDelay', type: 'uint32' },\n { internalType: 'uint48', name: 'effect', type: 'uint48' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'bytes32', name: 'id', type: 'bytes32' }],\n name: 'getNonce',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint64', name: 'roleId', type: 'uint64' }],\n name: 'getRoleAdmin',\n outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint64', name: 'roleId', type: 'uint64' }],\n name: 'getRoleGrantDelay',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint64', name: 'roleId', type: 'uint64' }],\n name: 'getRoleGuardian',\n outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'bytes32', name: 'id', type: 'bytes32' }],\n name: 'getSchedule',\n outputs: [{ internalType: 'uint48', name: '', type: 'uint48' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'target', type: 'address' }],\n name: 'getTargetAdminDelay',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes4', name: 'selector', type: 'bytes4' },\n ],\n name: 'getTargetFunctionRole',\n outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'address', name: 'account', type: 'address' },\n { internalType: 'uint32', name: 'executionDelay', type: 'uint32' },\n ],\n name: 'grantRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'address', name: 'account', type: 'address' },\n ],\n name: 'hasRole',\n outputs: [\n { internalType: 'bool', name: 'isMember', type: 'bool' },\n { internalType: 'uint32', name: 'executionDelay', type: 'uint32' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'caller', type: 'address' },\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n ],\n name: 'hashOperation',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'target', type: 'address' }],\n name: 'isTargetClosed',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'string', name: 'label', type: 'string' },\n ],\n name: 'labelRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'minSetback',\n outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }],\n name: 'multicall',\n outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'address', name: 'callerConfirmation', type: 'address' },\n ],\n name: 'renounceRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'address', name: 'account', type: 'address' },\n ],\n name: 'revokeRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n { internalType: 'uint48', name: 'when', type: 'uint48' },\n ],\n name: 'schedule',\n outputs: [\n { internalType: 'bytes32', name: 'operationId', type: 'bytes32' },\n { internalType: 'uint32', name: 'nonce', type: 'uint32' },\n ],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'uint32', name: 'newDelay', type: 'uint32' },\n ],\n name: 'setGrantDelay',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'uint64', name: 'admin', type: 'uint64' },\n ],\n name: 'setRoleAdmin',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n { internalType: 'uint64', name: 'guardian', type: 'uint64' },\n ],\n name: 'setRoleGuardian',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'uint32', name: 'newDelay', type: 'uint32' },\n ],\n name: 'setTargetAdminDelay',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bool', name: 'closed', type: 'bool' },\n ],\n name: 'setTargetClosed',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes4[]', name: 'selectors', type: 'bytes4[]' },\n { internalType: 'uint64', name: 'roleId', type: 'uint64' },\n ],\n name: 'setTargetFunctionRole',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'address', name: 'newAuthority', type: 'address' },\n ],\n name: 'updateAuthority',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n];\n"],"names":["InstitutionalAccessManager"],"mappings":"AAAO,MAAMA,IAAoC;AAAA,EAC/C;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA,IAC9D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ,CAAC;AAAA,IACT,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA,IAC9D,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,UAAU,MAAM,YAAY,MAAM,SAAS;AAAA,IAC7D;AAAA,IACA,MAAM;AAAA,IACN,SAAS;AAAA,MACP,EAAE,cAAc,QAAQ,MAAM,aAAa,MAAM,OAAO;AAAA,MACxD,EAAE,cAAc,UAAU,MAAM,SAAS,MAAM,SAAS;AAAA,IAC1D;AAAA,IACA,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,SAAS,MAAM,QAAQ,MAAM,QAAQ;AAAA,IACvD;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC,EAAE,cAAc,UAAU,MAAM,IAAI,MAAM,UAAU;AAAA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AA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,UAAU,MAAM,YAAY,MAAM,SAAS;AAAA,IAC7D;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,QAAQ,MAAM,UAAU,MAAM,OAAO;AAAA,IACvD;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,YAAY,MAAM,aAAa,MAAM,WAAW;AAAA,MAChE,EAAE,cAAc,UAAU,MAAM,UAAU,MAAM,SAAS;AAAA,IAC3D;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EACR;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,MACN,EAAE,cAAc,WAAW,MAAM,UAAU,MAAM,UAAU;AAAA,MAC3D,EAAE,cAAc,WAAW,MAAM,gBAAgB,MAAM,UAAU;AAAA,IACnE;AAAA,IACA,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IACV,iBAAiB;AAAA,IACjB,MAAM;AAAA,EAAA;AAEV;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../constants-c-vATmlG.cjs"),a={[e.Chain.Mainnet]:{PufferVault:"0xD9A442856C234a39a81a089C06451EBAa4306a72",PufferDepositor:"0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff",PufferL2Depositor:"0x3436E0B85cd929929F5802e792CFE282166E0259",PufLocker:"0x48e8dE138C246c14248C94d2D616a2F9eb4590D2",L1RewardManager:"0x157788cc028Ac6405bD406f2D1e0A8A22b3cf17b",L2RewardManager:"0x0000000000000000000000000000000000000000",PufferWithdrawalManager:"0xDdA0483184E75a5579ef9635ED14BacCf9d50283",NucleusAtomicQueue:"0x228c44bb4885c6633f4b6c83f14622f37d5112e5",CarrotStaker:"0x99c599227c65132822f0290d9e5b4b0430d6c0d6",Distributor:"0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae",ValidatorTicket:"0x7D26AD6F6BA9D6bA1de0218Ae5e20CD3a273a55A",PufferOracleV2:"0x0BE2aE0edbeBb517541DF217EF0074FC9a9e994f",PufferProtocol:"0xf7b6B32492c2e13799D921E84202450131bd238B",GuardianModule:"0x628b183F248a142A598AA2dcCCD6f7E480a7CcF2"},[e.Chain.Holesky]:{PufferVault:"0x9196830bB4c05504E0A8475A0aD566AceEB6BeC9",PufferDepositor:"0x824AC05aeb86A0aD770b8acDe0906d2d4a6c4A8c",PufferL2Depositor:"0x0af6998e4828ad8ef8f79a9288d0a861890f791d",PufLocker:"0xa58983ad0899a452b7420bc57228e329d7ba92b6",L1RewardManager:"0x10f970bcb84B82B82a65eBCbF45F26dD26D69F12",L2RewardManager:"0x58C046794f69A8830b0BE737022a45b4acd01dE5",PufferWithdrawalManager:"0x5A3E1069B66800c0ecbc91bd81b1AE4D1804DBc4",ValidatorTicket:"0xB028194785178a94Fe608994A4d5AD84c285A640",PufferOracleV2:"0x8e043ed3f06720615685d4978770cd5c8fe90fe3",PufferProtocol:"0xE00c79408B9De5BaD2FDEbB1688997a68eC988CD",GuardianModule:"0x0910310130d1c062def8b807528bdac80203bc66"},[e.Chain.Base]:{L2RewardManager:"0xF9Dd335bF363b2E4ecFe3c94A86EBD7Dd3Dcf0e7"}};exports.CONTRACT_ADDRESSES=a;
|
|
2
2
|
//# sourceMappingURL=addresses.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var c=(a,t,e)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var r=(a,t,e)=>c(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-
|
|
1
|
+
"use strict";var s=Object.defineProperty;var c=(a,t,e)=>t in a?s(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var r=(a,t,e)=>c(a,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-c-vATmlG.cjs"),i=require("../tokens.cjs"),l=require("../abis/mainnet/CarrotStaker.cjs"),h=require("../../getContract-RNLlK54b.cjs");class C{constructor(t,e,n){r(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=o.VIEM_CHAINS[t]}getContract(){const t=i.TOKENS_ADDRESSES[i.Token.sCARROT][this.chain],e=l.CarrotStaker,n={public:this.publicClient,wallet:this.walletClient};return h.getContract({address:t,abi:e,client:n})}allowance(t,e){return this.getContract().read.allowance([t,e])}balanceOf(t){return this.getContract().read.balanceOf([t])}decimals(){return this.getContract().read.decimals()}isUnstakingAllowed(){return this.getContract().read.isUnstakingAllowed()}totalSupply(){return this.getContract().read.totalSupply()}stake(t,e){return this.getContract().write.stake([e],{account:t,chain:this.viemChain})}unstake(t,e,n){return this.getContract().write.unstake([e,n],{account:t,chain:this.viemChain})}}exports.CarrotStakingHandler=C;
|
|
2
2
|
//# sourceMappingURL=carrot-staking-handler.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var s = (a, t, e) => t in a ? n(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
3
|
var i = (a, t, e) => s(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { V as l } from "../../constants-
|
|
4
|
+
import { V as l } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { TOKENS_ADDRESSES as o, Token as c } from "../tokens.js";
|
|
6
6
|
import { CarrotStaker as h } from "../abis/mainnet/CarrotStaker.js";
|
|
7
|
-
import { g as C } from "../../getContract-
|
|
7
|
+
import { g as C } from "../../getContract-DGV8J5xI.js";
|
|
8
8
|
class k {
|
|
9
9
|
/**
|
|
10
10
|
* Create the handler for the `CarrotStaker` contract exposing
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var c=(r,t,e)=>t in r?a(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>c(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-
|
|
1
|
+
"use strict";var a=Object.defineProperty;var c=(r,t,e)=>t in r?a(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var n=(r,t,e)=>c(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../constants-c-vATmlG.cjs"),s=require("../abis/mainnet/ConcreteMultiStrategyVault.cjs"),l=require("../tokens.cjs"),h=require("../vaults-addresses.cjs"),u=require("../../getContract-RNLlK54b.cjs");class C{constructor(t,e,i){n(this,"viemChain");n(this,"token");this.chain=t,this.walletClient=e,this.publicClient=i,this.viemChain=o.VIEM_CHAINS[t],this.token=l.Token.ctTACpufETH}withToken(t){return this.token=t,this}getContract(){const t=h.VAULTS_ADDRESSES[this.token][this.chain].ConcreteMultiStrategyVault,e=s.ConcreteMultiStrategyVault,i={public:this.publicClient,wallet:this.walletClient};return u.getContract({address:t,abi:e,client:i})}approve(t,e){return this.getContract().write.approve([t,e],{account:this.walletClient.account,chain:this.viemChain})}getAllowance(t,e){return this.getContract().read.allowance([t,e])}getBalance(t){return this.getContract().read.balanceOf([t])}getTotalSupply(){return this.getContract().read.totalSupply()}deposit(t){return this.getContract().write.deposit([t],{account:this.walletClient.account,chain:this.viemChain})}withdraw(t){return this.getContract().write.withdraw([t],{account:this.walletClient.account,chain:this.viemChain})}previewDeposit(t){return this.getContract().read.previewDeposit([t])}previewWithdraw(t){return this.getContract().read.previewWithdraw([t])}previewRedeem(t){return this.getContract().read.previewRedeem([t])}}exports.ConcreteVaultHandler=C;
|
|
2
2
|
//# sourceMappingURL=concrete-vault-handler.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var o = (i, t, e) => t in i ? n(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var a = (i, t, e) => o(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { V as c } from "../../constants-
|
|
4
|
+
import { V as c } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { ConcreteMultiStrategyVault as h } from "../abis/mainnet/ConcreteMultiStrategyVault.js";
|
|
6
6
|
import { Token as l } from "../tokens.js";
|
|
7
7
|
import { VAULTS_ADDRESSES as s } from "../vaults-addresses.js";
|
|
8
|
-
import { g as u } from "../../getContract-
|
|
8
|
+
import { g as u } from "../../getContract-DGV8J5xI.js";
|
|
9
9
|
class v {
|
|
10
10
|
/**
|
|
11
11
|
* Create the handler for processing UniFi tokens.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var c=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var s=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../constants-
|
|
1
|
+
"use strict";var o=Object.defineProperty;var c=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var s=(i,t,e)=>c(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../constants-c-vATmlG.cjs"),l=require("../addresses.cjs"),h=require("../abis/mainnet/Distributor.cjs"),C=require("../../getContract-RNLlK54b.cjs");class d{constructor(t,e,r){s(this,"viemChain");this.chain=t,this.walletClient=e,this.publicClient=r,this.viemChain=u.VIEM_CHAINS[t]}getContract(){const t=l.CONTRACT_ADDRESSES[this.chain].Distributor,e=h.Distributor,r={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:t,abi:e,client:r})}claim(t,{users:e,tokens:r,amounts:n,proofs:a}){return this.getContract().write.claim([e,r,n,a],{account:t,chain:this.viemChain})}async claimed(t,e){const[r,n,a]=await this.getContract().read.claimed([t,e]);return{amount:r,timestamp:BigInt(n),merkleRoot:a}}core(){return this.getContract().read.core()}disputeAmount(){return this.getContract().read.disputeAmount()}disputePeriod(){return this.getContract().read.disputePeriod()}disputeToken(){return this.getContract().read.disputeToken()}disputeTree(t,e){return this.getContract().write.disputeTree([e],{account:t,chain:this.viemChain})}disputer(){return this.getContract().read.disputer()}endOfDisputePeriod(){return this.getContract().read.endOfDisputePeriod()}getMerkleRoot(){return this.getContract().read.getMerkleRoot()}async lastTree(){const[t,e]=await this.getContract().read.lastTree();return{merkleRoot:t,ipfsHash:e}}onlyOperatorCanClaim(t){return this.getContract().read.onlyOperatorCanClaim([t])}toggleOnlyOperatorCanClaim(t,e){return this.getContract().write.toggleOnlyOperatorCanClaim([e],{account:t,chain:this.viemChain})}toggleOperator(t,e,r){return this.getContract().write.toggleOperator([e,r],{account:t,chain:this.viemChain})}toggleTrusted(t,e){return this.getContract().write.toggleTrusted([e],{account:t,chain:this.viemChain})}async tree(){const[t,e]=await this.getContract().read.tree();return{merkleRoot:t,ipfsHash:e}}}exports.DistributorHandler=d;
|
|
2
2
|
//# sourceMappingURL=distributor-handler.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var s = Object.defineProperty;
|
|
2
2
|
var c = (i, t, e) => t in i ? s(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var o = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { V as h } from "../../constants-
|
|
4
|
+
import { V as h } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { CONTRACT_ADDRESSES as l } from "../addresses.js";
|
|
6
6
|
import { Distributor as u } from "../abis/mainnet/Distributor.js";
|
|
7
|
-
import { g as C } from "../../getContract-
|
|
7
|
+
import { g as C } from "../../getContract-DGV8J5xI.js";
|
|
8
8
|
class O {
|
|
9
9
|
/**
|
|
10
10
|
* Create the handler for the Distributor contract exposing
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var p=Object.defineProperty;var d=(i,t,e)=>t in i?p(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var c=(i,t,e)=>d(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-
|
|
1
|
+
"use strict";var p=Object.defineProperty;var d=(i,t,e)=>t in i?p(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var c=(i,t,e)=>d(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../constants-c-vATmlG.cjs"),s=require("../tokens.cjs"),g=require("../../utils/time.cjs"),S=require("../abis/mainnet/ERC20Permit.cjs"),y=require("../../getContract-RNLlK54b.cjs"),C=require("../../secp256k1-CC-cv1vD.cjs");function E(i){const{r:t,s:e}=C.secp256k1.Signature.fromCompact(i.slice(2,130)),n=+`0x${i.slice(130)}`,[r,o]=(()=>{if(n===0||n===1)return[void 0,n];if(n===27)return[BigInt(n),0];if(n===28)return[BigInt(n),1];throw new Error("Invalid yParityOrV value")})();return typeof r<"u"?{r:a.numberToHex(t,{size:32}),s:a.numberToHex(e,{size:32}),v:r,yParity:o}:{r:a.numberToHex(t,{size:32}),s:a.numberToHex(e,{size:32}),yParity:o}}class T{constructor(t,e,n){c(this,"viemChain");c(this,"token");this.chain=t,this.walletClient=e,this.publicClient=n,this.viemChain=a.VIEM_CHAINS[t],this.token=s.Token.WETH}withToken(t){return this.token=t,this}getContract(){const t=s.TOKENS_ADDRESSES[this.token][this.chain],e=S.ERC20Permit,n={public:this.publicClient,wallet:this.walletClient};return y.getContract({address:t,abi:e,client:n})}async getPermitSignature(t,e,n){const r=this.getContract(),o=await r.read.nonces([t]),m={name:await r.read.name(),version:this.getPermitVersion(this.token),chainId:this.chain,verifyingContract:s.TOKENS_ADDRESSES[this.token][this.chain],salt:this.getPermitSalt(this.token)},h={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},u=BigInt(g.getTimestampInSeconds()+60*60*2),l=await this.walletClient.signTypedData({account:t,domain:m,types:h,primaryType:"Permit",message:{owner:t,spender:e,value:n,nonce:o,deadline:u}});return{...E(l),deadline:u}}approve(t,e,n){return this.getContract().write.approve([e,n],{account:t,chain:this.viemChain})}getPermitVersion(t){return s.TOKENS_PERMIT_VERSION[t]}getPermitSalt(t){var e,n;return(n=(e=s.TOKENS_SALT)==null?void 0:e[t])==null?void 0:n[this.chain]}}exports.ERC20PermitHandler=T;
|
|
2
2
|
//# sourceMappingURL=erc20-permit-handler.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var d = (i, t, e) => t in i ? l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var o = (i, t, e) => d(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { n as s, V as g } from "../../constants-
|
|
4
|
+
import { n as s, V as g } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { Token as y, TOKENS_ADDRESSES as m, TOKENS_PERMIT_VERSION as C, TOKENS_SALT as f } from "../tokens.js";
|
|
6
6
|
import { getTimestampInSeconds as S } from "../../utils/time.js";
|
|
7
7
|
import { ERC20Permit as P } from "../abis/mainnet/ERC20Permit.js";
|
|
8
|
-
import { g as E } from "../../getContract-
|
|
9
|
-
import { secp256k1 as T } from "../../secp256k1-
|
|
8
|
+
import { g as E } from "../../getContract-DGV8J5xI.js";
|
|
9
|
+
import { secp256k1 as T } from "../../secp256k1-B-LxKJrQ.js";
|
|
10
10
|
function v(i) {
|
|
11
11
|
const { r: t, s: e } = T.Signature.fromCompact(i.slice(2, 130)), n = +`0x${i.slice(130)}`, [r, a] = (() => {
|
|
12
12
|
if (n === 0 || n === 1)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var s=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>s(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../constants-
|
|
1
|
+
"use strict";var i=Object.defineProperty;var s=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var n=(r,e,t)=>s(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../constants-c-vATmlG.cjs"),u=require("../addresses.cjs"),c=require("../abis/mainnet/GuardianModule.cjs"),o=require("../../getContract-RNLlK54b.cjs");class l{constructor(e,t,a){n(this,"viemChain");this.chain=e,this.walletClient=t,this.publicClient=a,this.viemChain=d.VIEM_CHAINS[e]}getContract(){const e=u.CONTRACT_ADDRESSES[this.chain].GuardianModule,t=c.GuardianModule,a={public:this.publicClient,wallet:this.walletClient};return o.getContract({address:e,abi:t,client:a})}getEjectionThreshold(){return this.getContract().read.getEjectionThreshold()}getGuardians(){return this.getContract().read.getGuardians()}getGuardiansEnclaveAddress(e){return this.getContract().read.getGuardiansEnclaveAddress([e])}getGuardiansEnclaveAddresses(){return this.getContract().read.getGuardiansEnclaveAddresses()}getGuardiansEnclavePubkeys(){return this.getContract().read.getGuardiansEnclavePubkeys()}validateGuardiansEnclaveSignatures(e,t){return this.getContract().read.validateGuardiansEnclaveSignatures([e,t])}getMrenclave(){return this.getContract().read.getMrenclave()}getMrsigner(){return this.getContract().read.getMrsigner()}getThreshold(){return this.getContract().read.getThreshold()}isConsumingScheduledOp(){return this.getContract().read.isConsumingScheduledOp()}isGuardian(e){return this.getContract().read.isGuardian([e])}removeGuardian(e,t){return this.getContract().write.removeGuardian([e],{account:t,chain:this.viemChain})}}exports.GuardianModuleHandler=l;
|
|
2
2
|
//# sourceMappingURL=guardian-module-handler.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var i = Object.defineProperty;
|
|
2
2
|
var s = (r, t, e) => t in r ? i(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var n = (r, t, e) => s(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { V as d } from "../../constants-
|
|
4
|
+
import { V as d } from "../../constants-BaHwPdbi.js";
|
|
5
5
|
import { CONTRACT_ADDRESSES as u } from "../addresses.js";
|
|
6
6
|
import { GuardianModule as o } from "../abis/mainnet/GuardianModule.js";
|
|
7
|
-
import { g as c } from "../../getContract-
|
|
7
|
+
import { g as c } from "../../getContract-DGV8J5xI.js";
|
|
8
8
|
class G {
|
|
9
9
|
/**
|
|
10
10
|
* Create the handler for the `PufLocker` contract exposing methods to
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var h=(s,t,e)=>t in s?d(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var c=(s,t,e)=>h(s,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../abis/mainnet/InstitutionalAccessManager.cjs"),n=require("../../constants-c-vATmlG.cjs"),g=require("../../errors/validation-errors.cjs"),C=require("../../getContract-RNLlK54b.cjs"),b=require("../../writeContract-CKqv1dsa.cjs");class R{constructor(t,e,r){c(this,"viemChain");c(this,"address");c(this,"selectorsMap",{"0x6056b271":"completeQueuedWithdrawals((address,address,address,uint256,uint32,address[],uint256[])[],bool[])","0x29d85402":"customExternalCall(address,bytes,uint256)","0x6e553f65":"deposit(uint256,address)","0x2d2da806":"depositETH(address)","0xba087652":"redeem(uint256,address,address)","0xb460af94":"withdraw(uint256,address,address)","0xa9059cbb":"transfer(address,uint256)","0x23b872dd":"transferFrom(address,address,uint256)","0x94bf804d":"mint(uint256,address)","0x61c17990":"startRestakingValidators(bytes[],bytes[],bytes32[])","0x3e5e60c6":"startNonRestakingValidators(bytes[],bytes[],bytes32[])","0x852aa33d":"queueWithdrawals(uint256)","0xad0cdf3e":"setValidatorsETH(uint128,uint128)"});this.walletClient=e,this.publicClient=r,this.viemChain=n.VIEM_CHAINS[t]}withAddress(t){return this.address=t,this}getAddress(){return this.address}getContract(){if(!this.address)throw new g.InvalidContractAddressError("No address specified for the contract",{fixMessage:"Set the contract address in the handler by using the setAddress method"});const t=u.InstitutionalAccessManager,e={public:this.publicClient,wallet:this.walletClient};return C.getContract({address:this.address,abi:t,client:e})}getAdminRole(){return this.getContract().read.ADMIN_ROLE()}getPublicRole(){return this.getContract().read.PUBLIC_ROLE()}async canCall(t,e,r){const[a,i]=await this.getContract().read.canCall([t,e,r]);return{canCall:a,canCallDelay:i}}cancel(t,e,r){return this.getContract().write.cancel([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}execute(t,e,r){return this.getContract().write.execute([t,e],{account:this.walletClient.account,chain:this.viemChain,value:r})}async getAccess(t,e){const r=this.processRoleIdOrLabel(t),[a,i,o,l]=await this.getContract().read.getAccess([r,e]);return{since:a,currentDelay:i,pendingDelay:o,effect:l}}getNonce(t){return this.getContract().read.getNonce([t])}getRoleAdmin(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleAdmin([e])}getRoleGrantDelay(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleGrantDelay([e])}getRoleGuardian(t){const e=this.processRoleIdOrLabel(t);return this.getContract().read.getRoleGuardian([e])}getSchedule(t){return this.getContract().read.getSchedule([t])}getTargetAdminDelay(t){return this.getContract().read.getTargetAdminDelay([t])}getTargetFunctionRole(t,e){return this.getContract().read.getTargetFunctionRole([t,e])}grantRole(t,e,r){const a=this.processRoleIdOrLabel(t);return this.getContract().write.grantRole([a,e,r],{account:this.walletClient.account,chain:this.viemChain})}async hasRole(t,e){const r=this.processRoleIdOrLabel(t),[a,i]=await this.getContract().read.hasRole([r,e]);return{isMember:a,executionDelay:i}}hashOperation(t,e,r){return this.getContract().read.hashOperation([t,e,r])}isTargetClosed(t){return this.getContract().read.isTargetClosed([t])}labelRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.labelRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}getMinSetback(){return this.getContract().read.minSetback()}multicall(t){return this.getContract().write.multicall([t],{account:this.walletClient.account,chain:this.viemChain})}renounceRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.renounceRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}revokeRole(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.revokeRole([r,e],{account:this.walletClient.account,chain:this.viemChain})}schedule(t,e,r){return this.getContract().write.schedule([t,e,r],{account:this.walletClient.account,chain:this.viemChain})}setGrantDelay(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setGrantDelay([r,e],{account:this.walletClient.account,chain:this.viemChain})}setRoleAdmin(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setRoleAdmin([r,e],{account:this.walletClient.account,chain:this.viemChain})}setRoleGuardian(t,e){const r=this.processRoleIdOrLabel(t);return this.getContract().write.setRoleGuardian([r,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetAdminDelay(t,e){return this.getContract().write.setTargetAdminDelay([t,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetClosed(t,e){return this.getContract().write.setTargetClosed([t,e],{account:this.walletClient.account,chain:this.viemChain})}setTargetFunctionRole(t,e,r){const a=this.processRoleIdOrLabel(r);return this.getContract().write.setTargetFunctionRole([t,e,a],{account:this.walletClient.account,chain:this.viemChain})}updateAuthority(t,e){return this.getContract().write.updateAuthority([t,e],{account:this.walletClient.account,chain:this.viemChain})}labelToRoleId(t){const r=n.stringToBytes(t).reverse(),a=n.bytesToHex(r);return n.hexToBigInt(a)}roleIdToLabel(t){const e=n.toHex(t),r=n.toBytes(e).reverse();return b.bytesToString(r)}getSelectorFromFunctionName(t){var e;return(e=Object.entries(this.selectorsMap).find(([,r])=>r.includes(t)))==null?void 0:e[0]}getFunctionNameFromSelector(t){var e;return(e=Object.entries(this.selectorsMap).find(([r])=>r===t))==null?void 0:e[1]}processRoleIdOrLabel(t){return typeof t=="string"?this.labelToRoleId(t):t}}exports.InstitutionalAccessManagerHandler=R;
|
|
2
|
+
//# sourceMappingURL=institutional-access-manager-handler.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"institutional-access-manager-handler.cjs","sources":["../../../lib/contracts/handlers/institutional-access-manager-handler.ts"],"sourcesContent":["import {\n Chain as ViemChain,\n WalletClient,\n PublicClient,\n getContract,\n GetContractReturnType,\n Address,\n Hex,\n stringToBytes,\n bytesToHex,\n hexToBigInt,\n toHex,\n toBytes,\n bytesToString,\n} from 'viem';\nimport { InstitutionalAccessManager } from '../abis/mainnet/InstitutionalAccessManager';\nimport { Chain, VIEM_CHAINS } from '../../chains/constants';\nimport { InvalidContractAddressError } from '../../errors/validation-errors';\n\n/**\n * Handler for the `InstitutionalAccessManager` contract exposing methods to\n * interact with the contract.\n */\nexport class InstitutionalAccessManagerHandler {\n private viemChain: ViemChain;\n private address?: Address;\n private selectorsMap: Record<Hex, string> = {\n '0x6056b271':\n 'completeQueuedWithdrawals((address,address,address,uint256,uint32,address[],uint256[])[],bool[])',\n '0x29d85402': 'customExternalCall(address,bytes,uint256)',\n '0x6e553f65': 'deposit(uint256,address)',\n '0x2d2da806': 'depositETH(address)',\n '0xba087652': 'redeem(uint256,address,address)',\n '0xb460af94': 'withdraw(uint256,address,address)',\n '0xa9059cbb': 'transfer(address,uint256)',\n '0x23b872dd': 'transferFrom(address,address,uint256)',\n '0x94bf804d': 'mint(uint256,address)',\n '0x61c17990': 'startRestakingValidators(bytes[],bytes[],bytes32[])',\n '0x3e5e60c6': 'startNonRestakingValidators(bytes[],bytes[],bytes32[])',\n '0x852aa33d': 'queueWithdrawals(uint256)',\n '0xad0cdf3e': 'setValidatorsETH(uint128,uint128)',\n };\n\n /**\n * Create the handler for the Institutional `AccessManager` contract\n * exposing methods to interact with the contract.\n *\n * @param chain Chain to use for the client.\n * @param walletClient The wallet client to use for wallet\n * interactions.\n * @param publicClient The public client to use for public\n * interactions.\n */\n constructor(\n chain: Chain,\n private walletClient: WalletClient,\n private publicClient: PublicClient,\n ) {\n this.viemChain = VIEM_CHAINS[chain];\n }\n\n /**\n * Set the address of the contract for this handler.\n *\n * @param address The address of the contract.\n * @returns The handler.\n */\n public withAddress(address: Address) {\n this.address = address;\n\n return this;\n }\n\n /**\n * Get the address of the contract for this handler.\n *\n * @returns The address of the contract.\n */\n public getAddress() {\n return this.address;\n }\n\n /**\n * Get the contract. This is a method because the typings are complex\n * and lost when trying to make it a member.\n *\n * @returns The viem contract.\n */\n public getContract() {\n if (!this.address) {\n throw new InvalidContractAddressError(\n `No address specified for the contract`,\n {\n fixMessage: `Set the contract address in the handler by using the setAddress method`,\n },\n );\n }\n\n const abi = InstitutionalAccessManager;\n const client = { public: this.publicClient, wallet: this.walletClient };\n\n return getContract({\n address: this.address,\n abi,\n client,\n }) as GetContractReturnType<typeof abi, typeof client, Address>;\n }\n\n /**\n * Get the admin role.\n *\n * @returns The admin role.\n */\n public getAdminRole() {\n return this.getContract().read.ADMIN_ROLE();\n }\n\n /**\n * Get the public role.\n *\n * @returns The public role.\n */\n public getPublicRole() {\n return this.getContract().read.PUBLIC_ROLE();\n }\n\n /**\n * Check if a caller can call a target with a specific selector.\n *\n * @param caller The caller address.\n * @param target The target contract address.\n * @param selector The function selector.\n * @returns Whether the caller can call the target immediately and the delay.\n */\n public async canCall(caller: Address, target: Address, selector: Hex) {\n const [immediate, delay] = await this.getContract().read.canCall([\n caller,\n target,\n selector,\n ]);\n\n return { canCall: immediate, canCallDelay: delay };\n }\n\n /**\n * Cancel a scheduled operation.\n *\n * @param caller The caller address.\n * @param target The target contract address.\n * @param data The operation data.\n * @returns The nonce.\n */\n public cancel(caller: Address, target: Address, data: Hex) {\n return this.getContract().write.cancel([caller, target, data], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Execute a target with data.\n *\n * @param target The target contract address.\n * @param data The data to execute.\n * @param value The value to send.\n * @returns The nonce.\n */\n public execute(target: Address, data: Hex, value?: bigint) {\n return this.getContract().write.execute([target, data], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n value,\n });\n }\n\n /**\n * Get access information for a role and account.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param account The account address.\n * @returns The access information.\n */\n public async getAccess(roleIdOrLabel: bigint | string, account: Address) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n const [since, currentDelay, pendingDelay, effect] =\n await this.getContract().read.getAccess([roleId, account]);\n\n return { since, currentDelay, pendingDelay, effect };\n }\n\n /**\n * Get the nonce for an operation ID.\n *\n * @param id The operation ID.\n * @returns The nonce.\n */\n public getNonce(id: Hex) {\n return this.getContract().read.getNonce([id]);\n }\n\n /**\n * Get the admin role for a role ID.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @returns The admin role ID.\n */\n public getRoleAdmin(roleIdOrLabel: bigint | string) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n return this.getContract().read.getRoleAdmin([roleId]);\n }\n\n /**\n * Get the grant delay for a role ID.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @returns The grant delay.\n */\n public getRoleGrantDelay(roleIdOrLabel: bigint | string) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n return this.getContract().read.getRoleGrantDelay([roleId]);\n }\n\n /**\n * Get the guardian role for a role ID.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @returns The guardian role ID.\n */\n public getRoleGuardian(roleIdOrLabel: bigint | string) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n return this.getContract().read.getRoleGuardian([roleId]);\n }\n\n /**\n * Get the schedule for an operation ID.\n *\n * @param id The operation ID.\n * @returns The schedule time.\n */\n public getSchedule(id: Hex) {\n return this.getContract().read.getSchedule([id]);\n }\n\n /**\n * Get the admin delay for a target.\n *\n * @param target The target contract address.\n * @returns The admin delay.\n */\n public getTargetAdminDelay(target: Address) {\n return this.getContract().read.getTargetAdminDelay([target]);\n }\n\n /**\n * Get the function role for a target and selector.\n *\n * @param target The target contract address.\n * @param selector The function selector.\n * @returns The role ID.\n */\n public getTargetFunctionRole(target: Address, selector: Hex) {\n return this.getContract().read.getTargetFunctionRole([target, selector]);\n }\n\n /**\n * Grant a role to an account.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param account The account address.\n * @param executionDelay The execution delay.\n */\n public grantRole(\n roleIdOrLabel: bigint | string,\n account: Address,\n executionDelay: number,\n ) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.grantRole(\n [roleId, account, executionDelay],\n {\n account: this.walletClient.account!,\n chain: this.viemChain,\n },\n );\n }\n\n /**\n * Check if an account has a role.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param account The account address.\n * @returns Whether the account has the role and the execution delay.\n */\n public async hasRole(roleIdOrLabel: bigint | string, account: Address) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n const [isMember, executionDelay] = await this.getContract().read.hasRole([\n roleId,\n account,\n ]);\n\n return { isMember, executionDelay };\n }\n\n /**\n * Hash an operation.\n *\n * @param caller The caller address.\n * @param target The target address.\n * @param data The operation data.\n * @returns The operation hash.\n */\n public hashOperation(caller: Address, target: Address, data: Hex) {\n return this.getContract().read.hashOperation([caller, target, data]);\n }\n\n /**\n * Check if a target is closed.\n *\n * @param target The target contract address.\n * @returns Whether the target is closed.\n */\n public isTargetClosed(target: Address) {\n return this.getContract().read.isTargetClosed([target]);\n }\n\n /**\n * Label a role.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param label The label.\n * @returns The transaction hash.\n */\n public labelRole(roleIdOrLabel: bigint | string, label: string) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.labelRole([roleId, label], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Get the minimum setback.\n *\n * @returns The minimum setback.\n */\n public getMinSetback() {\n return this.getContract().read.minSetback();\n }\n\n /**\n * Execute multiple calls.\n *\n * @param data Array of call data.\n * @returns Array of results.\n */\n public multicall(data: Hex[]) {\n return this.getContract().write.multicall([data], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Renounce a role.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param callerConfirmation The caller confirmation address.\n */\n public renounceRole(\n roleIdOrLabel: bigint | string,\n callerConfirmation: Address,\n ) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.renounceRole([roleId, callerConfirmation], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Revoke a role from an account.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param account The account address.\n */\n public revokeRole(roleIdOrLabel: bigint | string, account: Address) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.revokeRole([roleId, account], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Schedule an operation.\n *\n * @param target The target contract address.\n * @param data The operation data.\n * @param when The execution time.\n * @returns The operation ID and nonce.\n */\n public schedule(target: Address, data: Hex, when: number) {\n return this.getContract().write.schedule([target, data, when], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Set the grant delay for a role.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param newDelay The new delay.\n */\n public setGrantDelay(roleIdOrLabel: bigint | string, newDelay: number) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.setGrantDelay([roleId, newDelay], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Set the admin role for a role.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param admin The admin role ID.\n */\n public setRoleAdmin(roleIdOrLabel: bigint | string, admin: bigint) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.setRoleAdmin([roleId, admin], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Set the guardian role for a role.\n *\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n * @param guardian The guardian role ID.\n */\n public setRoleGuardian(roleIdOrLabel: bigint | string, guardian: bigint) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.setRoleGuardian([roleId, guardian], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Set the admin delay for a target.\n *\n * @param target The target contract address.\n * @param newDelay The new delay.\n */\n public setTargetAdminDelay(target: Address, newDelay: number) {\n return this.getContract().write.setTargetAdminDelay([target, newDelay], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Set whether a target is closed.\n *\n * @param target The target contract address.\n * @param closed Whether the target is closed.\n */\n public setTargetClosed(target: Address, closed: boolean) {\n return this.getContract().write.setTargetClosed([target, closed], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**\n * Set the function role for a target.\n *\n * @param target The target address.\n * @param selectors Array of function selectors.\n * @param roleIdOrLabel The role ID or role label generated with\n * `labelToRoleId`.\n */\n public setTargetFunctionRole(\n target: Address,\n selectors: Hex[],\n roleIdOrLabel: bigint | string,\n ) {\n const roleId = this.processRoleIdOrLabel(roleIdOrLabel);\n\n return this.getContract().write.setTargetFunctionRole(\n [target, selectors, roleId],\n {\n account: this.walletClient.account!,\n chain: this.viemChain,\n },\n );\n }\n\n /**\n * Update the authority for a target.\n *\n * @param target The target address.\n * @param newAuthority The new authority address.\n */\n public updateAuthority(target: Address, newAuthority: Address) {\n return this.getContract().write.updateAuthority([target, newAuthority], {\n account: this.walletClient.account!,\n chain: this.viemChain,\n });\n }\n\n /**************************************************/\n /****************** Helper Methods ****************/\n /**************************************************/\n\n /**\n * Convert a label to a role ID. Useful if you want to create a roleId\n * from a label which can then be used to get the label back using\n * `roleIdToLabel`.\n *\n * @param label The label to convert.\n * @returns The role ID.\n */\n public labelToRoleId(label: string) {\n const bytes = stringToBytes(label);\n // Reverse the bytes to make it little-endian.\n const leBytes = bytes.reverse();\n const hex = bytesToHex(leBytes);\n\n return hexToBigInt(hex);\n }\n\n /**\n * Convert a role ID to a label. Only useful if the `roleId` was\n * created using `labelToRoleId`.\n *\n * @param roleId The role ID to convert.\n * @returns The label.\n */\n public roleIdToLabel(roleId: bigint) {\n const hex = toHex(roleId);\n // Reverse the bytes to make it little-endian.\n const leBytes = toBytes(hex).reverse();\n\n return bytesToString(leBytes);\n }\n\n /**\n * Get the selector for a function name.\n *\n * @param functionName The function name.\n * @returns The selector.\n */\n public getSelectorFromFunctionName(functionName: string) {\n return Object.entries(this.selectorsMap).find(([, value]) =>\n value.includes(functionName),\n )?.[0];\n }\n\n /**\n * Get the function name for a selector.\n *\n * @param selector The selector.\n * @returns The function name.\n */\n public getFunctionNameFromSelector(selector: Hex) {\n return Object.entries(this.selectorsMap).find(\n ([key]) => key === selector,\n )?.[1];\n }\n\n private processRoleIdOrLabel(roleIdOrLabel: bigint | string) {\n if (typeof roleIdOrLabel === 'string') {\n return this.labelToRoleId(roleIdOrLabel);\n }\n\n return roleIdOrLabel;\n }\n}\n"],"names":["InstitutionalAccessManagerHandler","chain","walletClient","publicClient","__publicField","VIEM_CHAINS","address","InvalidContractAddressError","abi","InstitutionalAccessManager","client","getContract","caller","target","selector","immediate","delay","data","value","roleIdOrLabel","account","roleId","since","currentDelay","pendingDelay","effect","id","executionDelay","isMember","label","callerConfirmation","when","newDelay","admin","guardian","closed","selectors","newAuthority","leBytes","stringToBytes","hex","bytesToHex","hexToBigInt","toHex","toBytes","bytesToString","functionName","_a","key"],"mappings":"0eAuBO,MAAMA,CAAkC,CA8B7C,YACEC,EACQC,EACAC,EACR,CAjCMC,EAAA,kBACAA,EAAA,gBACAA,EAAA,oBAAoC,CAC1C,aACE,mGACF,aAAc,4CACd,aAAc,2BACd,aAAc,sBACd,aAAc,kCACd,aAAc,oCACd,aAAc,4BACd,aAAc,wCACd,aAAc,wBACd,aAAc,sDACd,aAAc,yDACd,aAAc,4BACd,aAAc,mCAChB,GAcU,KAAA,aAAAF,EACA,KAAA,aAAAC,EAEH,KAAA,UAAYE,cAAYJ,CAAK,CAAA,CAS7B,YAAYK,EAAkB,CACnC,YAAK,QAAUA,EAER,IAAA,CAQF,YAAa,CAClB,OAAO,KAAK,OAAA,CASP,aAAc,CACf,GAAA,CAAC,KAAK,QACR,MAAM,IAAIC,EAAA,4BACR,wCACA,CACE,WAAY,wEAAA,CAEhB,EAGF,MAAMC,EAAMC,EAAA,2BACNC,EAAS,CAAE,OAAQ,KAAK,aAAc,OAAQ,KAAK,YAAa,EAEtE,OAAOC,cAAY,CACjB,QAAS,KAAK,QACd,IAAAH,EACA,OAAAE,CAAA,CACD,CAAA,CAQI,cAAe,CACpB,OAAO,KAA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