@linealqorum/js 0.0.0-stage → 0.0.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.
Files changed (151) hide show
  1. package/package.json +16 -5
  2. package/src/artifact-service.js +94 -0
  3. package/src/artifacts/artifacts.d.ts +13 -0
  4. package/src/artifacts/build-info/solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532.json +392 -0
  5. package/src/artifacts/build-info/solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532.output.json +1 -0
  6. package/src/artifacts/contracts/Counter.sol/Counter.json +60 -0
  7. package/src/artifacts/contracts/Counter.sol/artifacts.d.ts +27 -0
  8. package/src/artifacts/contracts/core/BaseAccount.sol/BaseAccount.json +116 -0
  9. package/src/artifacts/contracts/core/BaseAccount.sol/artifacts.d.ts +27 -0
  10. package/src/artifacts/contracts/core/BasePaymaster.sol/BasePaymaster.json +281 -0
  11. package/src/artifacts/contracts/core/BasePaymaster.sol/artifacts.d.ts +27 -0
  12. package/src/artifacts/contracts/core/EntryPoint.sol/EntryPoint.json +1019 -0
  13. package/src/artifacts/contracts/core/EntryPoint.sol/artifacts.d.ts +27 -0
  14. package/src/artifacts/contracts/core/EntryPointSimulations.sol/EntryPointSimulations.json +1324 -0
  15. package/src/artifacts/contracts/core/EntryPointSimulations.sol/artifacts.d.ts +27 -0
  16. package/src/artifacts/contracts/core/Groth16Verifier.sol/Groth16Verifier.json +48 -0
  17. package/src/artifacts/contracts/core/Groth16Verifier.sol/artifacts.d.ts +27 -0
  18. package/src/artifacts/contracts/core/Helpers.sol/artifacts.d.ts +0 -0
  19. package/src/artifacts/contracts/core/LinealDeployer.sol/LinealDeployer.json +51 -0
  20. package/src/artifacts/contracts/core/LinealDeployer.sol/artifacts.d.ts +27 -0
  21. package/src/artifacts/contracts/core/NonceManager.sol/NonceManager.json +75 -0
  22. package/src/artifacts/contracts/core/NonceManager.sol/artifacts.d.ts +27 -0
  23. package/src/artifacts/contracts/core/SenderCreator.sol/SenderCreator.json +33 -0
  24. package/src/artifacts/contracts/core/SenderCreator.sol/artifacts.d.ts +27 -0
  25. package/src/artifacts/contracts/core/StakeManager.sol/StakeManager.json +299 -0
  26. package/src/artifacts/contracts/core/StakeManager.sol/artifacts.d.ts +27 -0
  27. package/src/artifacts/contracts/core/UserOperationLib.sol/UserOperationLib.json +53 -0
  28. package/src/artifacts/contracts/core/UserOperationLib.sol/artifacts.d.ts +27 -0
  29. package/src/artifacts/contracts/economy/Liquidity/LinealDex.sol/LinealDex.json +530 -0
  30. package/src/artifacts/contracts/economy/Liquidity/LinealDex.sol/artifacts.d.ts +27 -0
  31. package/src/artifacts/contracts/economy/Liquidity/LinealLiquidity.sol/LinealLiquidity.json +876 -0
  32. package/src/artifacts/contracts/economy/Liquidity/LinealLiquidity.sol/artifacts.d.ts +27 -0
  33. package/src/artifacts/contracts/economy/Liquidity/LinealMilestones.sol/ILinealCitizens.json +46 -0
  34. package/src/artifacts/contracts/economy/Liquidity/LinealMilestones.sol/LinealMilestones.json +986 -0
  35. package/src/artifacts/contracts/economy/Liquidity/LinealMilestones.sol/artifacts.d.ts +43 -0
  36. package/src/artifacts/contracts/economy/Liquidity/LinealSeed.sol/LinealSeed.json +808 -0
  37. package/src/artifacts/contracts/economy/Liquidity/LinealSeed.sol/artifacts.d.ts +27 -0
  38. package/src/artifacts/contracts/economy/accounts/LinealAccount.sol/LinealAccount.json +591 -0
  39. package/src/artifacts/contracts/economy/accounts/LinealAccount.sol/artifacts.d.ts +27 -0
  40. package/src/artifacts/contracts/economy/accounts/LinealAccountFactory.sol/LinealAccountFactory.json +101 -0
  41. package/src/artifacts/contracts/economy/accounts/LinealAccountFactory.sol/artifacts.d.ts +27 -0
  42. package/src/artifacts/contracts/economy/accounts/callback/TokenCallbackHandler.sol/TokenCallbackHandler.json +145 -0
  43. package/src/artifacts/contracts/economy/accounts/callback/TokenCallbackHandler.sol/artifacts.d.ts +27 -0
  44. package/src/artifacts/contracts/economy/banks/LinealBank.sol/IBankDeposit.json +56 -0
  45. package/src/artifacts/contracts/economy/banks/LinealBank.sol/ICitizensAccounts.json +33 -0
  46. package/src/artifacts/contracts/economy/banks/LinealBank.sol/IInstitutionIdentity.json +27 -0
  47. package/src/artifacts/contracts/economy/banks/LinealBank.sol/ILinealTransactions.json +53 -0
  48. package/src/artifacts/contracts/economy/banks/LinealBank.sol/LinealBank.json +1072 -0
  49. package/src/artifacts/contracts/economy/banks/LinealBank.sol/artifacts.d.ts +91 -0
  50. package/src/artifacts/contracts/economy/banks/LinealQantum.sol/LinealQantum.json +496 -0
  51. package/src/artifacts/contracts/economy/banks/LinealQantum.sol/artifacts.d.ts +27 -0
  52. package/src/artifacts/contracts/economy/banks/LinealTransaction.sol/ILinealBank.json +27 -0
  53. package/src/artifacts/contracts/economy/banks/LinealTransaction.sol/LinealTransactions.json +1352 -0
  54. package/src/artifacts/contracts/economy/banks/LinealTransaction.sol/artifacts.d.ts +43 -0
  55. package/src/artifacts/contracts/economy/interfaces/ICLPStablecoin.sol/ICLPStablecoin.json +459 -0
  56. package/src/artifacts/contracts/economy/interfaces/ICLPStablecoin.sol/artifacts.d.ts +27 -0
  57. package/src/artifacts/contracts/economy/interfaces/IDEXRouter.sol/IDEXRouter.json +117 -0
  58. package/src/artifacts/contracts/economy/interfaces/IDEXRouter.sol/artifacts.d.ts +27 -0
  59. package/src/artifacts/contracts/economy/interfaces/IFeeSplitter.sol/IFeeSplitter.json +40 -0
  60. package/src/artifacts/contracts/economy/interfaces/IFeeSplitter.sol/artifacts.d.ts +27 -0
  61. package/src/artifacts/contracts/economy/interfaces/IIncomeToken.sol/IIncomeToken.json +197 -0
  62. package/src/artifacts/contracts/economy/interfaces/IIncomeToken.sol/artifacts.d.ts +27 -0
  63. package/src/artifacts/contracts/economy/interfaces/ILinealIdentity.sol/ILinealIdentity.json +90 -0
  64. package/src/artifacts/contracts/economy/interfaces/ILinealIdentity.sol/artifacts.d.ts +27 -0
  65. package/src/artifacts/contracts/economy/interfaces/IMetricsAdapter.sol/IMetricsAdapter.json +32 -0
  66. package/src/artifacts/contracts/economy/interfaces/IMetricsAdapter.sol/artifacts.d.ts +27 -0
  67. package/src/artifacts/contracts/economy/interfaces/IQorumsToken.sol/IQorumsToken.json +267 -0
  68. package/src/artifacts/contracts/economy/interfaces/IQorumsToken.sol/artifacts.d.ts +27 -0
  69. package/src/artifacts/contracts/economy/paymasters/LinealPaymaster.sol/LinealPaymaster.json +487 -0
  70. package/src/artifacts/contracts/economy/paymasters/LinealPaymaster.sol/artifacts.d.ts +27 -0
  71. package/src/artifacts/contracts/economy/paymasters/LinealRouter.sol/LinealRouter.json +945 -0
  72. package/src/artifacts/contracts/economy/paymasters/LinealRouter.sol/artifacts.d.ts +27 -0
  73. package/src/artifacts/contracts/economy/token/LinealToken.sol/LinealToken.json +1567 -0
  74. package/src/artifacts/contracts/economy/token/LinealToken.sol/artifacts.d.ts +27 -0
  75. package/src/artifacts/contracts/governance/LinealQorum.sol/LinealQorum.json +567 -0
  76. package/src/artifacts/contracts/governance/LinealQorum.sol/artifacts.d.ts +27 -0
  77. package/src/artifacts/contracts/institution/LinealCitizens.sol/LinealCitizens.json +986 -0
  78. package/src/artifacts/contracts/institution/LinealCitizens.sol/artifacts.d.ts +27 -0
  79. package/src/artifacts/contracts/institution/LinealInstitution.sol/LinealInstitution.json +1607 -0
  80. package/src/artifacts/contracts/institution/LinealInstitution.sol/artifacts.d.ts +27 -0
  81. package/src/artifacts/contracts/institution/LinealTender.sol/LinealTender.json +1055 -0
  82. package/src/artifacts/contracts/institution/LinealTender.sol/artifacts.d.ts +27 -0
  83. package/src/artifacts/contracts/interfaces/IAccount.sol/IAccount.json +90 -0
  84. package/src/artifacts/contracts/interfaces/IAccount.sol/artifacts.d.ts +27 -0
  85. package/src/artifacts/contracts/interfaces/IAccountExecute.sol/IAccountExecute.json +79 -0
  86. package/src/artifacts/contracts/interfaces/IAccountExecute.sol/artifacts.d.ts +27 -0
  87. package/src/artifacts/contracts/interfaces/IAggregator.sol/IAggregator.json +211 -0
  88. package/src/artifacts/contracts/interfaces/IAggregator.sol/artifacts.d.ts +27 -0
  89. package/src/artifacts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +809 -0
  90. package/src/artifacts/contracts/interfaces/IEntryPoint.sol/artifacts.d.ts +27 -0
  91. package/src/artifacts/contracts/interfaces/IEntryPointSimulations.sol/IEntryPointSimulations.json +1097 -0
  92. package/src/artifacts/contracts/interfaces/IEntryPointSimulations.sol/artifacts.d.ts +27 -0
  93. package/src/artifacts/contracts/interfaces/IMetricsAdapter.sol/IMetricsAdapter.json +32 -0
  94. package/src/artifacts/contracts/interfaces/IMetricsAdapter.sol/artifacts.d.ts +27 -0
  95. package/src/artifacts/contracts/interfaces/INonceManager.sol/INonceManager.json +51 -0
  96. package/src/artifacts/contracts/interfaces/INonceManager.sol/artifacts.d.ts +27 -0
  97. package/src/artifacts/contracts/interfaces/IPaymaster.sol/IPaymaster.json +123 -0
  98. package/src/artifacts/contracts/interfaces/IPaymaster.sol/artifacts.d.ts +27 -0
  99. package/src/artifacts/contracts/interfaces/IQorumsToken.sol/IQorumsToken.json +267 -0
  100. package/src/artifacts/contracts/interfaces/IQorumsToken.sol/artifacts.d.ts +27 -0
  101. package/src/artifacts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +256 -0
  102. package/src/artifacts/contracts/interfaces/IStakeManager.sol/artifacts.d.ts +27 -0
  103. package/src/artifacts/contracts/interfaces/PackedUserOperation.sol/artifacts.d.ts +0 -0
  104. package/src/artifacts/contracts/kernel/LinealEconomy.sol/LinealEconomicKernel.json +743 -0
  105. package/src/artifacts/contracts/kernel/LinealEconomy.sol/artifacts.d.ts +27 -0
  106. package/src/artifacts/contracts/social/LinealStorage.sol/PostBoard.json +1317 -0
  107. package/src/artifacts/contracts/social/LinealStorage.sol/artifacts.d.ts +27 -0
  108. package/src/artifacts/contracts/test.sol/LinealSecureStorage.json +634 -0
  109. package/src/artifacts/contracts/test.sol/artifacts.d.ts +27 -0
  110. package/src/artifacts/contracts/utils/Exec.sol/Exec.json +13 -0
  111. package/src/artifacts/contracts/utils/Exec.sol/artifacts.d.ts +27 -0
  112. package/src/artifacts/contracts/utils/IOracle.sol/IOracle.json +60 -0
  113. package/src/artifacts/contracts/utils/IOracle.sol/artifacts.d.ts +27 -0
  114. package/src/artifacts/contracts/utils/OracleHelper.sol/OracleHelper.json +84 -0
  115. package/src/artifacts/contracts/utils/OracleHelper.sol/artifacts.d.ts +27 -0
  116. package/src/artifacts/contracts/utils/UniswapHelper.sol/UniswapHelper.json +132 -0
  117. package/src/artifacts/contracts/utils/UniswapHelper.sol/artifacts.d.ts +27 -0
  118. package/src/contract-service.js +53 -0
  119. package/src/database/mongodb.js +181 -0
  120. package/src/index.js +11 -0
  121. package/src/middleware/actionMiddleware.js +17 -0
  122. package/src/middleware/actionsMiddleware.js +18 -0
  123. package/src/middleware/authMachineMiddleware.js +34 -0
  124. package/src/middleware/middleware.js +36 -0
  125. package/src/middleware/onlyQorum.js +57 -0
  126. package/src/middleware/onlyServer.js +36 -0
  127. package/src/middleware/readStateMiddleware.js +19 -0
  128. package/src/middleware/unauthorizeMiddleware.js +37 -0
  129. package/src/middleware/userOperation.js +25 -0
  130. package/src/operation-service.js +71 -0
  131. package/src/schemas/abiFolderSchema.js +9 -0
  132. package/src/schemas/abiSchema.js +16 -0
  133. package/src/schemas/applicationSchema.js +32 -0
  134. package/src/schemas/authorizedWalletSchema.js +9 -0
  135. package/src/schemas/deploySchema.js +11 -0
  136. package/src/schemas/expenseSchema.js +17 -0
  137. package/src/schemas/feeSchema.js +17 -0
  138. package/src/schemas/fixedExpenseSchema.js +18 -0
  139. package/src/schemas/fixedFeeSchema.js +17 -0
  140. package/src/schemas/identitySchema.js +33 -0
  141. package/src/schemas/institutionSchema.js +28 -0
  142. package/src/schemas/onlyQorumSchema.js +27 -0
  143. package/src/schemas/onlyServerSchema.js +26 -0
  144. package/src/schemas/serverWalletSchema.js +9 -0
  145. package/src/schemas/subaccountSchema.js +31 -0
  146. package/src/schemas/tenderSchema.js +36 -0
  147. package/src/schemas/transactionSchema.js +29 -0
  148. package/src/schemas/userOperationSchema.js +15 -0
  149. package/src/schemas/valuationSchema.js +10 -0
  150. package/src/signer-client.js +280 -0
  151. package/README.md +0 -3
@@ -0,0 +1,299 @@
1
+ {
2
+ "_format": "hh3-artifact-1",
3
+ "contractName": "StakeManager",
4
+ "sourceName": "contracts/core/StakeManager.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "address",
12
+ "name": "account",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "uint256",
18
+ "name": "totalDeposit",
19
+ "type": "uint256"
20
+ }
21
+ ],
22
+ "name": "Deposited",
23
+ "type": "event"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": true,
30
+ "internalType": "address",
31
+ "name": "account",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "indexed": false,
36
+ "internalType": "uint256",
37
+ "name": "totalStaked",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "uint256",
43
+ "name": "unstakeDelaySec",
44
+ "type": "uint256"
45
+ }
46
+ ],
47
+ "name": "StakeLocked",
48
+ "type": "event"
49
+ },
50
+ {
51
+ "anonymous": false,
52
+ "inputs": [
53
+ {
54
+ "indexed": true,
55
+ "internalType": "address",
56
+ "name": "account",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "withdrawTime",
63
+ "type": "uint256"
64
+ }
65
+ ],
66
+ "name": "StakeUnlocked",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": true,
74
+ "internalType": "address",
75
+ "name": "account",
76
+ "type": "address"
77
+ },
78
+ {
79
+ "indexed": false,
80
+ "internalType": "address",
81
+ "name": "withdrawAddress",
82
+ "type": "address"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "internalType": "uint256",
87
+ "name": "amount",
88
+ "type": "uint256"
89
+ }
90
+ ],
91
+ "name": "StakeWithdrawn",
92
+ "type": "event"
93
+ },
94
+ {
95
+ "anonymous": false,
96
+ "inputs": [
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "account",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "address",
106
+ "name": "withdrawAddress",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "indexed": false,
111
+ "internalType": "uint256",
112
+ "name": "amount",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "name": "Withdrawn",
117
+ "type": "event"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "uint32",
123
+ "name": "unstakeDelaySec",
124
+ "type": "uint32"
125
+ }
126
+ ],
127
+ "name": "addStake",
128
+ "outputs": [],
129
+ "stateMutability": "payable",
130
+ "type": "function"
131
+ },
132
+ {
133
+ "inputs": [
134
+ {
135
+ "internalType": "address",
136
+ "name": "account",
137
+ "type": "address"
138
+ }
139
+ ],
140
+ "name": "balanceOf",
141
+ "outputs": [
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "stateMutability": "view",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "account",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "depositTo",
160
+ "outputs": [],
161
+ "stateMutability": "payable",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [
166
+ {
167
+ "internalType": "address",
168
+ "name": "",
169
+ "type": "address"
170
+ }
171
+ ],
172
+ "name": "deposits",
173
+ "outputs": [
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "deposit",
177
+ "type": "uint256"
178
+ },
179
+ {
180
+ "internalType": "bool",
181
+ "name": "staked",
182
+ "type": "bool"
183
+ },
184
+ {
185
+ "internalType": "uint112",
186
+ "name": "stake",
187
+ "type": "uint112"
188
+ },
189
+ {
190
+ "internalType": "uint32",
191
+ "name": "unstakeDelaySec",
192
+ "type": "uint32"
193
+ },
194
+ {
195
+ "internalType": "uint48",
196
+ "name": "withdrawTime",
197
+ "type": "uint48"
198
+ }
199
+ ],
200
+ "stateMutability": "view",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "account",
208
+ "type": "address"
209
+ }
210
+ ],
211
+ "name": "getDepositInfo",
212
+ "outputs": [
213
+ {
214
+ "components": [
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "deposit",
218
+ "type": "uint256"
219
+ },
220
+ {
221
+ "internalType": "bool",
222
+ "name": "staked",
223
+ "type": "bool"
224
+ },
225
+ {
226
+ "internalType": "uint112",
227
+ "name": "stake",
228
+ "type": "uint112"
229
+ },
230
+ {
231
+ "internalType": "uint32",
232
+ "name": "unstakeDelaySec",
233
+ "type": "uint32"
234
+ },
235
+ {
236
+ "internalType": "uint48",
237
+ "name": "withdrawTime",
238
+ "type": "uint48"
239
+ }
240
+ ],
241
+ "internalType": "struct IStakeManager.DepositInfo",
242
+ "name": "info",
243
+ "type": "tuple"
244
+ }
245
+ ],
246
+ "stateMutability": "view",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [],
251
+ "name": "unlockStake",
252
+ "outputs": [],
253
+ "stateMutability": "nonpayable",
254
+ "type": "function"
255
+ },
256
+ {
257
+ "inputs": [
258
+ {
259
+ "internalType": "address payable",
260
+ "name": "withdrawAddress",
261
+ "type": "address"
262
+ }
263
+ ],
264
+ "name": "withdrawStake",
265
+ "outputs": [],
266
+ "stateMutability": "nonpayable",
267
+ "type": "function"
268
+ },
269
+ {
270
+ "inputs": [
271
+ {
272
+ "internalType": "address payable",
273
+ "name": "withdrawAddress",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "internalType": "uint256",
278
+ "name": "withdrawAmount",
279
+ "type": "uint256"
280
+ }
281
+ ],
282
+ "name": "withdrawTo",
283
+ "outputs": [],
284
+ "stateMutability": "nonpayable",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "stateMutability": "payable",
289
+ "type": "receive"
290
+ }
291
+ ],
292
+ "bytecode": "0x",
293
+ "deployedBytecode": "0x",
294
+ "linkReferences": {},
295
+ "deployedLinkReferences": {},
296
+ "immutableReferences": {},
297
+ "inputSourceName": "project/contracts/core/StakeManager.sol",
298
+ "buildInfoId": "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532"
299
+ }
@@ -0,0 +1,27 @@
1
+ // This file was autogenerated by Hardhat, do not edit it.
2
+ // prettier-ignore
3
+ // tslint:disable
4
+ // eslint-disable
5
+ // biome-ignore format: see above
6
+
7
+ export interface StakeManager$Type {
8
+ readonly _format: "hh3-artifact-1";
9
+ readonly contractName: "StakeManager";
10
+ readonly sourceName: "contracts/core/StakeManager.sol";
11
+ readonly abi: [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalDeposit","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalStaked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakeDelaySec","type":"uint256"}],"name":"StakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"withdrawTime","type":"uint256"}],"name":"StakeUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"withdrawAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakeWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"withdrawAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"uint32","name":"unstakeDelaySec","type":"uint32"}],"name":"addStake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"deposit","type":"uint256"},{"internalType":"bool","name":"staked","type":"bool"},{"internalType":"uint112","name":"stake","type":"uint112"},{"internalType":"uint32","name":"unstakeDelaySec","type":"uint32"},{"internalType":"uint48","name":"withdrawTime","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getDepositInfo","outputs":[{"components":[{"internalType":"uint256","name":"deposit","type":"uint256"},{"internalType":"bool","name":"staked","type":"bool"},{"internalType":"uint112","name":"stake","type":"uint112"},{"internalType":"uint32","name":"unstakeDelaySec","type":"uint32"},{"internalType":"uint48","name":"withdrawTime","type":"uint48"}],"internalType":"struct IStakeManager.DepositInfo","name":"info","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"}],"name":"withdrawStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}];
12
+ readonly bytecode: "0x";
13
+ readonly deployedBytecode: "0x";
14
+ readonly linkReferences: {};
15
+ readonly deployedLinkReferences: {};
16
+ readonly immutableReferences: {};
17
+ readonly inputSourceName: "project/contracts/core/StakeManager.sol";
18
+ readonly buildInfoId: "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532";
19
+ };
20
+
21
+ import "hardhat/types/artifacts";
22
+ declare module "hardhat/types/artifacts" {
23
+ interface ArtifactMap {
24
+ ["StakeManager"]: StakeManager$Type;
25
+ ["contracts/core/StakeManager.sol:StakeManager"]: StakeManager$Type;
26
+ }
27
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "_format": "hh3-artifact-1",
3
+ "contractName": "UserOperationLib",
4
+ "sourceName": "contracts/core/UserOperationLib.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "PAYMASTER_DATA_OFFSET",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint256",
12
+ "name": "",
13
+ "type": "uint256"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "PAYMASTER_POSTOP_GAS_OFFSET",
22
+ "outputs": [
23
+ {
24
+ "internalType": "uint256",
25
+ "name": "",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [],
34
+ "name": "PAYMASTER_VALIDATION_GAS_OFFSET",
35
+ "outputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ }
45
+ ],
46
+ "bytecode": "0x6080806040523460175760b09081601c823930815050f35b5f80fdfe60808060405260043610156011575f80fd5b5f3560e01c90816325093e1b14606757508063b29a8ff41460525763ede31502146039575f80fd5b5f366003190112604e57602060405160348152f35b5f80fd5b5f366003190112604e57602060405160148152f35b5f366003190112604e5780602460209252f3fea26469706673582212209a854dcf77a3934feae2666d12277cc34610cb27440763dd1536e60d36e4f7a464736f6c634300081e0033",
47
+ "deployedBytecode": "0x60808060405260043610156011575f80fd5b5f3560e01c90816325093e1b14606757508063b29a8ff41460525763ede31502146039575f80fd5b5f366003190112604e57602060405160348152f35b5f80fd5b5f366003190112604e57602060405160148152f35b5f366003190112604e5780602460209252f3fea26469706673582212209a854dcf77a3934feae2666d12277cc34610cb27440763dd1536e60d36e4f7a464736f6c634300081e0033",
48
+ "linkReferences": {},
49
+ "deployedLinkReferences": {},
50
+ "immutableReferences": {},
51
+ "inputSourceName": "project/contracts/core/UserOperationLib.sol",
52
+ "buildInfoId": "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532"
53
+ }
@@ -0,0 +1,27 @@
1
+ // This file was autogenerated by Hardhat, do not edit it.
2
+ // prettier-ignore
3
+ // tslint:disable
4
+ // eslint-disable
5
+ // biome-ignore format: see above
6
+
7
+ export interface UserOperationLib$Type {
8
+ readonly _format: "hh3-artifact-1";
9
+ readonly contractName: "UserOperationLib";
10
+ readonly sourceName: "contracts/core/UserOperationLib.sol";
11
+ readonly abi: [{"inputs":[],"name":"PAYMASTER_DATA_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAYMASTER_POSTOP_GAS_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAYMASTER_VALIDATION_GAS_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}];
12
+ readonly bytecode: "0x6080806040523460175760b09081601c823930815050f35b5f80fdfe60808060405260043610156011575f80fd5b5f3560e01c90816325093e1b14606757508063b29a8ff41460525763ede31502146039575f80fd5b5f366003190112604e57602060405160348152f35b5f80fd5b5f366003190112604e57602060405160148152f35b5f366003190112604e5780602460209252f3fea26469706673582212209a854dcf77a3934feae2666d12277cc34610cb27440763dd1536e60d36e4f7a464736f6c634300081e0033";
13
+ readonly deployedBytecode: "0x60808060405260043610156011575f80fd5b5f3560e01c90816325093e1b14606757508063b29a8ff41460525763ede31502146039575f80fd5b5f366003190112604e57602060405160348152f35b5f80fd5b5f366003190112604e57602060405160148152f35b5f366003190112604e5780602460209252f3fea26469706673582212209a854dcf77a3934feae2666d12277cc34610cb27440763dd1536e60d36e4f7a464736f6c634300081e0033";
14
+ readonly linkReferences: {};
15
+ readonly deployedLinkReferences: {};
16
+ readonly immutableReferences: {};
17
+ readonly inputSourceName: "project/contracts/core/UserOperationLib.sol";
18
+ readonly buildInfoId: "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532";
19
+ };
20
+
21
+ import "hardhat/types/artifacts";
22
+ declare module "hardhat/types/artifacts" {
23
+ interface ArtifactMap {
24
+ ["UserOperationLib"]: UserOperationLib$Type;
25
+ ["contracts/core/UserOperationLib.sol:UserOperationLib"]: UserOperationLib$Type;
26
+ }
27
+ }