![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@jibrelnetwork/contracts-jsapi
Advanced tools
Set of stateless wrapper methods for contracts based on ERC20 token.
web3 wrapper for jibrel-contracts
jibrel-contracts-jsapi is a set of stateless methods that make easier work with Ethereum blockchain, ERC20 Tokens and Jibrel Network contracts.
npm install @jibrelnetwork/contracts-jsapi
const jibrelContractsJsapi = require('@jibrelnetwork/contracts-jsapi')
compile:standalone
: build:standalone & minifycompile
: lint & buildclean
: cleans ./lib
dirbuild
: cleans & compiles librarybuild:standalone
: builds standalone webpack bundle to test library in browser without including it somewherelint
: check code-style errorsminify
: minifies webpack standalone bundletest
: runs mocha testsdocs
: compile jsdocsdocs:open
: open docs index.htmlSee mocha tests for examples of usage
ETH
APIweb3.eth functions wrapper
Sends transaction. Returns Promise that will be resolved with the hash of created transaction.
Returns Promise that will be resolved with balance of the provided address.
Returns Promise that will be resolved with current block number.
Returns Promise that will be resolved with block data.
Returns Promise that will be resolved with transaction data.
Returns Promise that will be resolved with transaction receipt.
Returns Promise that will be resolved with filter object, that can be used for getting of past logs or watching of new.
Returns Promise that will be resolved with past logs.
Returns Promise that will be resolved with estimate gas value.
Returns Promise that will be resolved with current gas price value.
Returns Promise that will be resolved with current transaction count value for address specified
ERC20
APIReturns Promise that will be resolved with the total supply of tokens.
Returns Promise that will be resolved with the balance of owner address
Transfers tokens. Returns Promise that will be resolved with the hash of created contract transaction
Subscribes to all contract events. Returns Promise that will be resolved with the event emitter.
The event emitter has the following events:
data
: Fires on each incoming event with the event object as argumenterror
: Fires when an error in the subscription occoursSubscribes to Transfer event. Returns Promise that will be resolved with the event emitter (the same as for allEvents).
The same as for allEvents
Returns Promise that will be resolved with the past event logs.
Returns Promise that will be resolved with estimate gas value.
ERC20Mintable
APISubscribes to MintEvent event. Returns Promise that will be resolved with the event emitter (the same as for allEvents).
Subscribes to BurnEvent event. Returns Promise that will be resolved with the event emitter (the same as for allEvents).
See contracts.erc20.getPastEvents
ERC20Named
APIReturns Promise that will be resolved with the token name.
Returns Promise that will be resolved with the token symbol.
Returns Promise that will be resolved with token decimals.
Controller
APIMint tokens. Returns Promise that will be resolved with the hash of created contract transaction
Burn tokens. Returns Promise that will be resolved with the hash of created contract transaction
Gets account's address from its private key.
Testrpc should be launched before tests.
Also JSON_PATH
env variable should exists. JSON_PATH
stores path to .json file, that contains:
The simplest way to test
- is launch jibrel-contracts tests. During tests execution it will check that jibrel-contracts-jsapi project is in the same dir, and will agregate all need information and write it to .json file.
Note: prepare jibrel-contracts-jsapi project (npm i && npm run compile
)
$ git clone git@github.com:jibrelnetwork/jibrel-contracts.git
$ cd jibrel-contracts
$ git pull origin master
$ git reset --hard e3c917eadcabddef00ab3acd45791c1c456787dd
$ npm i
$ npm run compile
$ npm test
FAQs
Set of stateless wrapper methods for contracts based on ERC20 token.
The npm package @jibrelnetwork/contracts-jsapi receives a total of 5 weekly downloads. As such, @jibrelnetwork/contracts-jsapi popularity was classified as not popular.
We found that @jibrelnetwork/contracts-jsapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.