@lukso/lsp7-contracts 0.16.3 → 0.16.5

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/package.json CHANGED
@@ -1,31 +1,9 @@
1
1
  {
2
2
  "name": "@lukso/lsp7-contracts",
3
- "version": "0.16.3",
3
+ "version": "0.16.5",
4
4
  "description": "Package for the LSP7 Digital Asset standard",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
7
- "main": "./dist/index.cjs",
8
- "module": "./dist/index.mjs",
9
- "typings": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "require": "./dist/index.cjs",
13
- "import": "./dist/index.mjs",
14
- "types": "./dist/index.d.ts"
15
- },
16
- "./artifacts/*": "./artifacts/*",
17
- "./package.json": "./package.json"
18
- },
19
- "files": [
20
- "contracts/**/*.sol",
21
- "!contracts/Mocks/**/*.sol",
22
- "artifacts/*.json",
23
- "compatibility-abis",
24
- "dist",
25
- "types",
26
- "!types/factories",
27
- "./README.md"
28
- ],
29
7
  "keywords": [
30
8
  "LUKSO",
31
9
  "LSP",
@@ -36,15 +14,45 @@
36
14
  "EVM",
37
15
  "Solidity"
38
16
  ],
17
+ "files": [
18
+ "contracts/**/*.sol",
19
+ "!contracts/Mocks/**/*.sol",
20
+ "artifacts/*.json",
21
+ "compatibility-abis",
22
+ "dist"
23
+ ],
24
+ "main": "./dist/constants.cjs",
25
+ "module": "./dist/constants.mjs",
26
+ "typings": "./dist/constants.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "require": "./dist/constants.cjs",
30
+ "import": "./dist/constants.mjs",
31
+ "types": "./dist/constants.d.ts"
32
+ },
33
+ "./constants": {
34
+ "require": "./dist/constants.cjs",
35
+ "import": "./dist/constants.mjs",
36
+ "types": "./dist/constants.d.ts"
37
+ },
38
+ "./abi": {
39
+ "require": "./dist/abi.cjs",
40
+ "import": "./dist/abi.mjs",
41
+ "types": "./dist/abi.d.ts"
42
+ },
43
+ "./artifacts/*": "./artifacts/*",
44
+ "./dist/*": "./dist/*",
45
+ "./package.json": "./package.json"
46
+ },
39
47
  "scripts": {
40
48
  "build": "hardhat compile --show-stack-traces",
41
49
  "build:js": "unbuild",
42
- "build:types": "npx wagmi generate",
50
+ "build:types": "wagmi generate",
43
51
  "clean": "hardhat clean && rm -Rf dist/ cache/ node_modules/ .turbo/ types/ typechain/ build/ artifacts/",
44
52
  "format": "prettier --write .",
45
53
  "lint": "eslint . --ext .ts,.js",
46
54
  "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'",
47
- "package": "hardhat prepare-package"
55
+ "build:package": "hardhat prepare-package"
48
56
  },
49
57
  "dependencies": {
50
58
  "@openzeppelin/contracts": "^4.9.6",
@@ -1,391 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "ILSP7DigitalAsset",
4
- "sourceName": "contracts/ILSP7DigitalAsset.sol",
5
- "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "indexed": true,
11
- "internalType": "address",
12
- "name": "operator",
13
- "type": "address"
14
- },
15
- {
16
- "indexed": true,
17
- "internalType": "address",
18
- "name": "tokenOwner",
19
- "type": "address"
20
- },
21
- {
22
- "indexed": true,
23
- "internalType": "uint256",
24
- "name": "amount",
25
- "type": "uint256"
26
- },
27
- {
28
- "indexed": false,
29
- "internalType": "bytes",
30
- "name": "operatorNotificationData",
31
- "type": "bytes"
32
- }
33
- ],
34
- "name": "OperatorAuthorizationChanged",
35
- "type": "event"
36
- },
37
- {
38
- "anonymous": false,
39
- "inputs": [
40
- {
41
- "indexed": true,
42
- "internalType": "address",
43
- "name": "operator",
44
- "type": "address"
45
- },
46
- {
47
- "indexed": true,
48
- "internalType": "address",
49
- "name": "tokenOwner",
50
- "type": "address"
51
- },
52
- {
53
- "indexed": true,
54
- "internalType": "bool",
55
- "name": "notified",
56
- "type": "bool"
57
- },
58
- {
59
- "indexed": false,
60
- "internalType": "bytes",
61
- "name": "operatorNotificationData",
62
- "type": "bytes"
63
- }
64
- ],
65
- "name": "OperatorRevoked",
66
- "type": "event"
67
- },
68
- {
69
- "anonymous": false,
70
- "inputs": [
71
- {
72
- "indexed": true,
73
- "internalType": "address",
74
- "name": "operator",
75
- "type": "address"
76
- },
77
- {
78
- "indexed": true,
79
- "internalType": "address",
80
- "name": "from",
81
- "type": "address"
82
- },
83
- {
84
- "indexed": true,
85
- "internalType": "address",
86
- "name": "to",
87
- "type": "address"
88
- },
89
- {
90
- "indexed": false,
91
- "internalType": "uint256",
92
- "name": "amount",
93
- "type": "uint256"
94
- },
95
- {
96
- "indexed": false,
97
- "internalType": "bool",
98
- "name": "force",
99
- "type": "bool"
100
- },
101
- {
102
- "indexed": false,
103
- "internalType": "bytes",
104
- "name": "data",
105
- "type": "bytes"
106
- }
107
- ],
108
- "name": "Transfer",
109
- "type": "event"
110
- },
111
- {
112
- "inputs": [
113
- {
114
- "internalType": "address",
115
- "name": "operator",
116
- "type": "address"
117
- },
118
- {
119
- "internalType": "uint256",
120
- "name": "amount",
121
- "type": "uint256"
122
- },
123
- {
124
- "internalType": "bytes",
125
- "name": "operatorNotificationData",
126
- "type": "bytes"
127
- }
128
- ],
129
- "name": "authorizeOperator",
130
- "outputs": [],
131
- "stateMutability": "nonpayable",
132
- "type": "function"
133
- },
134
- {
135
- "inputs": [
136
- {
137
- "internalType": "address",
138
- "name": "operator",
139
- "type": "address"
140
- },
141
- {
142
- "internalType": "address",
143
- "name": "tokenOwner",
144
- "type": "address"
145
- }
146
- ],
147
- "name": "authorizedAmountFor",
148
- "outputs": [
149
- {
150
- "internalType": "uint256",
151
- "name": "",
152
- "type": "uint256"
153
- }
154
- ],
155
- "stateMutability": "view",
156
- "type": "function"
157
- },
158
- {
159
- "inputs": [
160
- {
161
- "internalType": "address",
162
- "name": "tokenOwner",
163
- "type": "address"
164
- }
165
- ],
166
- "name": "balanceOf",
167
- "outputs": [
168
- {
169
- "internalType": "uint256",
170
- "name": "",
171
- "type": "uint256"
172
- }
173
- ],
174
- "stateMutability": "view",
175
- "type": "function"
176
- },
177
- {
178
- "inputs": [
179
- {
180
- "internalType": "bytes[]",
181
- "name": "data",
182
- "type": "bytes[]"
183
- }
184
- ],
185
- "name": "batchCalls",
186
- "outputs": [
187
- {
188
- "internalType": "bytes[]",
189
- "name": "results",
190
- "type": "bytes[]"
191
- }
192
- ],
193
- "stateMutability": "nonpayable",
194
- "type": "function"
195
- },
196
- {
197
- "inputs": [],
198
- "name": "decimals",
199
- "outputs": [
200
- {
201
- "internalType": "uint8",
202
- "name": "",
203
- "type": "uint8"
204
- }
205
- ],
206
- "stateMutability": "view",
207
- "type": "function"
208
- },
209
- {
210
- "inputs": [
211
- {
212
- "internalType": "address",
213
- "name": "operator",
214
- "type": "address"
215
- },
216
- {
217
- "internalType": "address",
218
- "name": "tokenOwner",
219
- "type": "address"
220
- },
221
- {
222
- "internalType": "uint256",
223
- "name": "subtractedAmount",
224
- "type": "uint256"
225
- },
226
- {
227
- "internalType": "bytes",
228
- "name": "operatorNotificationData",
229
- "type": "bytes"
230
- }
231
- ],
232
- "name": "decreaseAllowance",
233
- "outputs": [],
234
- "stateMutability": "nonpayable",
235
- "type": "function"
236
- },
237
- {
238
- "inputs": [
239
- {
240
- "internalType": "address",
241
- "name": "tokenOwner",
242
- "type": "address"
243
- }
244
- ],
245
- "name": "getOperatorsOf",
246
- "outputs": [
247
- {
248
- "internalType": "address[]",
249
- "name": "",
250
- "type": "address[]"
251
- }
252
- ],
253
- "stateMutability": "view",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "address",
260
- "name": "operator",
261
- "type": "address"
262
- },
263
- {
264
- "internalType": "uint256",
265
- "name": "addedAmount",
266
- "type": "uint256"
267
- },
268
- {
269
- "internalType": "bytes",
270
- "name": "operatorNotificationData",
271
- "type": "bytes"
272
- }
273
- ],
274
- "name": "increaseAllowance",
275
- "outputs": [],
276
- "stateMutability": "nonpayable",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [
281
- {
282
- "internalType": "address",
283
- "name": "operator",
284
- "type": "address"
285
- },
286
- {
287
- "internalType": "address",
288
- "name": "tokenOwner",
289
- "type": "address"
290
- },
291
- {
292
- "internalType": "bool",
293
- "name": "notify",
294
- "type": "bool"
295
- },
296
- {
297
- "internalType": "bytes",
298
- "name": "operatorNotificationData",
299
- "type": "bytes"
300
- }
301
- ],
302
- "name": "revokeOperator",
303
- "outputs": [],
304
- "stateMutability": "nonpayable",
305
- "type": "function"
306
- },
307
- {
308
- "inputs": [],
309
- "name": "totalSupply",
310
- "outputs": [
311
- {
312
- "internalType": "uint256",
313
- "name": "",
314
- "type": "uint256"
315
- }
316
- ],
317
- "stateMutability": "view",
318
- "type": "function"
319
- },
320
- {
321
- "inputs": [
322
- {
323
- "internalType": "address",
324
- "name": "from",
325
- "type": "address"
326
- },
327
- {
328
- "internalType": "address",
329
- "name": "to",
330
- "type": "address"
331
- },
332
- {
333
- "internalType": "uint256",
334
- "name": "amount",
335
- "type": "uint256"
336
- },
337
- {
338
- "internalType": "bool",
339
- "name": "force",
340
- "type": "bool"
341
- },
342
- {
343
- "internalType": "bytes",
344
- "name": "data",
345
- "type": "bytes"
346
- }
347
- ],
348
- "name": "transfer",
349
- "outputs": [],
350
- "stateMutability": "nonpayable",
351
- "type": "function"
352
- },
353
- {
354
- "inputs": [
355
- {
356
- "internalType": "address[]",
357
- "name": "from",
358
- "type": "address[]"
359
- },
360
- {
361
- "internalType": "address[]",
362
- "name": "to",
363
- "type": "address[]"
364
- },
365
- {
366
- "internalType": "uint256[]",
367
- "name": "amount",
368
- "type": "uint256[]"
369
- },
370
- {
371
- "internalType": "bool[]",
372
- "name": "force",
373
- "type": "bool[]"
374
- },
375
- {
376
- "internalType": "bytes[]",
377
- "name": "data",
378
- "type": "bytes[]"
379
- }
380
- ],
381
- "name": "transferBatch",
382
- "outputs": [],
383
- "stateMutability": "nonpayable",
384
- "type": "function"
385
- }
386
- ],
387
- "bytecode": "0x",
388
- "deployedBytecode": "0x",
389
- "linkReferences": {},
390
- "deployedLinkReferences": {}
391
- }