Socket
Socket
Sign inDemoInstall

iexec-contracts-js-client

Package Overview
Dependencies
59
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    iexec-contracts-js-client

iExec js client to interact with iExec ethereum smart contracts


Version published
Weekly downloads
13
increased by160%
Maintainers
2
Install size
62.7 MB
Created
Weekly downloads
 

Readme

Source

iexec-contracts-js-client

Build Status npm version license

JS client lib to interact with iExec Ethereum smart contracts.

Ressources

Changelog

V5.2

  • optional flavour?: 'standard'|'enterprise' added to the constructor
  • optional useGas?: boolean added to the constructor

V4 to V5.1 migration

[BREAKING] v5.1 uses ethers v5, you may need to update your code
[BREAKING] Instanciation method changes
  • use constructor new IExecContractsClient({ provider, signer, chainId, hubAddress, isNative }) provider must be an ethers v5 Provider, signer must be a connected ethers v5 Signer
[BREAKING] removed jsonRpcProvider
  • jsonRpcProvider is removed from IExecContractsClient, use signer or provider
[BREAKING] deployed resources are NFTs identified by id

the following methods are replaced:

  • getUserObjAddressByIndex -> getUserObjIdByIndex
  • getUserAppAddressByIndex -> getUserAppIdByIndex
  • getUserDatasetAddressByIndex -> getUserDatasetIdByIndex
  • getUserWorkerpoolAddressByIndex -> getUserWorkerpoolIdByIndex

V3.1 to V4 migration

ethProvider accepts rpc url
  • A json-rpc url can be used as ethProvider to access read only methods (other methods will fail)
[BREAKING] Native token usage:
  • For blockchains using the native token as utility token (sidechains) the optional key isNative must be set to true. Default values are provided for iexec sidechains '133' and '134'
const contracts = createIExecContracts({
  ethProvider: web3Signer,
  chainId,
  isNative: true,
});
  • isNative is exposed by IExecContracts Object
  • methods fetchRLCAddress() and getRLCContract() are not exposed by IExecContracts when using native token
[BREAKING] Returned object changes:
  • removed ethProvider
  • removed eth
  • added jsonRpcProvider ethersjs JsonRpcProvider

FAQs

Last updated on 15 Jan 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc