
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@logion/solidity
Advanced tools
Smart contracts establishing the link between your tokens and the logion network.
Currently, a single contract is provided: Logion. This contract links an NFT (e.g. ERC721 or ERC1155)
to a logion collection item.
$ yarn add --dev @logion/solidity
Once installed, you can use the contract in the library by importing them:
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@logion/solidity/contracts/Logion.sol";
contract MyCollectible is ERC1155, Logion {
constructor()
ERC1155("https://some.domain/{id}.json")
Logion(
"202210131727", // Must be unique across all contracts minting tokens for below collection LOC
"334801581596596632473758891935041239976", // The collection LOC ID
"certificate.logion.network" // The domain for building a logion certificate URL
)
{
}
}
It is advised to generate the metadata linked to your tokens programmatically and to include logion data. This repository contains an example script which can be executed with the following command:
yarn generate-sample-metadata
This will generate the metadata JSON files in folder sample_metadata.
See the code of the script for more details.
This is just an example, developers should copy the script in their own project and ajust it for their needs.
FAQs
Logion Smart Contract library for Solidity
We found that @logion/solidity demonstrated a not healthy version release cadence and project activity because the last version was released 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.