Go to file
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
.github/workflows refactor: examples/chat -> examples/client 2021-07-29 15:06:15 -05:00
examples feat: allow network to be switched 2021-09-07 19:26:18 -05:00
status feat: add contracts support 2021-09-07 19:28:12 -05:00
test feat: add contracts support 2021-09-07 19:28:12 -05:00
vendor feat: add contracts support 2021-09-07 19:28:12 -05:00
.gitattributes ci: run tests via GitHub Actions 2020-09-02 15:58:35 -05:00
.gitignore refactor: nim_status -> status 2021-07-29 14:23:26 -05:00
.gitmodules build: remove nim-stew 2021-08-03 19:29:36 +10:00
LICENSE feat: integrate nim-sqlcipher 2020-11-18 13:34:24 -06:00
Makefile refactor: organize non-api modules under status/private/ 2021-08-05 04:38:07 -05:00
README.md refactor: nim_status -> status 2021-07-29 14:23:26 -05:00
env.sh feat: integrate nim-sqlcipher 2020-11-18 13:34:24 -06:00
status.nim refactor: example client does not import non-api modules of nim-status 2021-08-05 18:52:44 -05:00
status.nimble refactor: examples/chat -> examples/client 2021-07-29 15:06:15 -05:00

README.md

nim-status

License: MIT Stability: experimental Tests (GitHub Actions)

Nim implementation of the Status protocol.

Corresponds roughly to status-go, which is consumed by status-react.

Installation

git clone https://github.com/status-im/nim-status
cd nim-status
make update
make

For more output use make V=1 ....

Use 4 CPU cores with make -j4 ....

Usage

import status

License

Licensed and distributed under the MIT License.