![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.
nahmii-contract-abstractions
Advanced tools
Smart contract abstractions for nahmii deployed to mainnet
This package hosts contract abstractions generated from the deployment of nahmii contracts to the Ethereum mainnet.
nahmii is hubii's scaling solution for the Ethereum block chain. It is a hybrid centralized/decentralized solution that enables instant (micro-) payments, trading and trustless settlements.
See www.hubii.com for more information.
To install the SDK into your project, simply run:
npm install nahmii-contract-abstractions
The package includes directory build/contracts
that contains the
actual contract abstractions.
In a dependent project it will often be more
convenient to have the abstractions available in its own build/contracts
directory rather than having to refer to the lengthy
node_modules/nahmii-contract-abstractions/build/contracts
.
The package contains scripts to symlink its build/contracts
to
../../build/contracts
. In order to run the script you may run
npm run symlink:build
Alternatively a call to
npm run symlink:build:force
will also delete previously existent ../../build/contracts
as seen from
the package directory (node_modules/nahmii-contract-abstractions
).
The contract abstractions may be required into Node.js scripts and used in contexts of web3, ethers or Truffle.
Assuming the above symlink has been carried out a simple script may be as follows:
const ClientFundAbstn = require('./build/contracts/ClientFund.json');
console.log(ClientFundAbstn.networks[1].address);
// 0xcc8d82f6ba952966e63001c7b320eef2ae729099
console.log(ClientFundAbstn.abi);
// [ { constant: false,
// inputs: [ [Object] ],
// name: 'authorizeRegisteredService',
// outputs: [],
// payable: false,
// stateMutability: 'nonpayable',
// type: 'function' },
// { constant: true,
// inputs: [ [Object] ],
// name: 'isRegisteredBeneficiary',
// ...
If no symlink has been done a contract abstraction may rather be required as
const abstractions = require('nahmii-contract-abstractions');
console.log(abstractions.getAbstraction('ClientFund'));
// { contractName: 'ClientFund',
// abi:
// [ { constant: false,
// inputs: [Array],
// name: 'authorizeRegisteredService',
// outputs: [],
// payable: false,
// stateMutability: 'nonpayable',
// type: 'function' },
// ...
The full set of names of contract abstractions may be obtained as
console.log(abtractions.getAbstractionNames());
// [ 'BalanceTracker',
// 'BlockNumbCurrenciesLib',
// 'BlockNumbDisdIntsLib',
// 'BlockNumbIntsLib',
// 'BlockNumbUintsLib',
// 'ClientFund',
// 'Configuration',
// ...
The package also includes directory events
containing samples of events
emitted from contracts. There is one JSON file per contract.
Similar to contract abstractions the package contains scripts to symlink
its events
to ../../events
in a dependent project. In order to run the
script you may run
npm run symlink:events
or
npm run symlink:events:force
The latter will delete previously existent ../../events
as seen from
the package directory (node_modules/nahmii-contract-abstractions
).
As with contract abstractions events may be required into a Node.js context by
const ClientFundEvents = require('./events/ClientFund.json');
if previous symlink has been carried out. Alternatively an event may be required as
const ReceiveEvent = require('nahmii-contract-abstractions').getEvent('ClientFund', 'ReceiveEvent');
FAQs
Smart contract abstractions for nahmii deployed to mainnet
The npm package nahmii-contract-abstractions receives a total of 1 weekly downloads. As such, nahmii-contract-abstractions popularity was classified as not popular.
We found that nahmii-contract-abstractions 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
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.