Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@bosonprotocol/common
Advanced tools
Common configs, types, interfaces and utilities shared by the core components of the Boson Protocol.
@bosonprotocol/common
JS lib with common types, interfaces and utilities shared by the core components of the Boson Protocol.
npm install @bosonprotocol/common
# OR
yarn add @bosonprotocol/common
Useful ABIs can be imported.
import { abis } from "@bosonprotocol/common";
const { ProtocolDiamondABI } = abis;
We provide default configurations for multiple environments that can be used for easier interaction.
import { getDefaultConfig } from "@bosonprotocol/common";
const defaultConfigOnRopsten = getDefaultConfig("staging");
// {
// ...otherConfigParameters,
// subgraphUrl: "https://api.thegraph.com/subgraphs/name/bosonprotocol/ccropsten",
// contracts: {
// protocolDiamond: "0x5E3f5127e320aD0C38a21970E327eefEf12561E5"
// }
// }
Interfaces and types can also be imported. This might be useful for implementing custom a Web3LibAdapter
or MetadataStorage
.
import { Web3LibAdapter, MetadataStorage } from "@bosonprotocol/common";
class CustomWeb3LibAdapter implements Web3LibAdapter {
// implementation
}
class CustomMetadataStorage implements MetadataStorage {
// implementation
}
Web3LibAdapter
The core-sdk has the following features:
To achieve these, we use an adapter pattern with Web3LibAdapter
being the interface.
An example implementation is the EthersAdapter
targeting the ethers library.
FAQs
Common configs, types, interfaces and utilities shared by the core components of the Boson Protocol.
We found that @bosonprotocol/common 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.