![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@lukso/lsp-smart-contracts
Advanced tools
The reference implementation for universal profiles smart contracts
The smart contracts reference implementation of the LUKSO Standard Proposals (LSPs).
For more information see Documentation on docs.lukso.tech.
:warning: | This package is currently in early stages of development, use for testing or experimentation purposes only. |
---|
LSP smart contracts are available as a npm package.
npm install @lukso/lsp-smart-contracts
Alternatively you can also clone the repository and install its dependencies to start using the smart contracts.
$ git clone https://github.com/lukso-network/lsp-smart-contracts.git
$ cd ./lsp-smart-contracts
$ npm install
You can use the contracts JSON ABI by importing them as follow:
import LSP0ERC725Account from "@lukso/lsp-smart-contracts/artifacts/LSP0ERC725Account.json";
const myContract = new web3.eth.Contract(
LSP0ERC725Account.abi,
"",
defaultOptions
);
import "@lukso/lsp-smart-contracts/contracts/LSP0ERC725Account/LSP0ERC725Account.sol";
contract MyAccount is LSP0ERC725Account {
constructor(address _newOwner) LSP0ERC725Account(_newOwner) {}
}
You can find more infos on how to deploy the contracts via hardhat in the DEPLOYMENT page.
The @lukso/lsp-smart-contracts
npm package contains useful constants such as Interface IDs or ERC725Y Data Keys related to the LSP Standards. You can import and access them as follow:
import {
INTERFACE_IDS,
ERC1271,
OPERATIONS,
SupportedStandards,
ERC725YDataKeys,
PERMISSIONS,
ALL_PERMISSIONS,
ErrorSelectors,
EventSigHashes,
FunctionSelectors,
ContractsDocs,
StateVariables,
} from "@lukso/lsp-smart-contracts";
Note: we also export it as
@lukso/lsp-smart-contracts/constants
or@lukso/lsp-smart-contracts/constants.js
to keep it backward compatible.
It also includes constant values Array data keys to retrieve both the array length and for index access.
'LSP5ReceivedAssets[]': {
length: '0x6460ee3c0aac563ccbf76d6e1d07bada78e3a9514e6382b736ed3f478ab7b90b',
index: '0x6460ee3c0aac563ccbf76d6e1d07bada',
},
The following additional typescript types are also available.
import {
LSP2ArrayKey,
LSPSupportedStandard,
LSP6PermissionName,
LSPErrorInfo,
} from "@lukso/lsp-smart-contracts/constants";
NB: dates of the audit reports use the american date format YYYY-MM-DD.
The following audits and formal verification were conducted. All high-level issues were addressed, or were not deemed as critical.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
The reference smart contract implementation for the LUKSO LSP standards
The npm package @lukso/lsp-smart-contracts receives a total of 0 weekly downloads. As such, @lukso/lsp-smart-contracts popularity was classified as not popular.
We found that @lukso/lsp-smart-contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.