nim-status/status
Eric Mastro 5b416c8122 feat: add contracts support
Closes: #279.

Adds contracts that can be used with `nim-web3` as part of the effort to enable `nim-status` to support stickers.

Adds support for any ERC-20 token contract that has been added in to nim-status.

Adds SNT, Stickers, StickerMarket, and StickerPacks contract for use with stickers.

Adds integration tests to verify they are working.

1. the added integration tests currently rely on the default current network, which is mainnet, and uses infura to make some real calls which may not be ideal. There could possibly be more work to make these unit testable, however part of the exercise was to show consumers how the public API could be used.
2. This PR bumps `nim-web3` to a forked branch that adds better support for `Bool` to `nim-web3` (https://github.com/status-im/nim-web3/pull/39). If that PR is merged, `nim-status` will need to point back to the original `nim-web3` repo.
3. This PR introduces a lenghty export statement in `status/private/contracts.nim` because `nim-web3` does not export generated contracts and procs. There is an open PR (https://github.com/status-im/nim-web3/pull/40) that addresses this. If this PR is merged, we can remove the lengthy export statement.
2021-09-07 19:28:12 -05:00
..
api feat: add contracts support 2021-09-07 19:28:12 -05:00
private feat: add contracts support 2021-09-07 19:28:12 -05:00
api.nim feat: integrate nim-waku within the nim-status library 2021-09-07 19:23:07 -05:00