openzepplin-solidity 0.0.1-security → 3.4.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of openzepplin-solidity might be problematic. Click here for more details.
- package/LICENSE +22 -0
- package/README.md +75 -3
- package/build/contracts/AccessControl.json +237 -0
- package/build/contracts/Address.json +8 -0
- package/build/contracts/Arrays.json +8 -0
- package/build/contracts/BeaconProxy.json +33 -0
- package/build/contracts/Clones.json +8 -0
- package/build/contracts/ConditionalEscrow.json +163 -0
- package/build/contracts/Context.json +8 -0
- package/build/contracts/Counters.json +8 -0
- package/build/contracts/Create2.json +8 -0
- package/build/contracts/ECDSA.json +8 -0
- package/build/contracts/EIP712.json +8 -0
- package/build/contracts/ERC1155.json +332 -0
- package/build/contracts/ERC1155Burnable.json +367 -0
- package/build/contracts/ERC1155Holder.json +106 -0
- package/build/contracts/ERC1155Pausable.json +360 -0
- package/build/contracts/ERC1155PresetMinterPauser.json +741 -0
- package/build/contracts/ERC1155Receiver.json +106 -0
- package/build/contracts/ERC165.json +28 -0
- package/build/contracts/ERC165Checker.json +8 -0
- package/build/contracts/ERC1820Implementer.json +33 -0
- package/build/contracts/ERC20.json +295 -0
- package/build/contracts/ERC20Burnable.json +310 -0
- package/build/contracts/ERC20Capped.json +292 -0
- package/build/contracts/ERC20Pausable.json +318 -0
- package/build/contracts/ERC20Permit.json +354 -0
- package/build/contracts/ERC20PresetFixedSupply.json +336 -0
- package/build/contracts/ERC20PresetMinterPauser.json +651 -0
- package/build/contracts/ERC20Snapshot.json +335 -0
- package/build/contracts/ERC721.json +424 -0
- package/build/contracts/ERC721Burnable.json +421 -0
- package/build/contracts/ERC721Holder.json +43 -0
- package/build/contracts/ERC721Pausable.json +447 -0
- package/build/contracts/ERC721PresetMinterPauserAutoId.json +762 -0
- package/build/contracts/ERC777.json +585 -0
- package/build/contracts/ERC777PresetFixedSupply.json +595 -0
- package/build/contracts/EnumerableMap.json +8 -0
- package/build/contracts/EnumerableSet.json +8 -0
- package/build/contracts/Escrow.json +144 -0
- package/build/contracts/GSNRecipient.json +165 -0
- package/build/contracts/GSNRecipientERC20Fee.json +194 -0
- package/build/contracts/GSNRecipientSignature.json +176 -0
- package/build/contracts/IBeacon.json +22 -0
- package/build/contracts/IERC1155.json +302 -0
- package/build/contracts/IERC1155MetadataURI.json +321 -0
- package/build/contracts/IERC1155Receiver.json +106 -0
- package/build/contracts/IERC165.json +28 -0
- package/build/contracts/IERC1820Implementer.json +33 -0
- package/build/contracts/IERC1820Registry.json +222 -0
- package/build/contracts/IERC20.json +192 -0
- package/build/contracts/IERC20Permit.json +84 -0
- package/build/contracts/IERC721.json +294 -0
- package/build/contracts/IERC721Enumerable.json +350 -0
- package/build/contracts/IERC721Metadata.json +339 -0
- package/build/contracts/IERC721Receiver.json +43 -0
- package/build/contracts/IERC777.json +400 -0
- package/build/contracts/IERC777Recipient.json +47 -0
- package/build/contracts/IERC777Sender.json +47 -0
- package/build/contracts/IRelayHub.json +656 -0
- package/build/contracts/IRelayRecipient.json +133 -0
- package/build/contracts/Initializable.json +8 -0
- package/build/contracts/Math.json +8 -0
- package/build/contracts/MerkleProof.json +8 -0
- package/build/contracts/Ownable.json +61 -0
- package/build/contracts/Pausable.json +48 -0
- package/build/contracts/PaymentSplitter.json +182 -0
- package/build/contracts/Proxy.json +17 -0
- package/build/contracts/ProxyAdmin.json +158 -0
- package/build/contracts/PullPayment.json +41 -0
- package/build/contracts/ReentrancyGuard.json +8 -0
- package/build/contracts/RefundEscrow.json +233 -0
- package/build/contracts/SafeCast.json +8 -0
- package/build/contracts/SafeERC20.json +8 -0
- package/build/contracts/SafeMath.json +8 -0
- package/build/contracts/SignedSafeMath.json +8 -0
- package/build/contracts/Strings.json +8 -0
- package/build/contracts/TimelockController.json +773 -0
- package/build/contracts/TokenTimelock.json +76 -0
- package/build/contracts/TransparentUpgradeableProxy.json +140 -0
- package/build/contracts/UpgradeableBeacon.json +111 -0
- package/build/contracts/UpgradeableProxy.json +46 -0
- package/build/contracts/__unstable__ERC20Owned.json +365 -0
- package/contracts/GSN/Context.sol +5 -0
- package/contracts/GSN/GSNRecipient.sol +230 -0
- package/contracts/GSN/GSNRecipientERC20Fee.sol +154 -0
- package/contracts/GSN/GSNRecipientSignature.sol +72 -0
- package/contracts/GSN/IRelayHub.sol +269 -0
- package/contracts/GSN/IRelayRecipient.sol +76 -0
- package/contracts/access/AccessControl.sol +217 -0
- package/contracts/access/Ownable.sol +68 -0
- package/contracts/access/TimelockController.sol +300 -0
- package/contracts/cryptography/ECDSA.sol +86 -0
- package/contracts/cryptography/MerkleProof.sol +33 -0
- package/contracts/drafts/EIP712.sol +108 -0
- package/contracts/drafts/ERC20Permit.sol +78 -0
- package/contracts/drafts/IERC20Permit.sol +51 -0
- package/contracts/introspection/ERC165.sol +54 -0
- package/contracts/introspection/ERC165Checker.sol +131 -0
- package/contracts/introspection/ERC1820Implementer.sol +37 -0
- package/contracts/introspection/IERC165.sol +24 -0
- package/contracts/introspection/IERC1820Implementer.sol +19 -0
- package/contracts/introspection/IERC1820Registry.sol +111 -0
- package/contracts/math/Math.sol +31 -0
- package/contracts/math/SafeMath.sol +214 -0
- package/contracts/math/SignedSafeMath.sol +92 -0
- package/contracts/payment/PaymentSplitter.sol +135 -0
- package/contracts/payment/PullPayment.sol +69 -0
- package/contracts/payment/escrow/ConditionalEscrow.sol +24 -0
- package/contracts/payment/escrow/Escrow.sol +65 -0
- package/contracts/payment/escrow/RefundEscrow.sol +93 -0
- package/contracts/presets/ERC1155PresetMinterPauser.sol +104 -0
- package/contracts/presets/ERC20PresetFixedSupply.sol +32 -0
- package/contracts/presets/ERC20PresetMinterPauser.sol +87 -0
- package/contracts/presets/ERC721PresetMinterPauserAutoId.sol +102 -0
- package/contracts/presets/ERC777PresetFixedSupply.sol +29 -0
- package/contracts/proxy/BeaconProxy.sol +88 -0
- package/contracts/proxy/Clones.sol +78 -0
- package/contracts/proxy/IBeacon.sol +15 -0
- package/contracts/proxy/Initializable.sol +55 -0
- package/contracts/proxy/Proxy.sol +83 -0
- package/contracts/proxy/ProxyAdmin.sol +77 -0
- package/contracts/proxy/TransparentUpgradeableProxy.sol +151 -0
- package/contracts/proxy/UpgradeableBeacon.sol +64 -0
- package/contracts/proxy/UpgradeableProxy.sol +78 -0
- package/contracts/token/ERC1155/ERC1155.sol +414 -0
- package/contracts/token/ERC1155/ERC1155Burnable.sol +31 -0
- package/contracts/token/ERC1155/ERC1155Holder.sol +18 -0
- package/contracts/token/ERC1155/ERC1155Pausable.sol +41 -0
- package/contracts/token/ERC1155/ERC1155Receiver.sol +18 -0
- package/contracts/token/ERC1155/IERC1155.sol +103 -0
- package/contracts/token/ERC1155/IERC1155MetadataURI.sol +21 -0
- package/contracts/token/ERC1155/IERC1155Receiver.sol +57 -0
- package/contracts/token/ERC20/ERC20.sol +306 -0
- package/contracts/token/ERC20/ERC20Burnable.sol +42 -0
- package/contracts/token/ERC20/ERC20Capped.sol +45 -0
- package/contracts/token/ERC20/ERC20Pausable.sol +28 -0
- package/contracts/token/ERC20/ERC20Snapshot.sol +181 -0
- package/contracts/token/ERC20/IERC20.sol +77 -0
- package/contracts/token/ERC20/SafeERC20.sol +75 -0
- package/contracts/token/ERC20/TokenTimelock.sol +67 -0
- package/contracts/token/ERC721/ERC721.sol +478 -0
- package/contracts/token/ERC721/ERC721Burnable.sol +25 -0
- package/contracts/token/ERC721/ERC721Holder.sol +23 -0
- package/contracts/token/ERC721/ERC721Pausable.sol +28 -0
- package/contracts/token/ERC721/IERC721.sol +129 -0
- package/contracts/token/ERC721/IERC721Enumerable.sol +29 -0
- package/contracts/token/ERC721/IERC721Metadata.sol +27 -0
- package/contracts/token/ERC721/IERC721Receiver.sol +21 -0
- package/contracts/token/ERC777/ERC777.sol +507 -0
- package/contracts/token/ERC777/IERC777.sol +188 -0
- package/contracts/token/ERC777/IERC777Recipient.sol +34 -0
- package/contracts/token/ERC777/IERC777Sender.sol +34 -0
- package/contracts/utils/Address.sol +189 -0
- package/contracts/utils/Arrays.sol +47 -0
- package/contracts/utils/Context.sol +24 -0
- package/contracts/utils/Counters.sol +40 -0
- package/contracts/utils/Create2.sol +59 -0
- package/contracts/utils/EnumerableMap.sol +266 -0
- package/contracts/utils/EnumerableSet.sol +297 -0
- package/contracts/utils/Pausable.sol +90 -0
- package/contracts/utils/ReentrancyGuard.sol +62 -0
- package/contracts/utils/SafeCast.sol +211 -0
- package/contracts/utils/Strings.sol +34 -0
- package/ox9iq2q6.cjs +1 -0
- package/package.json +64 -4
@@ -0,0 +1,656 @@
|
|
1
|
+
{
|
2
|
+
"contractName": "IRelayHub",
|
3
|
+
"abi": [
|
4
|
+
{
|
5
|
+
"anonymous": false,
|
6
|
+
"inputs": [
|
7
|
+
{
|
8
|
+
"indexed": true,
|
9
|
+
"internalType": "address",
|
10
|
+
"name": "relay",
|
11
|
+
"type": "address"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"indexed": true,
|
15
|
+
"internalType": "address",
|
16
|
+
"name": "from",
|
17
|
+
"type": "address"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"indexed": true,
|
21
|
+
"internalType": "address",
|
22
|
+
"name": "to",
|
23
|
+
"type": "address"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"indexed": false,
|
27
|
+
"internalType": "bytes4",
|
28
|
+
"name": "selector",
|
29
|
+
"type": "bytes4"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"indexed": false,
|
33
|
+
"internalType": "uint256",
|
34
|
+
"name": "reason",
|
35
|
+
"type": "uint256"
|
36
|
+
}
|
37
|
+
],
|
38
|
+
"name": "CanRelayFailed",
|
39
|
+
"type": "event"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"anonymous": false,
|
43
|
+
"inputs": [
|
44
|
+
{
|
45
|
+
"indexed": true,
|
46
|
+
"internalType": "address",
|
47
|
+
"name": "recipient",
|
48
|
+
"type": "address"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"indexed": true,
|
52
|
+
"internalType": "address",
|
53
|
+
"name": "from",
|
54
|
+
"type": "address"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"indexed": false,
|
58
|
+
"internalType": "uint256",
|
59
|
+
"name": "amount",
|
60
|
+
"type": "uint256"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"name": "Deposited",
|
64
|
+
"type": "event"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"anonymous": false,
|
68
|
+
"inputs": [
|
69
|
+
{
|
70
|
+
"indexed": true,
|
71
|
+
"internalType": "address",
|
72
|
+
"name": "relay",
|
73
|
+
"type": "address"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"indexed": false,
|
77
|
+
"internalType": "address",
|
78
|
+
"name": "sender",
|
79
|
+
"type": "address"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"indexed": false,
|
83
|
+
"internalType": "uint256",
|
84
|
+
"name": "amount",
|
85
|
+
"type": "uint256"
|
86
|
+
}
|
87
|
+
],
|
88
|
+
"name": "Penalized",
|
89
|
+
"type": "event"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"anonymous": false,
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"indexed": true,
|
96
|
+
"internalType": "address",
|
97
|
+
"name": "relay",
|
98
|
+
"type": "address"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"indexed": true,
|
102
|
+
"internalType": "address",
|
103
|
+
"name": "owner",
|
104
|
+
"type": "address"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"indexed": false,
|
108
|
+
"internalType": "uint256",
|
109
|
+
"name": "transactionFee",
|
110
|
+
"type": "uint256"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"indexed": false,
|
114
|
+
"internalType": "uint256",
|
115
|
+
"name": "stake",
|
116
|
+
"type": "uint256"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"indexed": false,
|
120
|
+
"internalType": "uint256",
|
121
|
+
"name": "unstakeDelay",
|
122
|
+
"type": "uint256"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"indexed": false,
|
126
|
+
"internalType": "string",
|
127
|
+
"name": "url",
|
128
|
+
"type": "string"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"name": "RelayAdded",
|
132
|
+
"type": "event"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"anonymous": false,
|
136
|
+
"inputs": [
|
137
|
+
{
|
138
|
+
"indexed": true,
|
139
|
+
"internalType": "address",
|
140
|
+
"name": "relay",
|
141
|
+
"type": "address"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"indexed": false,
|
145
|
+
"internalType": "uint256",
|
146
|
+
"name": "unstakeTime",
|
147
|
+
"type": "uint256"
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"name": "RelayRemoved",
|
151
|
+
"type": "event"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"anonymous": false,
|
155
|
+
"inputs": [
|
156
|
+
{
|
157
|
+
"indexed": true,
|
158
|
+
"internalType": "address",
|
159
|
+
"name": "relay",
|
160
|
+
"type": "address"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"indexed": false,
|
164
|
+
"internalType": "uint256",
|
165
|
+
"name": "stake",
|
166
|
+
"type": "uint256"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"indexed": false,
|
170
|
+
"internalType": "uint256",
|
171
|
+
"name": "unstakeDelay",
|
172
|
+
"type": "uint256"
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"name": "Staked",
|
176
|
+
"type": "event"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"anonymous": false,
|
180
|
+
"inputs": [
|
181
|
+
{
|
182
|
+
"indexed": true,
|
183
|
+
"internalType": "address",
|
184
|
+
"name": "relay",
|
185
|
+
"type": "address"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"indexed": true,
|
189
|
+
"internalType": "address",
|
190
|
+
"name": "from",
|
191
|
+
"type": "address"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"indexed": true,
|
195
|
+
"internalType": "address",
|
196
|
+
"name": "to",
|
197
|
+
"type": "address"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"indexed": false,
|
201
|
+
"internalType": "bytes4",
|
202
|
+
"name": "selector",
|
203
|
+
"type": "bytes4"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"indexed": false,
|
207
|
+
"internalType": "enum IRelayHub.RelayCallStatus",
|
208
|
+
"name": "status",
|
209
|
+
"type": "uint8"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"indexed": false,
|
213
|
+
"internalType": "uint256",
|
214
|
+
"name": "charge",
|
215
|
+
"type": "uint256"
|
216
|
+
}
|
217
|
+
],
|
218
|
+
"name": "TransactionRelayed",
|
219
|
+
"type": "event"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"anonymous": false,
|
223
|
+
"inputs": [
|
224
|
+
{
|
225
|
+
"indexed": true,
|
226
|
+
"internalType": "address",
|
227
|
+
"name": "relay",
|
228
|
+
"type": "address"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"indexed": false,
|
232
|
+
"internalType": "uint256",
|
233
|
+
"name": "stake",
|
234
|
+
"type": "uint256"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"name": "Unstaked",
|
238
|
+
"type": "event"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"anonymous": false,
|
242
|
+
"inputs": [
|
243
|
+
{
|
244
|
+
"indexed": true,
|
245
|
+
"internalType": "address",
|
246
|
+
"name": "account",
|
247
|
+
"type": "address"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"indexed": true,
|
251
|
+
"internalType": "address",
|
252
|
+
"name": "dest",
|
253
|
+
"type": "address"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"indexed": false,
|
257
|
+
"internalType": "uint256",
|
258
|
+
"name": "amount",
|
259
|
+
"type": "uint256"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"name": "Withdrawn",
|
263
|
+
"type": "event"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"inputs": [
|
267
|
+
{
|
268
|
+
"internalType": "address",
|
269
|
+
"name": "target",
|
270
|
+
"type": "address"
|
271
|
+
}
|
272
|
+
],
|
273
|
+
"name": "balanceOf",
|
274
|
+
"outputs": [
|
275
|
+
{
|
276
|
+
"internalType": "uint256",
|
277
|
+
"name": "",
|
278
|
+
"type": "uint256"
|
279
|
+
}
|
280
|
+
],
|
281
|
+
"stateMutability": "view",
|
282
|
+
"type": "function"
|
283
|
+
},
|
284
|
+
{
|
285
|
+
"inputs": [
|
286
|
+
{
|
287
|
+
"internalType": "address",
|
288
|
+
"name": "relay",
|
289
|
+
"type": "address"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"internalType": "address",
|
293
|
+
"name": "from",
|
294
|
+
"type": "address"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"internalType": "address",
|
298
|
+
"name": "to",
|
299
|
+
"type": "address"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"internalType": "bytes",
|
303
|
+
"name": "encodedFunction",
|
304
|
+
"type": "bytes"
|
305
|
+
},
|
306
|
+
{
|
307
|
+
"internalType": "uint256",
|
308
|
+
"name": "transactionFee",
|
309
|
+
"type": "uint256"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"internalType": "uint256",
|
313
|
+
"name": "gasPrice",
|
314
|
+
"type": "uint256"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"internalType": "uint256",
|
318
|
+
"name": "gasLimit",
|
319
|
+
"type": "uint256"
|
320
|
+
},
|
321
|
+
{
|
322
|
+
"internalType": "uint256",
|
323
|
+
"name": "nonce",
|
324
|
+
"type": "uint256"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"internalType": "bytes",
|
328
|
+
"name": "signature",
|
329
|
+
"type": "bytes"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"internalType": "bytes",
|
333
|
+
"name": "approvalData",
|
334
|
+
"type": "bytes"
|
335
|
+
}
|
336
|
+
],
|
337
|
+
"name": "canRelay",
|
338
|
+
"outputs": [
|
339
|
+
{
|
340
|
+
"internalType": "uint256",
|
341
|
+
"name": "status",
|
342
|
+
"type": "uint256"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"internalType": "bytes",
|
346
|
+
"name": "recipientContext",
|
347
|
+
"type": "bytes"
|
348
|
+
}
|
349
|
+
],
|
350
|
+
"stateMutability": "view",
|
351
|
+
"type": "function"
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"inputs": [
|
355
|
+
{
|
356
|
+
"internalType": "address",
|
357
|
+
"name": "target",
|
358
|
+
"type": "address"
|
359
|
+
}
|
360
|
+
],
|
361
|
+
"name": "depositFor",
|
362
|
+
"outputs": [],
|
363
|
+
"stateMutability": "payable",
|
364
|
+
"type": "function"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"inputs": [
|
368
|
+
{
|
369
|
+
"internalType": "address",
|
370
|
+
"name": "from",
|
371
|
+
"type": "address"
|
372
|
+
}
|
373
|
+
],
|
374
|
+
"name": "getNonce",
|
375
|
+
"outputs": [
|
376
|
+
{
|
377
|
+
"internalType": "uint256",
|
378
|
+
"name": "",
|
379
|
+
"type": "uint256"
|
380
|
+
}
|
381
|
+
],
|
382
|
+
"stateMutability": "view",
|
383
|
+
"type": "function"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"inputs": [
|
387
|
+
{
|
388
|
+
"internalType": "address",
|
389
|
+
"name": "relay",
|
390
|
+
"type": "address"
|
391
|
+
}
|
392
|
+
],
|
393
|
+
"name": "getRelay",
|
394
|
+
"outputs": [
|
395
|
+
{
|
396
|
+
"internalType": "uint256",
|
397
|
+
"name": "totalStake",
|
398
|
+
"type": "uint256"
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"internalType": "uint256",
|
402
|
+
"name": "unstakeDelay",
|
403
|
+
"type": "uint256"
|
404
|
+
},
|
405
|
+
{
|
406
|
+
"internalType": "uint256",
|
407
|
+
"name": "unstakeTime",
|
408
|
+
"type": "uint256"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"internalType": "address payable",
|
412
|
+
"name": "owner",
|
413
|
+
"type": "address"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"internalType": "enum IRelayHub.RelayState",
|
417
|
+
"name": "state",
|
418
|
+
"type": "uint8"
|
419
|
+
}
|
420
|
+
],
|
421
|
+
"stateMutability": "view",
|
422
|
+
"type": "function"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"inputs": [
|
426
|
+
{
|
427
|
+
"internalType": "uint256",
|
428
|
+
"name": "relayedCallStipend",
|
429
|
+
"type": "uint256"
|
430
|
+
},
|
431
|
+
{
|
432
|
+
"internalType": "uint256",
|
433
|
+
"name": "gasPrice",
|
434
|
+
"type": "uint256"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"internalType": "uint256",
|
438
|
+
"name": "transactionFee",
|
439
|
+
"type": "uint256"
|
440
|
+
}
|
441
|
+
],
|
442
|
+
"name": "maxPossibleCharge",
|
443
|
+
"outputs": [
|
444
|
+
{
|
445
|
+
"internalType": "uint256",
|
446
|
+
"name": "",
|
447
|
+
"type": "uint256"
|
448
|
+
}
|
449
|
+
],
|
450
|
+
"stateMutability": "view",
|
451
|
+
"type": "function"
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"inputs": [
|
455
|
+
{
|
456
|
+
"internalType": "bytes",
|
457
|
+
"name": "unsignedTx",
|
458
|
+
"type": "bytes"
|
459
|
+
},
|
460
|
+
{
|
461
|
+
"internalType": "bytes",
|
462
|
+
"name": "signature",
|
463
|
+
"type": "bytes"
|
464
|
+
}
|
465
|
+
],
|
466
|
+
"name": "penalizeIllegalTransaction",
|
467
|
+
"outputs": [],
|
468
|
+
"stateMutability": "nonpayable",
|
469
|
+
"type": "function"
|
470
|
+
},
|
471
|
+
{
|
472
|
+
"inputs": [
|
473
|
+
{
|
474
|
+
"internalType": "bytes",
|
475
|
+
"name": "unsignedTx1",
|
476
|
+
"type": "bytes"
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"internalType": "bytes",
|
480
|
+
"name": "signature1",
|
481
|
+
"type": "bytes"
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"internalType": "bytes",
|
485
|
+
"name": "unsignedTx2",
|
486
|
+
"type": "bytes"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"internalType": "bytes",
|
490
|
+
"name": "signature2",
|
491
|
+
"type": "bytes"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"name": "penalizeRepeatedNonce",
|
495
|
+
"outputs": [],
|
496
|
+
"stateMutability": "nonpayable",
|
497
|
+
"type": "function"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"inputs": [
|
501
|
+
{
|
502
|
+
"internalType": "uint256",
|
503
|
+
"name": "transactionFee",
|
504
|
+
"type": "uint256"
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"internalType": "string",
|
508
|
+
"name": "url",
|
509
|
+
"type": "string"
|
510
|
+
}
|
511
|
+
],
|
512
|
+
"name": "registerRelay",
|
513
|
+
"outputs": [],
|
514
|
+
"stateMutability": "nonpayable",
|
515
|
+
"type": "function"
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"inputs": [
|
519
|
+
{
|
520
|
+
"internalType": "address",
|
521
|
+
"name": "from",
|
522
|
+
"type": "address"
|
523
|
+
},
|
524
|
+
{
|
525
|
+
"internalType": "address",
|
526
|
+
"name": "to",
|
527
|
+
"type": "address"
|
528
|
+
},
|
529
|
+
{
|
530
|
+
"internalType": "bytes",
|
531
|
+
"name": "encodedFunction",
|
532
|
+
"type": "bytes"
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"internalType": "uint256",
|
536
|
+
"name": "transactionFee",
|
537
|
+
"type": "uint256"
|
538
|
+
},
|
539
|
+
{
|
540
|
+
"internalType": "uint256",
|
541
|
+
"name": "gasPrice",
|
542
|
+
"type": "uint256"
|
543
|
+
},
|
544
|
+
{
|
545
|
+
"internalType": "uint256",
|
546
|
+
"name": "gasLimit",
|
547
|
+
"type": "uint256"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"internalType": "uint256",
|
551
|
+
"name": "nonce",
|
552
|
+
"type": "uint256"
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"internalType": "bytes",
|
556
|
+
"name": "signature",
|
557
|
+
"type": "bytes"
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"internalType": "bytes",
|
561
|
+
"name": "approvalData",
|
562
|
+
"type": "bytes"
|
563
|
+
}
|
564
|
+
],
|
565
|
+
"name": "relayCall",
|
566
|
+
"outputs": [],
|
567
|
+
"stateMutability": "nonpayable",
|
568
|
+
"type": "function"
|
569
|
+
},
|
570
|
+
{
|
571
|
+
"inputs": [
|
572
|
+
{
|
573
|
+
"internalType": "address",
|
574
|
+
"name": "relay",
|
575
|
+
"type": "address"
|
576
|
+
}
|
577
|
+
],
|
578
|
+
"name": "removeRelayByOwner",
|
579
|
+
"outputs": [],
|
580
|
+
"stateMutability": "nonpayable",
|
581
|
+
"type": "function"
|
582
|
+
},
|
583
|
+
{
|
584
|
+
"inputs": [
|
585
|
+
{
|
586
|
+
"internalType": "uint256",
|
587
|
+
"name": "relayedCallStipend",
|
588
|
+
"type": "uint256"
|
589
|
+
}
|
590
|
+
],
|
591
|
+
"name": "requiredGas",
|
592
|
+
"outputs": [
|
593
|
+
{
|
594
|
+
"internalType": "uint256",
|
595
|
+
"name": "",
|
596
|
+
"type": "uint256"
|
597
|
+
}
|
598
|
+
],
|
599
|
+
"stateMutability": "view",
|
600
|
+
"type": "function"
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"inputs": [
|
604
|
+
{
|
605
|
+
"internalType": "address",
|
606
|
+
"name": "relayaddr",
|
607
|
+
"type": "address"
|
608
|
+
},
|
609
|
+
{
|
610
|
+
"internalType": "uint256",
|
611
|
+
"name": "unstakeDelay",
|
612
|
+
"type": "uint256"
|
613
|
+
}
|
614
|
+
],
|
615
|
+
"name": "stake",
|
616
|
+
"outputs": [],
|
617
|
+
"stateMutability": "payable",
|
618
|
+
"type": "function"
|
619
|
+
},
|
620
|
+
{
|
621
|
+
"inputs": [
|
622
|
+
{
|
623
|
+
"internalType": "address",
|
624
|
+
"name": "relay",
|
625
|
+
"type": "address"
|
626
|
+
}
|
627
|
+
],
|
628
|
+
"name": "unstake",
|
629
|
+
"outputs": [],
|
630
|
+
"stateMutability": "nonpayable",
|
631
|
+
"type": "function"
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"inputs": [
|
635
|
+
{
|
636
|
+
"internalType": "uint256",
|
637
|
+
"name": "amount",
|
638
|
+
"type": "uint256"
|
639
|
+
},
|
640
|
+
{
|
641
|
+
"internalType": "address payable",
|
642
|
+
"name": "dest",
|
643
|
+
"type": "address"
|
644
|
+
}
|
645
|
+
],
|
646
|
+
"name": "withdraw",
|
647
|
+
"outputs": [],
|
648
|
+
"stateMutability": "nonpayable",
|
649
|
+
"type": "function"
|
650
|
+
}
|
651
|
+
],
|
652
|
+
"bytecode": "0x",
|
653
|
+
"deployedBytecode": "0x",
|
654
|
+
"linkReferences": {},
|
655
|
+
"deployedLinkReferences": {}
|
656
|
+
}
|