![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
nahmii-contract-abstractions-ropsten
Advanced tools
Smart contract abstractions for nahmii deployed to Ropsten
This package hosts contract abstractions generated from the deployment of nahmii contracts to the Ropsten Ethereum testnet.
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-ropsten
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-ropsten/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-ropsten
).
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-ropsten');
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-ropsten
).
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-ropsten').getEvent('ClientFund', 'ReceiveEvent');
FAQs
Smart contract abstractions for nahmii deployed to Ropsten
The npm package nahmii-contract-abstractions-ropsten receives a total of 4 weekly downloads. As such, nahmii-contract-abstractions-ropsten popularity was classified as not popular.
We found that nahmii-contract-abstractions-ropsten 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.