Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
eraswap-sdk
Advanced tools
Typechain outputs of esn-contracts and utils. Commit tag of KMPARDS/esn-contracts is included in the version.
This kit is intended to make it convenient to access to addresses of smart contracts related to Era Swap and common utilities.
$ yarn add eraswap-sdk
or
$ npm i eraswap-sdk
addresses
bucket: Accessing Contract Addressesimport { es } from 'eraswap-sdk';
// Get the testing address
const timeallyAddressTesting = es.addresses['development'].ESN.timeallyManager;
// Get the mainnet address
const timeallyAddressMainnet = es.addresses['production'].ESN.timeallyManager;
typechain
bucket: Accessing Contract Typingsimport { es } from 'eraswap-sdk';
const timeallyInstance = es.typechain.ESN.TimeAllyManagerFactory.connect(
es.addresses['development'].ESN.timeallyManager
);
Customprovider
Custom provider is a modification of ethers.js
's JsonRpcProvider
with Kyc Dapp integrated and better errors
import { es } from 'eraswap-sdk';
// for mainnet
const providerESN = new es.CustomProvider('mainnet');
// for testnet
const providerESN = new es.CustomProvider('testnet');
Errors in v5 have gotten ugly lately. See ethers-io/ethers.js#871. This
import { es } from 'eraswap-sdk';
try {
await contract.methodThatThrowError();
} catch (error) {
const readableError = es.utils.parseEthersJsError(error); // string
setDisplayMessage(`Error: ${readableError}`);
}
import { es } from 'eraswap-sdk';
const url = es.utils.EraswapInfo.getAddressHref(
'0xC8e1F3B9a0CdFceF9fFd2343B943989A22517b26'
);
// returns: https://eraswap.info/address/0xC8e1F3B9a0CdFceF9fFd2343B943989A22517b26
const url = es.utils.EraswapInfo.getTxHref(
'0x200706e0608bec9ad2993b6659df036062e8fbbdc9cc61bd52c61ab106a48f44'
);
// returns: https://eraswap.info/txn/0x200706e0608bec9ad2993b6659df036062e8fbbdc9cc61bd52c61ab106a48f44
FAQs
Typechain outputs of esn-contracts and utils. Commit tag of KMPARDS/esn-contracts is included in the version.
The npm package eraswap-sdk receives a total of 0 weekly downloads. As such, eraswap-sdk popularity was classified as not popular.
We found that eraswap-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.