
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@polymathnetwork/sdk
Advanced tools
A Javascript SDK for interacting with the Polymath network for the browser and Node.js
A Javascript SDK for interacting with the Polymath network for the browser and Node.js
First, configure your Polymath Client:
// polyClient.ts
import { Polymath, browserUtils } from '@polymathnetwork/sdk';
// create the necessary Web3 providers on its own. You can pass custom ones
// if you want though.
const config = {
polymathRegistryAddress: '0x1234...',
};
// You could have multiple configs for each network you support:
const networkConfigs = {
['1']: {
/* */
},
['42']: {
/* */
},
};
const networkId = await browserUtils.getNetworkId();
const config = networkConfigs[networkId];
// You'll want to reuse the smae instance of the Polymath client in the rest of
// your app for the same network.
export const polyClient = new Polymath(config);
Initializing your client
// Pending
Finally, let's start a procedure to reserve a Security Token
// Builds a list of transactions required to reserve a security token
const transactionQueue = await polyClient.reserveSecurityToken({
name: 'My Token',
symbol: 'MY-TOKEN',
});
// We can listen to events for individual transactions as well as the queue
// itself. For now, let's just listen to the whole queue
await transactionQueue.run(); // Will run sequentially every transaction required
// At this point my token has been reserved
const myTokenReservation = await polyClient.getSecurityTokenReservation({
symbol: 'MY-TOKEN',
});
To be continued...
FAQs
A Javascript SDK for interacting with the Polymath network for the browser and Node.js
The npm package @polymathnetwork/sdk receives a total of 6 weekly downloads. As such, @polymathnetwork/sdk popularity was classified as not popular.
We found that @polymathnetwork/sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.