5b416c8122
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. |
||
---|---|---|
.github/workflows | ||
examples | ||
status | ||
test | ||
vendor | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
Makefile | ||
README.md | ||
env.sh | ||
status.nim | ||
status.nimble |
README.md
nim-status
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.