@reclaimprotocol/attestor-core 5.0.1-beta.11 → 5.0.1-beta.13

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 (268) hide show
  1. package/lib/avs/client/create-claim-on-avs.js +5 -5
  2. package/lib/avs/config.js +1 -1
  3. package/lib/avs/utils/contracts.js +5 -5
  4. package/lib/avs/utils/register.js +3 -3
  5. package/lib/avs/utils/tasks.js +1 -1
  6. package/lib/client/create-claim.js +10 -10
  7. package/lib/client/tunnels/make-rpc-tcp-tunnel.js +1 -1
  8. package/lib/client/tunnels/make-rpc-tls-tunnel.d.ts +1 -1
  9. package/lib/client/tunnels/make-rpc-tls-tunnel.js +4 -4
  10. package/lib/client/utils/attestor-pool.js +1 -1
  11. package/lib/client/utils/client-socket.js +5 -5
  12. package/lib/client/utils/message-handler.js +2 -2
  13. package/lib/config/index.js +1 -1
  14. package/lib/external-rpc/benchmark.js +4 -4
  15. package/lib/external-rpc/handle-incoming-msg.js +9 -9
  16. package/lib/external-rpc/jsc-polyfills/1.js +1 -1
  17. package/lib/external-rpc/jsc-polyfills/2.js +2 -2
  18. package/lib/external-rpc/jsc-polyfills/index.js +2 -2
  19. package/lib/external-rpc/jsc-polyfills/ws.js +1 -1
  20. package/lib/external-rpc/setup-browser.js +5 -5
  21. package/lib/external-rpc/setup-jsc.js +4 -4
  22. package/lib/external-rpc/utils.js +4 -4
  23. package/lib/external-rpc/zk.js +2 -2
  24. package/lib/mechain/client/create-claim-on-mechain.js +2 -2
  25. package/lib/providers/http/index.js +6 -6
  26. package/lib/providers/http/utils.js +3 -3
  27. package/lib/providers/index.js +1 -1
  28. package/lib/scripts/build-browser.js +38 -0
  29. package/lib/scripts/build-jsc.js +47 -0
  30. package/lib/scripts/build-lib.js +47 -0
  31. package/lib/scripts/check-avs-registration.js +1 -1
  32. package/lib/scripts/generate-provider-types.js +1 -1
  33. package/lib/scripts/generate-receipt.js +6 -6
  34. package/lib/scripts/generate-toprf-keys.js +1 -1
  35. package/lib/scripts/jsc-cli-rpc.js +3 -3
  36. package/lib/scripts/register-avs-operator.js +1 -1
  37. package/lib/scripts/start-server.js +3 -3
  38. package/lib/scripts/update-avs-metadata.js +2 -2
  39. package/lib/scripts/whitelist-operator.js +2 -2
  40. package/lib/server/create-server.js +9 -9
  41. package/lib/server/handlers/claimTeeBundle.js +11 -11
  42. package/lib/server/handlers/claimTunnel.js +6 -6
  43. package/lib/server/handlers/completeClaimOnChain.js +3 -3
  44. package/lib/server/handlers/createClaimOnChain.js +4 -4
  45. package/lib/server/handlers/createTaskOnMechain.js +4 -4
  46. package/lib/server/handlers/createTunnel.js +4 -4
  47. package/lib/server/handlers/fetchCertificateBytes.js +2 -2
  48. package/lib/server/handlers/index.js +10 -10
  49. package/lib/server/handlers/init.js +5 -5
  50. package/lib/server/handlers/toprf.js +2 -2
  51. package/lib/server/socket.js +7 -7
  52. package/lib/server/tunnels/make-tcp-tunnel.js +6 -6
  53. package/lib/server/utils/apm.js +2 -2
  54. package/lib/server/utils/assert-valid-claim-request.js +8 -8
  55. package/lib/server/utils/config-env.js +1 -1
  56. package/lib/server/utils/dns.js +1 -1
  57. package/lib/server/utils/generics.js +4 -4
  58. package/lib/server/utils/keep-alive.js +1 -1
  59. package/lib/server/utils/oprf-raw.js +3 -3
  60. package/lib/server/utils/process-handshake.js +2 -2
  61. package/lib/server/utils/proxy-session.d.ts +1 -1
  62. package/lib/server/utils/proxy-session.js +3 -1
  63. package/lib/server/utils/tee-oprf-mpc-verification.js +1 -1
  64. package/lib/server/utils/tee-oprf-verification.js +2 -2
  65. package/lib/server/utils/tee-transcript-reconstruction.js +3 -3
  66. package/lib/server/utils/tee-verification.js +6 -6
  67. package/lib/server/utils/validation.js +2 -2
  68. package/lib/types/general.d.ts +0 -1
  69. package/lib/utils/auth.js +6 -6
  70. package/lib/utils/bgp-listener.js +2 -2
  71. package/lib/utils/claims.js +3 -3
  72. package/lib/utils/error.js +1 -1
  73. package/lib/utils/generics.d.ts +1 -6
  74. package/lib/utils/generics.js +2 -6
  75. package/lib/utils/http-parser.js +3 -3
  76. package/lib/utils/index.d.ts +0 -1
  77. package/lib/utils/index.js +0 -1
  78. package/lib/utils/logger.js +1 -1
  79. package/lib/utils/prepare-packets.js +3 -3
  80. package/lib/utils/redactions.js +1 -1
  81. package/lib/utils/signatures/index.js +2 -2
  82. package/lib/utils/socket-base.js +3 -3
  83. package/lib/utils/tls.js +2 -2
  84. package/lib/utils/zk.js +8 -8
  85. package/package.json +3 -9
  86. package/lib/browser/avs/abis/avsDirectoryABI.d.ts +0 -60
  87. package/lib/browser/avs/abis/avsDirectoryABI.js +0 -343
  88. package/lib/browser/avs/abis/delegationABI.d.ts +0 -126
  89. package/lib/browser/avs/abis/delegationABI.js +0 -4
  90. package/lib/browser/avs/abis/registryABI.d.ts +0 -136
  91. package/lib/browser/avs/abis/registryABI.js +0 -728
  92. package/lib/browser/avs/client/create-claim-on-avs.d.ts +0 -12
  93. package/lib/browser/avs/client/create-claim-on-avs.js +0 -168
  94. package/lib/browser/avs/config.d.ts +0 -7
  95. package/lib/browser/avs/config.js +0 -26
  96. package/lib/browser/avs/contracts/ReclaimServiceManager.d.ts +0 -601
  97. package/lib/browser/avs/contracts/ReclaimServiceManager.js +0 -0
  98. package/lib/browser/avs/contracts/common.d.ts +0 -50
  99. package/lib/browser/avs/contracts/common.js +0 -0
  100. package/lib/browser/avs/contracts/factories/ReclaimServiceManager__factory.d.ts +0 -890
  101. package/lib/browser/avs/contracts/factories/ReclaimServiceManager__factory.js +0 -1183
  102. package/lib/browser/avs/contracts/factories/index.d.ts +0 -1
  103. package/lib/browser/avs/contracts/factories/index.js +0 -4
  104. package/lib/browser/avs/contracts/index.d.ts +0 -3
  105. package/lib/browser/avs/contracts/index.js +0 -6
  106. package/lib/browser/avs/types/index.d.ts +0 -55
  107. package/lib/browser/avs/types/index.js +0 -0
  108. package/lib/browser/avs/utils/contracts.d.ts +0 -21
  109. package/lib/browser/avs/utils/contracts.js +0 -53
  110. package/lib/browser/avs/utils/register.d.ts +0 -27
  111. package/lib/browser/avs/utils/register.js +0 -74
  112. package/lib/browser/avs/utils/tasks.d.ts +0 -22
  113. package/lib/browser/avs/utils/tasks.js +0 -48
  114. package/lib/browser/client/create-claim.d.ts +0 -5
  115. package/lib/browser/client/create-claim.js +0 -461
  116. package/lib/browser/client/index.d.ts +0 -3
  117. package/lib/browser/client/index.js +0 -3
  118. package/lib/browser/client/tunnels/make-rpc-tcp-tunnel.d.ts +0 -16
  119. package/lib/browser/client/tunnels/make-rpc-tcp-tunnel.js +0 -53
  120. package/lib/browser/client/tunnels/make-rpc-tls-tunnel.d.ts +0 -26
  121. package/lib/browser/client/tunnels/make-rpc-tls-tunnel.js +0 -127
  122. package/lib/browser/client/utils/attestor-pool.d.ts +0 -8
  123. package/lib/browser/client/utils/attestor-pool.js +0 -24
  124. package/lib/browser/client/utils/client-socket.d.ts +0 -11
  125. package/lib/browser/client/utils/client-socket.js +0 -120
  126. package/lib/browser/client/utils/message-handler.d.ts +0 -4
  127. package/lib/browser/client/utils/message-handler.js +0 -97
  128. package/lib/browser/config/index.d.ts +0 -31
  129. package/lib/browser/config/index.js +0 -62
  130. package/lib/browser/external-rpc/benchmark.d.ts +0 -1
  131. package/lib/browser/external-rpc/benchmark.js +0 -82
  132. package/lib/browser/external-rpc/event-bus.d.ts +0 -7
  133. package/lib/browser/external-rpc/event-bus.js +0 -17
  134. package/lib/browser/external-rpc/global.d.js +0 -0
  135. package/lib/browser/external-rpc/handle-incoming-msg.d.ts +0 -2
  136. package/lib/browser/external-rpc/handle-incoming-msg.js +0 -241
  137. package/lib/browser/external-rpc/index.d.ts +0 -3
  138. package/lib/browser/external-rpc/index.js +0 -3
  139. package/lib/browser/external-rpc/jsc-polyfills/1.d.ts +0 -14
  140. package/lib/browser/external-rpc/jsc-polyfills/1.js +0 -80
  141. package/lib/browser/external-rpc/jsc-polyfills/2.d.ts +0 -1
  142. package/lib/browser/external-rpc/jsc-polyfills/2.js +0 -15
  143. package/lib/browser/external-rpc/jsc-polyfills/event.d.ts +0 -10
  144. package/lib/browser/external-rpc/jsc-polyfills/event.js +0 -19
  145. package/lib/browser/external-rpc/jsc-polyfills/index.d.ts +0 -2
  146. package/lib/browser/external-rpc/jsc-polyfills/index.js +0 -2
  147. package/lib/browser/external-rpc/jsc-polyfills/ws.d.ts +0 -21
  148. package/lib/browser/external-rpc/jsc-polyfills/ws.js +0 -83
  149. package/lib/browser/external-rpc/setup-browser.d.ts +0 -6
  150. package/lib/browser/external-rpc/setup-browser.js +0 -33
  151. package/lib/browser/external-rpc/setup-jsc.d.ts +0 -24
  152. package/lib/browser/external-rpc/setup-jsc.js +0 -22
  153. package/lib/browser/external-rpc/types.d.ts +0 -213
  154. package/lib/browser/external-rpc/types.js +0 -0
  155. package/lib/browser/external-rpc/utils.d.ts +0 -20
  156. package/lib/browser/external-rpc/utils.js +0 -100
  157. package/lib/browser/external-rpc/zk.d.ts +0 -14
  158. package/lib/browser/external-rpc/zk.js +0 -58
  159. package/lib/browser/index.browser.js +0 -13
  160. package/lib/browser/index.d.ts +0 -9
  161. package/lib/browser/index.js +0 -13
  162. package/lib/browser/mechain/abis/governanceABI.d.ts +0 -50
  163. package/lib/browser/mechain/abis/governanceABI.js +0 -461
  164. package/lib/browser/mechain/abis/taskABI.d.ts +0 -157
  165. package/lib/browser/mechain/abis/taskABI.js +0 -512
  166. package/lib/browser/mechain/client/create-claim-on-mechain.d.ts +0 -10
  167. package/lib/browser/mechain/client/create-claim-on-mechain.js +0 -33
  168. package/lib/browser/mechain/client/index.d.ts +0 -1
  169. package/lib/browser/mechain/client/index.js +0 -1
  170. package/lib/browser/mechain/constants/index.d.ts +0 -3
  171. package/lib/browser/mechain/constants/index.js +0 -8
  172. package/lib/browser/mechain/index.d.ts +0 -2
  173. package/lib/browser/mechain/index.js +0 -2
  174. package/lib/browser/mechain/types/index.d.ts +0 -23
  175. package/lib/browser/mechain/types/index.js +0 -0
  176. package/lib/browser/proto/api.d.ts +0 -651
  177. package/lib/browser/proto/api.js +0 -4250
  178. package/lib/browser/proto/tee-bundle.d.ts +0 -156
  179. package/lib/browser/proto/tee-bundle.js +0 -1296
  180. package/lib/browser/providers/http/index.d.ts +0 -18
  181. package/lib/browser/providers/http/index.js +0 -640
  182. package/lib/browser/providers/http/patch-parse5-tree.d.ts +0 -6
  183. package/lib/browser/providers/http/patch-parse5-tree.js +0 -34
  184. package/lib/browser/providers/http/utils.d.ts +0 -77
  185. package/lib/browser/providers/http/utils.js +0 -283
  186. package/lib/browser/providers/index.d.ts +0 -4
  187. package/lib/browser/providers/index.js +0 -7
  188. package/lib/browser/scripts/fallbacks/crypto.js +0 -4
  189. package/lib/browser/scripts/fallbacks/empty.js +0 -4
  190. package/lib/browser/scripts/fallbacks/gnark.js +0 -15
  191. package/lib/browser/scripts/fallbacks/re2.js +0 -7
  192. package/lib/browser/scripts/fallbacks/snarkjs.js +0 -10
  193. package/lib/browser/scripts/fallbacks/zk-file-fetch.js +0 -50
  194. package/lib/browser/types/bgp.d.ts +0 -11
  195. package/lib/browser/types/bgp.js +0 -0
  196. package/lib/browser/types/claims.d.ts +0 -70
  197. package/lib/browser/types/claims.js +0 -0
  198. package/lib/browser/types/client.d.ts +0 -163
  199. package/lib/browser/types/client.js +0 -0
  200. package/lib/browser/types/general.d.ts +0 -77
  201. package/lib/browser/types/general.js +0 -0
  202. package/lib/browser/types/handlers.d.ts +0 -10
  203. package/lib/browser/types/handlers.js +0 -0
  204. package/lib/browser/types/index.d.ts +0 -10
  205. package/lib/browser/types/index.js +0 -10
  206. package/lib/browser/types/providers.d.ts +0 -161
  207. package/lib/browser/types/providers.gen.d.ts +0 -443
  208. package/lib/browser/types/providers.gen.js +0 -16
  209. package/lib/browser/types/providers.js +0 -0
  210. package/lib/browser/types/rpc.d.ts +0 -35
  211. package/lib/browser/types/rpc.js +0 -0
  212. package/lib/browser/types/signatures.d.ts +0 -28
  213. package/lib/browser/types/signatures.js +0 -0
  214. package/lib/browser/types/tunnel.d.ts +0 -18
  215. package/lib/browser/types/tunnel.js +0 -0
  216. package/lib/browser/types/zk.d.ts +0 -38
  217. package/lib/browser/types/zk.js +0 -0
  218. package/lib/browser/utils/auth.d.ts +0 -8
  219. package/lib/browser/utils/auth.js +0 -71
  220. package/lib/browser/utils/b64-json.d.ts +0 -2
  221. package/lib/browser/utils/b64-json.js +0 -17
  222. package/lib/browser/utils/claims.d.ts +0 -33
  223. package/lib/browser/utils/claims.js +0 -89
  224. package/lib/browser/utils/env.d.ts +0 -3
  225. package/lib/browser/utils/env.js +0 -19
  226. package/lib/browser/utils/error.d.ts +0 -26
  227. package/lib/browser/utils/error.js +0 -54
  228. package/lib/browser/utils/generics.d.ts +0 -119
  229. package/lib/browser/utils/generics.js +0 -272
  230. package/lib/browser/utils/http-parser.d.ts +0 -59
  231. package/lib/browser/utils/http-parser.js +0 -201
  232. package/lib/browser/utils/index.browser.js +0 -13
  233. package/lib/browser/utils/index.d.ts +0 -13
  234. package/lib/browser/utils/index.js +0 -13
  235. package/lib/browser/utils/logger.browser.js +0 -88
  236. package/lib/browser/utils/logger.d.ts +0 -14
  237. package/lib/browser/utils/logger.js +0 -88
  238. package/lib/browser/utils/prepare-packets.d.ts +0 -16
  239. package/lib/browser/utils/prepare-packets.js +0 -69
  240. package/lib/browser/utils/redactions.d.ts +0 -73
  241. package/lib/browser/utils/redactions.js +0 -135
  242. package/lib/browser/utils/retries.d.ts +0 -12
  243. package/lib/browser/utils/retries.js +0 -26
  244. package/lib/browser/utils/signatures/eth.d.ts +0 -2
  245. package/lib/browser/utils/signatures/eth.js +0 -31
  246. package/lib/browser/utils/signatures/index.d.ts +0 -5
  247. package/lib/browser/utils/signatures/index.js +0 -12
  248. package/lib/browser/utils/socket-base.d.ts +0 -23
  249. package/lib/browser/utils/socket-base.js +0 -96
  250. package/lib/browser/utils/tls-imports.d.ts +0 -21
  251. package/lib/browser/utils/tls-imports.js +0 -71
  252. package/lib/browser/utils/tls.d.ts +0 -2
  253. package/lib/browser/utils/tls.js +0 -58
  254. package/lib/browser/utils/ws.d.ts +0 -7
  255. package/lib/browser/utils/ws.js +0 -22
  256. package/lib/browser/utils/zk.d.ts +0 -71
  257. package/lib/browser/utils/zk.js +0 -623
  258. package/lib/external-rpc/global.d.js +0 -0
  259. package/lib/index.browser.d.ts +0 -9
  260. package/lib/scripts/fallbacks/gnark.d.ts +0 -7
  261. package/lib/scripts/fallbacks/gnark.js +0 -15
  262. package/lib/scripts/fallbacks/zk-file-fetch.d.ts +0 -24
  263. package/lib/scripts/fallbacks/zk-file-fetch.js +0 -50
  264. package/lib/utils/index.browser.d.ts +0 -13
  265. package/lib/utils/logger.browser.d.ts +0 -14
  266. package/lib/utils/tls-imports.d.ts +0 -21
  267. package/lib/utils/tls-imports.js +0 -71
  268. /package/lib/{browser/scripts → scripts}/fallbacks/stwo.js +0 -0
@@ -1,461 +0,0 @@
1
- const governanceABI = [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "initialOwner",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "uint256",
11
- "name": "_minimumStake",
12
- "type": "uint256"
13
- },
14
- {
15
- "internalType": "uint256",
16
- "name": "_unbondingPeriod",
17
- "type": "uint256"
18
- }
19
- ],
20
- "stateMutability": "nonpayable",
21
- "type": "constructor"
22
- },
23
- {
24
- "inputs": [
25
- {
26
- "internalType": "address",
27
- "name": "owner",
28
- "type": "address"
29
- }
30
- ],
31
- "name": "OwnableInvalidOwner",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [
36
- {
37
- "internalType": "address",
38
- "name": "account",
39
- "type": "address"
40
- }
41
- ],
42
- "name": "OwnableUnauthorizedAccount",
43
- "type": "error"
44
- },
45
- {
46
- "anonymous": false,
47
- "inputs": [
48
- {
49
- "indexed": true,
50
- "internalType": "address",
51
- "name": "previousOwner",
52
- "type": "address"
53
- },
54
- {
55
- "indexed": true,
56
- "internalType": "address",
57
- "name": "newOwner",
58
- "type": "address"
59
- }
60
- ],
61
- "name": "OwnershipTransferred",
62
- "type": "event"
63
- },
64
- {
65
- "inputs": [
66
- {
67
- "internalType": "string",
68
- "name": "",
69
- "type": "string"
70
- }
71
- ],
72
- "name": "Attestors",
73
- "outputs": [
74
- {
75
- "internalType": "address",
76
- "name": "",
77
- "type": "address"
78
- }
79
- ],
80
- "stateMutability": "view",
81
- "type": "function"
82
- },
83
- {
84
- "inputs": [
85
- {
86
- "internalType": "string",
87
- "name": "_key",
88
- "type": "string"
89
- },
90
- {
91
- "internalType": "address",
92
- "name": "_address",
93
- "type": "address"
94
- }
95
- ],
96
- "name": "addAttestor",
97
- "outputs": [],
98
- "stateMutability": "nonpayable",
99
- "type": "function"
100
- },
101
- {
102
- "inputs": [],
103
- "name": "claimRewards",
104
- "outputs": [],
105
- "stateMutability": "nonpayable",
106
- "type": "function"
107
- },
108
- {
109
- "inputs": [
110
- {
111
- "internalType": "string",
112
- "name": "_key",
113
- "type": "string"
114
- }
115
- ],
116
- "name": "getAttestor",
117
- "outputs": [
118
- {
119
- "internalType": "address",
120
- "name": "",
121
- "type": "address"
122
- }
123
- ],
124
- "stateMutability": "view",
125
- "type": "function"
126
- },
127
- {
128
- "inputs": [],
129
- "name": "getAttestors",
130
- "outputs": [
131
- {
132
- "internalType": "string[]",
133
- "name": "keys",
134
- "type": "string[]"
135
- },
136
- {
137
- "internalType": "address[]",
138
- "name": "addresses",
139
- "type": "address[]"
140
- }
141
- ],
142
- "stateMutability": "view",
143
- "type": "function"
144
- },
145
- {
146
- "inputs": [],
147
- "name": "minimumStake",
148
- "outputs": [
149
- {
150
- "internalType": "uint256",
151
- "name": "",
152
- "type": "uint256"
153
- }
154
- ],
155
- "stateMutability": "view",
156
- "type": "function"
157
- },
158
- {
159
- "inputs": [],
160
- "name": "owner",
161
- "outputs": [
162
- {
163
- "internalType": "address",
164
- "name": "",
165
- "type": "address"
166
- }
167
- ],
168
- "stateMutability": "view",
169
- "type": "function"
170
- },
171
- {
172
- "inputs": [
173
- {
174
- "internalType": "address",
175
- "name": "",
176
- "type": "address"
177
- }
178
- ],
179
- "name": "pendingRewards",
180
- "outputs": [
181
- {
182
- "internalType": "uint256",
183
- "name": "",
184
- "type": "uint256"
185
- }
186
- ],
187
- "stateMutability": "view",
188
- "type": "function"
189
- },
190
- {
191
- "inputs": [],
192
- "name": "reclaimContractAddress",
193
- "outputs": [
194
- {
195
- "internalType": "address",
196
- "name": "",
197
- "type": "address"
198
- }
199
- ],
200
- "stateMutability": "view",
201
- "type": "function"
202
- },
203
- {
204
- "inputs": [
205
- {
206
- "internalType": "address[]",
207
- "name": "_attestorAddresses",
208
- "type": "address[]"
209
- }
210
- ],
211
- "name": "registerRewards",
212
- "outputs": [],
213
- "stateMutability": "nonpayable",
214
- "type": "function"
215
- },
216
- {
217
- "inputs": [
218
- {
219
- "internalType": "string",
220
- "name": "_key",
221
- "type": "string"
222
- }
223
- ],
224
- "name": "removeAttestor",
225
- "outputs": [],
226
- "stateMutability": "nonpayable",
227
- "type": "function"
228
- },
229
- {
230
- "inputs": [],
231
- "name": "renounceOwnership",
232
- "outputs": [],
233
- "stateMutability": "nonpayable",
234
- "type": "function"
235
- },
236
- {
237
- "inputs": [],
238
- "name": "requestUnstake",
239
- "outputs": [],
240
- "stateMutability": "nonpayable",
241
- "type": "function"
242
- },
243
- {
244
- "inputs": [
245
- {
246
- "internalType": "uint256",
247
- "name": "_minimumStake",
248
- "type": "uint256"
249
- }
250
- ],
251
- "name": "setMinimumStake",
252
- "outputs": [],
253
- "stateMutability": "nonpayable",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "address",
260
- "name": "_reclaimContractAddress",
261
- "type": "address"
262
- }
263
- ],
264
- "name": "setReclaimContractAddress",
265
- "outputs": [],
266
- "stateMutability": "nonpayable",
267
- "type": "function"
268
- },
269
- {
270
- "inputs": [
271
- {
272
- "internalType": "bool",
273
- "name": "_slashingEnabled",
274
- "type": "bool"
275
- }
276
- ],
277
- "name": "setSlashingEnabled",
278
- "outputs": [],
279
- "stateMutability": "nonpayable",
280
- "type": "function"
281
- },
282
- {
283
- "inputs": [
284
- {
285
- "internalType": "uint256",
286
- "name": "_unbondingPeriod",
287
- "type": "uint256"
288
- }
289
- ],
290
- "name": "setUnbondingPeriod",
291
- "outputs": [],
292
- "stateMutability": "nonpayable",
293
- "type": "function"
294
- },
295
- {
296
- "inputs": [
297
- {
298
- "internalType": "uint256",
299
- "name": "_verificationCost",
300
- "type": "uint256"
301
- }
302
- ],
303
- "name": "setVerificationCost",
304
- "outputs": [],
305
- "stateMutability": "nonpayable",
306
- "type": "function"
307
- },
308
- {
309
- "inputs": [
310
- {
311
- "internalType": "uint256",
312
- "name": "_amount",
313
- "type": "uint256"
314
- }
315
- ],
316
- "name": "slash",
317
- "outputs": [],
318
- "stateMutability": "nonpayable",
319
- "type": "function"
320
- },
321
- {
322
- "inputs": [],
323
- "name": "slashingEnabled",
324
- "outputs": [
325
- {
326
- "internalType": "bool",
327
- "name": "",
328
- "type": "bool"
329
- }
330
- ],
331
- "stateMutability": "view",
332
- "type": "function"
333
- },
334
- {
335
- "inputs": [],
336
- "name": "stake",
337
- "outputs": [],
338
- "stateMutability": "payable",
339
- "type": "function"
340
- },
341
- {
342
- "inputs": [
343
- {
344
- "internalType": "address",
345
- "name": "",
346
- "type": "address"
347
- }
348
- ],
349
- "name": "stakedAmounts",
350
- "outputs": [
351
- {
352
- "internalType": "uint256",
353
- "name": "",
354
- "type": "uint256"
355
- }
356
- ],
357
- "stateMutability": "view",
358
- "type": "function"
359
- },
360
- {
361
- "inputs": [],
362
- "name": "totalSlashedAmount",
363
- "outputs": [
364
- {
365
- "internalType": "uint256",
366
- "name": "",
367
- "type": "uint256"
368
- }
369
- ],
370
- "stateMutability": "view",
371
- "type": "function"
372
- },
373
- {
374
- "inputs": [],
375
- "name": "totalStaked",
376
- "outputs": [
377
- {
378
- "internalType": "uint256",
379
- "name": "",
380
- "type": "uint256"
381
- }
382
- ],
383
- "stateMutability": "view",
384
- "type": "function"
385
- },
386
- {
387
- "inputs": [
388
- {
389
- "internalType": "address",
390
- "name": "newOwner",
391
- "type": "address"
392
- }
393
- ],
394
- "name": "transferOwnership",
395
- "outputs": [],
396
- "stateMutability": "nonpayable",
397
- "type": "function"
398
- },
399
- {
400
- "inputs": [],
401
- "name": "unbondingPeriod",
402
- "outputs": [
403
- {
404
- "internalType": "uint256",
405
- "name": "",
406
- "type": "uint256"
407
- }
408
- ],
409
- "stateMutability": "view",
410
- "type": "function"
411
- },
412
- {
413
- "inputs": [],
414
- "name": "unstake",
415
- "outputs": [],
416
- "stateMutability": "nonpayable",
417
- "type": "function"
418
- },
419
- {
420
- "inputs": [
421
- {
422
- "internalType": "address",
423
- "name": "",
424
- "type": "address"
425
- }
426
- ],
427
- "name": "unstakeRequestBlocks",
428
- "outputs": [
429
- {
430
- "internalType": "uint256",
431
- "name": "",
432
- "type": "uint256"
433
- }
434
- ],
435
- "stateMutability": "view",
436
- "type": "function"
437
- },
438
- {
439
- "inputs": [],
440
- "name": "verificationCost",
441
- "outputs": [
442
- {
443
- "internalType": "uint256",
444
- "name": "",
445
- "type": "uint256"
446
- }
447
- ],
448
- "stateMutability": "view",
449
- "type": "function"
450
- },
451
- {
452
- "inputs": [],
453
- "name": "withdraw",
454
- "outputs": [],
455
- "stateMutability": "nonpayable",
456
- "type": "function"
457
- }
458
- ];
459
- export {
460
- governanceABI
461
- };
@@ -1,157 +0,0 @@
1
- export declare const taskABI: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- stateMutability: string;
8
- type: string;
9
- name?: undefined;
10
- anonymous?: undefined;
11
- outputs?: undefined;
12
- } | {
13
- inputs: {
14
- internalType: string;
15
- name: string;
16
- type: string;
17
- }[];
18
- name: string;
19
- type: string;
20
- stateMutability?: undefined;
21
- anonymous?: undefined;
22
- outputs?: undefined;
23
- } | {
24
- anonymous: boolean;
25
- inputs: {
26
- indexed: boolean;
27
- internalType: string;
28
- name: string;
29
- type: string;
30
- }[];
31
- name: string;
32
- type: string;
33
- stateMutability?: undefined;
34
- outputs?: undefined;
35
- } | {
36
- anonymous: boolean;
37
- inputs: {
38
- components: ({
39
- internalType: string;
40
- name: string;
41
- type: string;
42
- components?: undefined;
43
- } | {
44
- components: {
45
- internalType: string;
46
- name: string;
47
- type: string;
48
- }[];
49
- internalType: string;
50
- name: string;
51
- type: string;
52
- })[];
53
- indexed: boolean;
54
- internalType: string;
55
- name: string;
56
- type: string;
57
- }[];
58
- name: string;
59
- type: string;
60
- stateMutability?: undefined;
61
- outputs?: undefined;
62
- } | {
63
- inputs: {
64
- internalType: string;
65
- name: string;
66
- type: string;
67
- }[];
68
- name: string;
69
- outputs: ({
70
- internalType: string;
71
- name: string;
72
- type: string;
73
- components?: undefined;
74
- } | {
75
- components: {
76
- internalType: string;
77
- name: string;
78
- type: string;
79
- }[];
80
- internalType: string;
81
- name: string;
82
- type: string;
83
- })[];
84
- stateMutability: string;
85
- type: string;
86
- anonymous?: undefined;
87
- } | {
88
- inputs: {
89
- internalType: string;
90
- name: string;
91
- type: string;
92
- }[];
93
- name: string;
94
- outputs: {
95
- components: ({
96
- internalType: string;
97
- name: string;
98
- type: string;
99
- components?: undefined;
100
- } | {
101
- components: {
102
- internalType: string;
103
- name: string;
104
- type: string;
105
- }[];
106
- internalType: string;
107
- name: string;
108
- type: string;
109
- })[];
110
- internalType: string;
111
- name: string;
112
- type: string;
113
- }[];
114
- stateMutability: string;
115
- type: string;
116
- anonymous?: undefined;
117
- } | {
118
- inputs: ({
119
- components: {
120
- components: ({
121
- components: {
122
- internalType: string;
123
- name: string;
124
- type: string;
125
- }[];
126
- internalType: string;
127
- name: string;
128
- type: string;
129
- } | {
130
- internalType: string;
131
- name: string;
132
- type: string;
133
- components?: undefined;
134
- })[];
135
- internalType: string;
136
- name: string;
137
- type: string;
138
- }[];
139
- internalType: string;
140
- name: string;
141
- type: string;
142
- } | {
143
- internalType: string;
144
- name: string;
145
- type: string;
146
- components?: undefined;
147
- })[];
148
- name: string;
149
- outputs: {
150
- internalType: string;
151
- name: string;
152
- type: string;
153
- }[];
154
- stateMutability: string;
155
- type: string;
156
- anonymous?: undefined;
157
- })[];