Standalone Repo for the Sticker Market Dapp for Status
Go to file
RichΛrd 36645ea264
Update StickerMarket.sol
2020-04-01 09:03:19 -04:00
analyzers First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
app First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
config add contracts addresses 2019-07-30 20:35:28 -03:00
contracts Update StickerMarket.sol 2020-04-01 09:03:19 -04:00
crytic-export tests updated, readme updated 2019-06-04 22:08:19 -04:00
docs First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
test merge changes 2019-06-15 00:12:22 -03:00
utils First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
.babelrc First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
.eslintrc.json First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
.gitattributes First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
.gitignore First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
README.md First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
embark.json First commit (fbf10b5527) 2019-06-05 18:35:01 +01:00
package.json Change NFT (and SafeMath) to use OpenZeppelin lib 2019-06-24 04:57:52 -03:00

README.md

Status.im Sticker Market Dapp

Folders

  • analyzers: Folder for analyzer output files
  • app: Folder containing application for moving Status Test Tokens
  • config: Embark config files
    • development: folder for development network specific config
      • genesis.json: configure genesis for development network
    • blockchain.js
    • communication.js
    • contracts.js
    • namesystem.js
    • storage.js
    • webserver.js
  • contracts: Folder for storing all Solidity contracts
    • common: Common standard contracts
    • status: Status specific contracts
      • sticker-market: Sticker Market specific contracts
        • StickerMarket.sol: Main Sticker Market Logic here
        • StickerMarketMigrated.sol: Example of upgrade logic and a contract that controls the old StickerMarket.sol.
    • token: Standard token contracts
  • doc
    • project_questions.md: file answering a list of questions around project status
    • specification.md: current specefication document
  • test: Folder for tests

How to run

Usage:

git clone https://github.com/status-im/sticker-market.git
cd sticker-market
npm install
npm start
Contract Deploy Test UI
token/TestToken Yes Yes Yes
token/ERC20Token No Yes Yes

How to run tests

Usage:

$ npx embark test ./test/stickermarket.js


Compiling contracts
contracts/status/sticker-market/README.md doesn't have a compatible contract compiler. Maybe a plugin exists for it.
contracts/status/sticker-market/README.md doesn't have a compatible contract compiler. Maybe a plugin exists for it.
  StickerMarket
    ✓ should register packs (1120ms) - [3592664 gas]
    ✓ should categorize packs (894ms) - [810984 gas]
    ✓ should uncategorize packs (971ms) - [288564 gas]
    ✓ should mint packs (1855ms) - [3842190 gas]
    ✓ should mint packs with approveAndCall (1920ms) - [3589096 gas]
    ✓ should register pack with approveAndCall (438ms) - [904022 gas]
    ✓ should purge packs (474ms) - [361631 gas]
    ✓ should not mint a pack with price 0 (275ms) - [466774 gas]
    ✓ should change ownership of pack by user (122ms) - [302190 gas]
    ✓ should change ownership of pack by controller (120ms) - [301833 gas]
    ✓ should change price of pack by user (156ms) - [320666 gas]
    ✓ should change price of pack by controller (119ms) - [335373 gas]
    ✓ should change pack mintability by user (122ms) - [315775 gas]
    ✓ should change pack mintability by controller (126ms) - [315418 gas]
    ✓ should change pack contenthash by controller (186ms) - [320989 gas]
    ✓ should migrate registry (292ms) - [596407 gas]


  16 passing (10s) - [Total: 31234047 gas]