Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@subsocial/resource-discussions
Advanced tools
SocialResource is meant to make work with resource-discussions
pallet easier. Main goals of this tool:
resourceId
string;resourceId
structure stable and fixed;Usage example:
import { SocialResource, ResourceParameters } from '@subsocial/resource-discussions'
const resourceParams: ResourceParameters = {
schema: 'chain',
chainType: 'substrate',
chainName: 'xsocial',
resourceType: 'block',
resourceValue: {
blockNumber: '3219502'
}
}
const resourceInstance = new SocialResource(resourceParams)
const resourceId = resourceInstance.toResourceId()
ResourceParameters
object has sequentially conditional structure. It means, that parameter
schema
or specific combination of parameters chema
and chainType
influences
to valid combination of further parameters. This flow is controlled by graph-based config structure
and TypeScript types. You can investigate all possible parameters combinations in package types.
FAQs
Support tool for work with resource-discussions pallet
The npm package @subsocial/resource-discussions receives a total of 18 weekly downloads. As such, @subsocial/resource-discussions popularity was classified as not popular.
We found that @subsocial/resource-discussions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.