Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@colony/colony-js
Advanced tools
📜 The Colony TypeScript reference implementation
@colony/colony-js
colonyJS is a JavaScript library with a simple and predictable interface for application-layer integrations with the colonyNetwork smart contracts. To learn more about Colony, you can visit colony.io or read the White Paper.
You should check out the getColonyNetworkClient
function in ColonyNetworkClient
and the docs for the extended colony contracts clients/Colony/ColonyClientVX
.
import { providers, utils, Wallet } from 'ethers';
import { getColonyNetworkClient, ColonRpcEndpoint, Id, Network, Tokens } from '@colony/colony-js';
const { formatEther } = utils;
const provider = new providers.JsonRpcProvider(ColonyRpcEndpoint.Gnosis);
const start = async () => {
// Get a wallet instance
const wallet = new Wallet(
// This is a random private key (don't use this one for anything else and _definitely_ do not send valuables to the corresponding address)
'0x0355596cdb5e5242ad082c4fe3f8bbe48c9dba843fe1f99dd8272f487e70efae',
provider,
);
// Check out the logs to see the wallet address
console.log('Wallet Address:', wallet.address);
// Get a network client instance for Gnosis Chain
const networkClient = getColonyNetworkClient(
Network.Gnosis,
wallet,
);
// Let's connect to the Meta Colony
const metaColonyClient = await networkClient.getMetaColonyClient()
// And check out it's CLNY funding
const funding = await metaColonyClient.getFundingPotBalance(Id.RootPot, Tokens.Gnosis.CLNY);
// We can also see its address
const { address } = metaColonyClient;
console.info(`${formatEther(funding)} CLNY in root domain of MetaColony with address: ${address}`);
};
start();
Try Colony SDK.
GPL-3.0
FAQs
📜 The Colony TypeScript reference implementation
The npm package @colony/colony-js receives a total of 326 weekly downloads. As such, @colony/colony-js popularity was classified as not popular.
We found that @colony/colony-js 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.