![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@renproject/gateway-js
Advanced tools
Readme
🛠️ GatewayJS
There's two official Javascript SDKs for interacting with RenVM:
ren-js
repository): A lower-level SDK which can be integrated into your existing user interface.See the Getting Started Tutorial to start using GatewayJS.
See CHANGELOG.md.
GatewayJS is an SDK for bridging BTC, BCH and ZEC to your Ethereum-based dApp. GatewayJS lets your users deposit and withdraw cryptocurrencies into your smart contracts through the following widget:
GatewayJS is browser-only - see RenJS if you are using Node.js.
Install GatewayJS using Yarn or npm:
yarn add @renproject/gateway-js
# Or
npm install --save @renproject/gateway-js
Usage is described in the getting started tutorial in the Developer Docs.
Example of bridging BTC into Ethereum:
const GatewayJS = require("@renproject/gateway-js");
new GatewayJS("testnet").open({
// Send BTC to an Ethereum address
sendToken: GatewayJS.Tokens.BTC.Btc2Eth,
// Amount of BTC we are sending
sendAmount: GatewayJS.utils.value(0.01, "BTC").sats(),
// The recipient Ethereum address
sendTo: "0xD5B5b26521665Cb37623DCA0E49c553b41dbF076",
});
yarn run watch
# or
yarn run build
You'll need to:
m/44'/60'/0'/0/
)Create a .env
file which contains the following exported variables:
export MNEMONIC="your mnemonic here"
export TESTNET_BITCOIN_KEY="your bitcoin private key (encoded in WIF)"
export INFURA_KEY="your infura key (for it's v3 endpoint)"
export NETWORK="mainnet or testnet"
Then just run the following command to execute the tests. Make sure there is sufficient Kovan ETH in the linked account before running tests.
yarn run test
In order to update the bindings in src/contracts/bindings
, you need to clone darknode-sol
and run:
yarn run bindings:ts
FAQs
GatewayJS allows dApp to easily and securely integrate with RenVM
The npm package @renproject/gateway-js receives a total of 0 weekly downloads. As such, @renproject/gateway-js popularity was classified as not popular.
We found that @renproject/gateway-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.