@lukso/lsp8-contracts 0.16.3 → 0.16.4
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/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Package for the LSP8 Identifiable Digital Asset Standard.
|
4
4
|
|
5
|
+
> The contracts [`LSP8Votes`](contracts/extensions/LSP8Votes.sol) and [`LSP8VotesInitiAbstract`](contracts/extensions/LSP8VotesInitAbstract.sol) have not been formally audited by an external third party and are not recommended to be used in production without undergoing an independent security audit.
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
```console
|
@@ -759,6 +759,8 @@ abstract contract LSP8IdentifiableDigitalAsset is
|
|
759
759
|
* - `tokenId` must exist.
|
760
760
|
*
|
761
761
|
* @custom:events {Transfer} event with `address(0)` as the `to` address.
|
762
|
+
*
|
763
|
+
* @custom:warning This internal function does not check if the sender is authorized or not to operate on the `tokenId`.
|
762
764
|
*/
|
763
765
|
function _burn(bytes32 tokenId, bytes memory data) internal virtual {
|
764
766
|
address tokenOwner = tokenOwnerOf(tokenId);
|
@@ -815,7 +817,7 @@ abstract contract LSP8IdentifiableDigitalAsset is
|
|
815
817
|
*
|
816
818
|
* @custom:events {Transfer} event.
|
817
819
|
*
|
818
|
-
* @custom:
|
820
|
+
* @custom:warning This internal function does not check if the sender is authorized or not to operate on the `tokenId`.
|
819
821
|
*/
|
820
822
|
function _transfer(
|
821
823
|
address from,
|
@@ -776,6 +776,8 @@ abstract contract LSP8IdentifiableDigitalAssetInitAbstract is
|
|
776
776
|
* - `tokenId` must exist.
|
777
777
|
*
|
778
778
|
* @custom:events {Transfer} event with `address(0)` as the `to` address.
|
779
|
+
*
|
780
|
+
* @custom:warning This internal function does not check if the sender is authorized or not to operate on the `tokenId`.
|
779
781
|
*/
|
780
782
|
function _burn(bytes32 tokenId, bytes memory data) internal virtual {
|
781
783
|
address tokenOwner = tokenOwnerOf(tokenId);
|
@@ -832,7 +834,7 @@ abstract contract LSP8IdentifiableDigitalAssetInitAbstract is
|
|
832
834
|
*
|
833
835
|
* @custom:events {Transfer} event.
|
834
836
|
*
|
835
|
-
* @custom:
|
837
|
+
* @custom:warning This internal function does not check if the sender is authorized or not to operate on the `tokenId`.
|
836
838
|
*/
|
837
839
|
function _transfer(
|
838
840
|
address from,
|
@@ -19,6 +19,10 @@ import {LSP1Utils} from "@lukso/lsp1-contracts/contracts/LSP1Utils.sol";
|
|
19
19
|
* Tokens do not count as votes until they are delegated, because votes must be tracked which incurs an additional cost
|
20
20
|
* on every transfer. Token holders can either delegate to a trusted representative who will decide how to make use of
|
21
21
|
* the votes in governance decisions, or they can delegate to themselves to be their own representative.
|
22
|
+
*
|
23
|
+
* @custom:warning This extension contract is not formally audited.
|
24
|
+
* For any contract intended to be deployed in production that inherits from this extension, it is recommended to conduct
|
25
|
+
* an independent security audit, including this extension in the audit scope.
|
22
26
|
*/
|
23
27
|
abstract contract LSP8Votes is LSP8IdentifiableDigitalAsset, Votes {
|
24
28
|
/**
|
@@ -20,6 +20,10 @@ import {LSP1Utils} from "@lukso/lsp1-contracts/contracts/LSP1Utils.sol";
|
|
20
20
|
* Tokens do not count as votes until they are delegated, because votes must be tracked which incurs an additional cost
|
21
21
|
* on every transfer. Token holders can either delegate to a trusted representative who will decide how to make use of
|
22
22
|
* the votes in governance decisions, or they can delegate to themselves to be their own representative.
|
23
|
+
*
|
24
|
+
* @custom:warning This extension contract is not formally audited.
|
25
|
+
* For any contract intended to be deployed in production that inherits from this extension, it is recommended to conduct
|
26
|
+
* an independent security audit, including this extension in the audit scope.
|
23
27
|
*/
|
24
28
|
abstract contract LSP8VotesInitAbstract is
|
25
29
|
LSP8IdentifiableDigitalAssetInitAbstract,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lukso/lsp8-contracts",
|
3
|
-
"version": "0.16.
|
3
|
+
"version": "0.16.4",
|
4
4
|
"description": "Package for the LSP8 Identifiable Digital Asset standard",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"author": "",
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"scripts": {
|
48
48
|
"build": "hardhat compile --show-stack-traces",
|
49
49
|
"build:js": "unbuild",
|
50
|
-
"build:types": "
|
50
|
+
"build:types": "wagmi generate",
|
51
51
|
"clean": "hardhat clean && rm -Rf dist/ cache/ node_modules/ .turbo/ types/ typechain/ build/ artifacts/",
|
52
52
|
"format": "prettier --write .",
|
53
53
|
"lint": "eslint . --ext .ts,.js",
|