Skip to content

Releases: DePayFi/web3-client

v3.0.3

31 Jul 13:18
eac3224
Compare
Choose a tag to compare

only use connected wallet if it is connected to the desired blockchain

v3.0.1

31 Jul 12:43
02840cd
Compare
Choose a tag to compare

always return a new provider on every request

v3.0.0

26 Jul 12:47
bc927be
Compare
Choose a tag to compare

renaming to depay-web3-client and adding support for bsc

v2.3.2

15 Jul 11:06
27350b5
Compare
Choose a tag to compare

fix ethers import

v2.3.1

15 Jul 08:36
e7f0c2b
Compare
Choose a tag to compare

fix reseting cache store in tests

v2.0.0

14 Jul 11:14
62a7818
Compare
Choose a tag to compare

Introduces URL syntax for blockchain resources. Also adds requesting balance.

v1.3.0

02 Jul 12:42
41f614d
Compare
Choose a tag to compare

adds resetCache to fix stale cache state have an effect on other tests

v1.2.0

29 Jun 06:34
39b125a
Compare
Choose a tag to compare

allow calls with unnamed params and bump web3mock

v1.1.0

28 Jun 11:47
48a4966
Compare
Choose a tag to compare

This version adds cache

cache

The cache attribute of any call allows you to cache calls:

let getAmountsOut = ()=>call({
  cache: 1000, // 1000ms = 1s
  blockchain: 'ethereum',
  address: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d',
  api: abi,
  method: 'getAmountsOut',
  params: {
    amountIn: '1000000000000000000',
    path: ['0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2','0xa0bed124a09ac2bd941b10349d8d224fe3c955eb']
  }
})

getAmountsOut() // makes the call to RPC
getAmountsOut() // returns cached result

The number passed to cache is the amount of ms the cache should stay valid (it's invalidated after Date.now + cache).

If nothing or 0 is passed to cache, the call is not cached at all

v1.0.0

27 Jun 09:25
6417fe7
Compare
Choose a tag to compare

renames abi to api (blockchainagnostic)