Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@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 this.web3.eth.Contract(LSP0ERC725Account.abi, "", defaultOptions);
import "@lukso/lsp-smart-contracts/contracts/LSP0ERC725Account/LSP0ERC725Account.sol";
contract MyAccount is LSP0ERC725Account {
constructor(address _newOwner) LSP0ERC725Account(_newOwner) {
}
}
Jest contract tests are defined under the tests directory. To run all the tests, run:
$ npm test
You can find more infos on how to deploy the contracts via hardhat in the DEPLOYMENT page.
You can access interface IDs and other constants, using the constants.js
file from the lsp-smart-contracts package.
You can find all accessible constants in the constants.js
file.
const {
INTERFACE_IDS,
ERC1271,
OPERATIONS,
SupportedStandards,
ERC725YKeys,
BasicUPSetup_Schema,
PERMISSIONS,
ALL_PERMISSIONS,
EventSignatures,
} = require("@lukso/lsp-smart-contracts/constants.js");
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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.