@keep-network/tbtc-v2 0.1.0 → 0.1.1-dev.3

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/export.json CHANGED
@@ -1,19 +1,12 @@
1
1
  {
2
- "name": "mainnet",
3
- "chainId": "1",
2
+ "name": "hardhat",
3
+ "chainId": "31337",
4
4
  "contracts": {
5
5
  "TBTCToken": {
6
- "address": "0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa",
6
+ "address": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
7
7
  "abi": [
8
8
  {
9
- "inputs": [
10
- {
11
- "internalType": "address",
12
- "name": "_VendingMachine",
13
- "type": "address"
14
- }
15
- ],
16
- "payable": false,
9
+ "inputs": [],
17
10
  "stateMutability": "nonpayable",
18
11
  "type": "constructor"
19
12
  },
@@ -42,6 +35,25 @@
42
35
  "name": "Approval",
43
36
  "type": "event"
44
37
  },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "address",
44
+ "name": "previousOwner",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "newOwner",
51
+ "type": "address"
52
+ }
53
+ ],
54
+ "name": "OwnershipTransferred",
55
+ "type": "event"
56
+ },
45
57
  {
46
58
  "anonymous": false,
47
59
  "inputs": [
@@ -68,16 +80,67 @@
68
80
  "type": "event"
69
81
  },
70
82
  {
71
- "constant": true,
83
+ "inputs": [],
84
+ "name": "DOMAIN_SEPARATOR",
85
+ "outputs": [
86
+ {
87
+ "internalType": "bytes32",
88
+ "name": "",
89
+ "type": "bytes32"
90
+ }
91
+ ],
92
+ "stateMutability": "view",
93
+ "type": "function"
94
+ },
95
+ {
96
+ "inputs": [],
97
+ "name": "NAME",
98
+ "outputs": [
99
+ {
100
+ "internalType": "string",
101
+ "name": "",
102
+ "type": "string"
103
+ }
104
+ ],
105
+ "stateMutability": "view",
106
+ "type": "function"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "PERMIT_TYPEHASH",
111
+ "outputs": [
112
+ {
113
+ "internalType": "bytes32",
114
+ "name": "",
115
+ "type": "bytes32"
116
+ }
117
+ ],
118
+ "stateMutability": "view",
119
+ "type": "function"
120
+ },
121
+ {
122
+ "inputs": [],
123
+ "name": "SYMBOL",
124
+ "outputs": [
125
+ {
126
+ "internalType": "string",
127
+ "name": "",
128
+ "type": "string"
129
+ }
130
+ ],
131
+ "stateMutability": "view",
132
+ "type": "function"
133
+ },
134
+ {
72
135
  "inputs": [
73
136
  {
74
137
  "internalType": "address",
75
- "name": "owner",
138
+ "name": "",
76
139
  "type": "address"
77
140
  },
78
141
  {
79
142
  "internalType": "address",
80
- "name": "spender",
143
+ "name": "",
81
144
  "type": "address"
82
145
  }
83
146
  ],
@@ -89,12 +152,10 @@
89
152
  "type": "uint256"
90
153
  }
91
154
  ],
92
- "payable": false,
93
155
  "stateMutability": "view",
94
156
  "type": "function"
95
157
  },
96
158
  {
97
- "constant": false,
98
159
  "inputs": [
99
160
  {
100
161
  "internalType": "address",
@@ -103,7 +164,7 @@
103
164
  },
104
165
  {
105
166
  "internalType": "uint256",
106
- "name": "value",
167
+ "name": "amount",
107
168
  "type": "uint256"
108
169
  }
109
170
  ],
@@ -115,26 +176,24 @@
115
176
  "type": "bool"
116
177
  }
117
178
  ],
118
- "payable": false,
119
179
  "stateMutability": "nonpayable",
120
180
  "type": "function"
121
181
  },
122
182
  {
123
- "constant": false,
124
183
  "inputs": [
125
184
  {
126
- "internalType": "contract ITokenRecipient",
127
- "name": "_spender",
185
+ "internalType": "address",
186
+ "name": "spender",
128
187
  "type": "address"
129
188
  },
130
189
  {
131
190
  "internalType": "uint256",
132
- "name": "_value",
191
+ "name": "amount",
133
192
  "type": "uint256"
134
193
  },
135
194
  {
136
195
  "internalType": "bytes",
137
- "name": "_extraData",
196
+ "name": "extraData",
138
197
  "type": "bytes"
139
198
  }
140
199
  ],
@@ -146,16 +205,14 @@
146
205
  "type": "bool"
147
206
  }
148
207
  ],
149
- "payable": false,
150
208
  "stateMutability": "nonpayable",
151
209
  "type": "function"
152
210
  },
153
211
  {
154
- "constant": true,
155
212
  "inputs": [
156
213
  {
157
214
  "internalType": "address",
158
- "name": "account",
215
+ "name": "",
159
216
  "type": "address"
160
217
  }
161
218
  ],
@@ -167,47 +224,67 @@
167
224
  "type": "uint256"
168
225
  }
169
226
  ],
170
- "payable": false,
171
227
  "stateMutability": "view",
172
228
  "type": "function"
173
229
  },
174
230
  {
175
- "constant": false,
176
231
  "inputs": [
177
232
  {
178
233
  "internalType": "uint256",
179
- "name": "_amount",
234
+ "name": "amount",
180
235
  "type": "uint256"
181
236
  }
182
237
  ],
183
238
  "name": "burn",
184
239
  "outputs": [],
185
- "payable": false,
186
240
  "stateMutability": "nonpayable",
187
241
  "type": "function"
188
242
  },
189
243
  {
190
- "constant": false,
191
244
  "inputs": [
192
245
  {
193
246
  "internalType": "address",
194
- "name": "_account",
247
+ "name": "account",
195
248
  "type": "address"
196
249
  },
197
250
  {
198
251
  "internalType": "uint256",
199
- "name": "_amount",
252
+ "name": "amount",
200
253
  "type": "uint256"
201
254
  }
202
255
  ],
203
256
  "name": "burnFrom",
204
257
  "outputs": [],
205
- "payable": false,
206
258
  "stateMutability": "nonpayable",
207
259
  "type": "function"
208
260
  },
209
261
  {
210
- "constant": true,
262
+ "inputs": [],
263
+ "name": "cachedChainId",
264
+ "outputs": [
265
+ {
266
+ "internalType": "uint256",
267
+ "name": "",
268
+ "type": "uint256"
269
+ }
270
+ ],
271
+ "stateMutability": "view",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [],
276
+ "name": "cachedDomainSeparator",
277
+ "outputs": [
278
+ {
279
+ "internalType": "bytes32",
280
+ "name": "",
281
+ "type": "bytes32"
282
+ }
283
+ ],
284
+ "stateMutability": "view",
285
+ "type": "function"
286
+ },
287
+ {
211
288
  "inputs": [],
212
289
  "name": "decimals",
213
290
  "outputs": [
@@ -217,105 +294,123 @@
217
294
  "type": "uint8"
218
295
  }
219
296
  ],
220
- "payable": false,
221
297
  "stateMutability": "view",
222
298
  "type": "function"
223
299
  },
224
300
  {
225
- "constant": false,
226
301
  "inputs": [
227
302
  {
228
303
  "internalType": "address",
229
- "name": "spender",
304
+ "name": "recipient",
230
305
  "type": "address"
231
306
  },
232
307
  {
233
308
  "internalType": "uint256",
234
- "name": "subtractedValue",
309
+ "name": "amount",
235
310
  "type": "uint256"
236
311
  }
237
312
  ],
238
- "name": "decreaseAllowance",
313
+ "name": "mint",
314
+ "outputs": [],
315
+ "stateMutability": "nonpayable",
316
+ "type": "function"
317
+ },
318
+ {
319
+ "inputs": [],
320
+ "name": "name",
239
321
  "outputs": [
240
322
  {
241
- "internalType": "bool",
323
+ "internalType": "string",
242
324
  "name": "",
243
- "type": "bool"
325
+ "type": "string"
244
326
  }
245
327
  ],
246
- "payable": false,
247
- "stateMutability": "nonpayable",
328
+ "stateMutability": "view",
248
329
  "type": "function"
249
330
  },
250
331
  {
251
- "constant": false,
252
332
  "inputs": [
253
333
  {
254
334
  "internalType": "address",
255
- "name": "spender",
335
+ "name": "",
256
336
  "type": "address"
257
- },
337
+ }
338
+ ],
339
+ "name": "nonce",
340
+ "outputs": [
258
341
  {
259
342
  "internalType": "uint256",
260
- "name": "addedValue",
343
+ "name": "",
261
344
  "type": "uint256"
262
345
  }
263
346
  ],
264
- "name": "increaseAllowance",
347
+ "stateMutability": "view",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [],
352
+ "name": "owner",
265
353
  "outputs": [
266
354
  {
267
- "internalType": "bool",
355
+ "internalType": "address",
268
356
  "name": "",
269
- "type": "bool"
357
+ "type": "address"
270
358
  }
271
359
  ],
272
- "payable": false,
273
- "stateMutability": "nonpayable",
360
+ "stateMutability": "view",
274
361
  "type": "function"
275
362
  },
276
363
  {
277
- "constant": false,
278
364
  "inputs": [
279
365
  {
280
366
  "internalType": "address",
281
- "name": "_account",
367
+ "name": "owner",
368
+ "type": "address"
369
+ },
370
+ {
371
+ "internalType": "address",
372
+ "name": "spender",
282
373
  "type": "address"
283
374
  },
284
375
  {
285
376
  "internalType": "uint256",
286
- "name": "_amount",
377
+ "name": "amount",
287
378
  "type": "uint256"
288
- }
289
- ],
290
- "name": "mint",
291
- "outputs": [
379
+ },
292
380
  {
293
- "internalType": "bool",
294
- "name": "",
295
- "type": "bool"
381
+ "internalType": "uint256",
382
+ "name": "deadline",
383
+ "type": "uint256"
384
+ },
385
+ {
386
+ "internalType": "uint8",
387
+ "name": "v",
388
+ "type": "uint8"
389
+ },
390
+ {
391
+ "internalType": "bytes32",
392
+ "name": "r",
393
+ "type": "bytes32"
394
+ },
395
+ {
396
+ "internalType": "bytes32",
397
+ "name": "s",
398
+ "type": "bytes32"
296
399
  }
297
400
  ],
298
- "payable": false,
401
+ "name": "permit",
402
+ "outputs": [],
299
403
  "stateMutability": "nonpayable",
300
404
  "type": "function"
301
405
  },
302
406
  {
303
- "constant": true,
304
407
  "inputs": [],
305
- "name": "name",
306
- "outputs": [
307
- {
308
- "internalType": "string",
309
- "name": "",
310
- "type": "string"
311
- }
312
- ],
313
- "payable": false,
314
- "stateMutability": "view",
408
+ "name": "renounceOwnership",
409
+ "outputs": [],
410
+ "stateMutability": "nonpayable",
315
411
  "type": "function"
316
412
  },
317
413
  {
318
- "constant": true,
319
414
  "inputs": [],
320
415
  "name": "symbol",
321
416
  "outputs": [
@@ -325,12 +420,10 @@
325
420
  "type": "string"
326
421
  }
327
422
  ],
328
- "payable": false,
329
423
  "stateMutability": "view",
330
424
  "type": "function"
331
425
  },
332
426
  {
333
- "constant": true,
334
427
  "inputs": [],
335
428
  "name": "totalSupply",
336
429
  "outputs": [
@@ -340,12 +433,10 @@
340
433
  "type": "uint256"
341
434
  }
342
435
  ],
343
- "payable": false,
344
436
  "stateMutability": "view",
345
437
  "type": "function"
346
438
  },
347
439
  {
348
- "constant": false,
349
440
  "inputs": [
350
441
  {
351
442
  "internalType": "address",
@@ -366,16 +457,14 @@
366
457
  "type": "bool"
367
458
  }
368
459
  ],
369
- "payable": false,
370
460
  "stateMutability": "nonpayable",
371
461
  "type": "function"
372
462
  },
373
463
  {
374
- "constant": false,
375
464
  "inputs": [
376
465
  {
377
466
  "internalType": "address",
378
- "name": "sender",
467
+ "name": "spender",
379
468
  "type": "address"
380
469
  },
381
470
  {
@@ -397,14 +486,26 @@
397
486
  "type": "bool"
398
487
  }
399
488
  ],
400
- "payable": false,
489
+ "stateMutability": "nonpayable",
490
+ "type": "function"
491
+ },
492
+ {
493
+ "inputs": [
494
+ {
495
+ "internalType": "address",
496
+ "name": "newOwner",
497
+ "type": "address"
498
+ }
499
+ ],
500
+ "name": "transferOwnership",
501
+ "outputs": [],
401
502
  "stateMutability": "nonpayable",
402
503
  "type": "function"
403
504
  }
404
505
  ]
405
506
  },
406
507
  "TBTC": {
407
- "address": "0x18084fbA666a33d37592fA2633fD49a74DD93a88",
508
+ "address": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
408
509
  "abi": [
409
510
  {
410
511
  "inputs": [],
@@ -711,7 +812,7 @@
711
812
  "type": "address"
712
813
  }
713
814
  ],
714
- "name": "nonces",
815
+ "name": "nonce",
715
816
  "outputs": [
716
817
  {
717
818
  "internalType": "uint256",
@@ -890,7 +991,7 @@
890
991
  "inputs": [
891
992
  {
892
993
  "internalType": "address",
893
- "name": "sender",
994
+ "name": "spender",
894
995
  "type": "address"
895
996
  },
896
997
  {
@@ -931,7 +1032,7 @@
931
1032
  ]
932
1033
  },
933
1034
  "VendingMachine": {
934
- "address": "0x6590DFF6abEd7C077839E8227A4f12Ec90E6D85F",
1035
+ "address": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
935
1036
  "abi": [
936
1037
  {
937
1038
  "inputs": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keep-network/tbtc-v2",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-dev.3+main.653c854b1f5ee8e14afc2124201abb620500c772",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "artifacts/",
@@ -11,15 +11,16 @@
11
11
  "export.json"
12
12
  ],
13
13
  "scripts": {
14
+ "clean": "hardhat clean",
14
15
  "build": "hardhat compile",
15
16
  "deploy": "hardhat deploy --export export.json",
16
17
  "format": "npm run lint && prettier --check .",
17
18
  "format:fix": "npm run lint:fix && prettier --write .",
18
- "lint": "npm run lint:js && npm run lint:sol",
19
- "lint:js": "eslint .",
19
+ "lint": "npm run lint:eslint && npm run lint:sol",
20
+ "lint:fix": "npm run lint:fix:eslint && npm run lint:fix:sol",
21
+ "lint:eslint": "eslint .",
22
+ "lint:fix:eslint": "eslint . --fix",
20
23
  "lint:sol": "solhint 'contracts/**/*.sol'",
21
- "lint:fix": "npm run lint:fix:js && npm run lint:fix:sol",
22
- "lint:fix:js": "eslint . --fix",
23
24
  "lint:fix:sol": "solhint 'contracts/**/*.sol' --fix",
24
25
  "test": "hardhat test",
25
26
  "prepublishOnly": "./scripts/prepare-artifacts.sh --network $npm_config_network"
@@ -27,30 +28,39 @@
27
28
  "dependencies": {
28
29
  "@keep-network/tbtc": ">1.1.2-dev <1.1.2-ropsten",
29
30
  "@openzeppelin/contracts": "^4.1.0",
30
- "@thesis/solidity-contracts": "github:thesis/solidity-contracts#507c647"
31
+ "@tenderly/hardhat-tenderly": "^1.0.12",
32
+ "@thesis/solidity-contracts": "github:thesis/solidity-contracts#4985bcf"
31
33
  },
32
34
  "devDependencies": {
33
- "@keep-network/hardhat-helpers": "^0.2.0-pre",
35
+ "@keep-network/hardhat-helpers": "0.4.1-pre.1",
34
36
  "@keep-network/hardhat-local-networks-config": "^0.1.0-pre.0",
35
37
  "@nomiclabs/hardhat-ethers": "^2.0.2",
36
38
  "@nomiclabs/hardhat-etherscan": "^2.1.4",
37
39
  "@nomiclabs/hardhat-waffle": "^2.0.1",
40
+ "@thesis-co/eslint-config": "github:thesis/eslint-config",
41
+ "@typechain/ethers-v5": "^7.2.0",
42
+ "@typechain/hardhat": "^2.3.1",
43
+ "@types/chai": "^4.2.22",
44
+ "@types/mocha": "^9.0.0",
45
+ "@types/node": "^16.10.5",
38
46
  "chai": "^4.3.4",
39
- "eslint": "^7.27.0",
40
- "eslint-config-keep": "github:keep-network/eslint-config-keep#0.3.0",
41
- "ethereum-waffle": "^3.3.0",
42
- "ethers": "^5.3.0",
43
- "hardhat": "^2.3.0",
47
+ "eslint": "^7.30.0",
48
+ "eslint-config-keep": "github:keep-network/eslint-config-keep#0c27ade",
49
+ "eslint-plugin-import": "^2.18.2",
50
+ "ethereum-waffle": "^3.4.0",
51
+ "ethers": "^5.4.7",
52
+ "hardhat": "^2.6.4",
44
53
  "hardhat-deploy": "^0.8.11",
45
54
  "hardhat-gas-reporter": "^1.0.4",
46
55
  "prettier": "^2.3.0",
47
56
  "prettier-plugin-solidity": "^1.0.0-beta.11 ",
48
57
  "solhint": "^3.3.6",
49
58
  "solhint-config-keep": "github:keep-network/solhint-config-keep",
50
- "ts-node": "^10.1.0",
51
- "typescript": "^4.3.5"
59
+ "ts-node": "^10.2.1",
60
+ "typechain": "^5.2.0",
61
+ "typescript": "^4.4.3"
52
62
  },
53
63
  "engines": {
54
64
  "node": ">= 14.0.0"
55
65
  }
56
- }
66
+ }