![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@erc725/smart-contracts
Advanced tools
This package is currently in BETA, use with caution!
This package contains an implementation of ERC725 to make it as easy as possible to get started.
If you see ways to improve this implementation, you are welcome to create an issue or a pull request.
The package has the following contracts:
ERC725X.sol
: The execute part of ERC725, allows to execute any other smart contract. Uses ERC173 as a basis.ERC725Y.sol
: The data part of ERC725, allows to attach any key-value data to a smart contract. Uses ERC173 as a basis.ERC725.sol
: Combines both implementations: ERC725X.sol
and ERC725Y.sol
.To use in your project install via npm
npm install @erc725/smart-contracts
And import in your contracts in solidity
import "@erc725/smart-contracts/contracts/ERC725.sol";
contract MyContract is ERC725 {
...
}
And import in your contract ABI in JavaScript
import ERC725 from "@erc725/smart-contracts/artifacts/ERC725.json";
const myContract = new web3.eth.Contract(ERC725.abi, "0xsomeaddress...");
Setup:
npm install
Run tests:
npm test
Run linter:
npm run lint
The table below contains a list of ERC165 interface IDs used by the Solidity implementations of the ERC725 smart contracts.
Interface Name | Interface ID | Description |
---|---|---|
ERC725X | 0x44c028fe | General executor |
ERC725Y | 0x714df77c | General key-value store |
ERC165 | 0x01ffc9a7 | Standard Interface Detection for Contracts |
Notice: you need the
solc
compiler installed locally to use this command. Installation instructions can be found in the solidity documentation
The repository offers a shell utility tool that generate details about each contracts (function selectors, storage layout, evm opcodes...). You can obtain them via the following command.
npm run solc
This will generate files and folders under /solc
solc
|- bytecode/
|- evm/
|- metadata/
|- opcodes/
|- selectors/
|- storage-layout/
|- gas-costs.md
FAQs
ERC725 contract implementations
The npm package @erc725/smart-contracts receives a total of 59 weekly downloads. As such, @erc725/smart-contracts popularity was classified as not popular.
We found that @erc725/smart-contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.