NOTE: This project is not officially supported by Pirate Chain. This was a personal project created for my own interests which is open and free to use. Please see the note at the bottom of this readme
This app is a interface for interacting with the wARRR contracts on both the Binance Smart Chain and Ethereum networks. Stake, unstake, and claim rewards, also provides useful links related to wARRR. This was made specifically for the MetaMask browser extension and hasn't been tested with other wallets.
Consists of a single monolithic HTML/JavaScript file - warrr_tool.html
, making it easy to review the client side code.
External requests are limited to one. No special fonts, jQuery, or external resources used. All images are inline SVGs. The external request is made to fetch web3.js
, a TypeScript implementation of the Ethereum JSON RPC API and related tooling, maintained by ChainSafe Systems and hosted on jsDeliver - a free CDN for open source projects. All communication is otherwise directly via the web3 wallet.
The app can be accessed online with a browser here:
https://scott-ftf.github.io/warrr.web3.tool/warrr_tool
The warrr_tool.html
file can be downloaded from this repoitory and used locally. To function correctly, Web3 HTML files need to be served from a web server. They require web3 injection, which can't occur if the files are opened directly from a local file system in a browser.
In a Linux operating system, for example, you can create a local server using the following command from the same directory as warrr_tool.html
:
python3 -m http.server --bind 127.0.0.1 7777
This command will serve the app at localhost (127.0.0.1) on port 7777.
http://127.0.0.1:7777/warrr_tool.html
This tool cannot alter your balances on its own. It only sends requests to the web3 wallet. Always check the fees, amounts, and destination addresses in each wallet prompt carefully before approval.