Skip to content
OZOTOP is the decentralized experts community and self-regulating society model with robonomic ecosystem. Read more https://ozotop.io
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ride
test
.gitignore
.sm-env
README.md
package.json
scheme
surfboard.config.json

README.md

OZOTOP

OZOTOP is the decentralized experts community and self-regulating society model with robonomic ecosystem. Read more https://ozotop.io

  1. Install Waves Keeper [https://chrome.google.com/webstore/detail/waves-keeper/lpilbniiabackdjcionkobglmddfbcjo]
  2. Create accounts in Waves Keeper for Company and for freeze4, freeze5, freeze6 and write seeds.
  3. Send 5 Waves to Company account and 1 Waves to freeze4, freeze5, freeze6 for pay comission

Install and run command

  1. Run command:
npm install
cp .sm-env .env

  1. Fill variables in file .env for example:
SEEDCOMPANY="seed 1..."
FREEZE4SEED="seed 2..."
FREEZE5SEED="seed 3..."
FREEZE6SEED="seed 4..."
END_TIME_PRESELL="November 01, 2019 00:00:01"
TIME_ISSUE="August 02, 2019 00:00:01"
NAME_TOKEN="QWERTY"

  1. Deploy token and transfer from company account to freeze4, freeze5, freeze6 by command:
npm run deploy
  1. Open Waves Keeper and press button "Wallet" keeper

  2. Choice tab wallet wall1

  3. For issued token OD97UH we can see info: issue_info

  4. Press link "View Transaction" in the opened popup window: info_token

  5. The link redirected to new a window of the browser with the transaction: explorer-tx-info

  6. There are transactions after issue 1123581321 LRM8RL tokens on company account and sent tokens for freeze: [https://wavesexplorer.com/testnet/address/3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg]

  7. Account freeze4 get 191008824 LRM8RL tokens [https://wavesexplorer.com/testnet/address/3N15pqgAHbMviVmeoseJ7H6AGW8mSoMgpdn]

  8. Account freeze5 get 191008824 LRM8RL tokens [https://wavesexplorer.com/testnet/address/3N15pqgAHbMviVmeoseJ7H6AGW8mSoMgpdn]

  9. Account freeze6 get 191008824 LRM8RL tokens [https://wavesexplorer.com/testnet/address/3NB1Mapksm5wFdW6tboDPT8NAXVbsqpqUVc]

  10. Company balance 550 554 849 LRM8RL: company-balance

  11. Success set script for freeze of the account freeze4 [https://wavesexplorer.com/testnet/tx/ARvHAZaxkuDcX6GmZ9doa5SuPG2YbyJ5nZZkyY5yiRMH]

  12. Success set script for freeze of the account freeze5 [https://wavesexplorer.com/testnet/tx/2C9T4uyi2ikAeXPH9QwhSQvr2nbxweZTbdLtuddxX1SH]

  13. Success set script for freeze of the account freeze6 [https://wavesexplorer.com/testnet/tx/3zDCQCA4PqZFchrccQL7Gu1oYdPnNzPsABV4DTUh3Pe1]

  14. Company account can send order sell/buy on dex: listingDex

Change date presell

  1. Set in file .env value for NEW_TIME_PRESELL for example:
NEW_TIME_PRESELL="October 01, 2019 00:00:01"
  1. Run command for change date presell in a terminal of a IDE
npm run new-date-presell
  1. There is new presell date in blockchain : "value": 1569877201000. It we can see in the terminal: newDate

or check it by request [https://pool.testnet.wavesnodes.com/addresses/data/3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg]

Change date by waves IDE

  1. Start waves IDE in [https://ide.wavesplatform.com/].
  2. Switch in waves keeper extantion company account as main.
  3. In console the IDE paste an run command:
broadcast(invokeScript({dApp: "ADDRESSCOMPANY", call: {function: "setEndPresellTime", fee: 9000000 args: [{type: "integer", value: newDatePesellValue}]} }, "SEEDCALLERACCOUNT"))

where newDatePesellValue - time in millisecond for example 1569186001000 for check or convert need visit [https://codechi.com/dev-tools/date-to-millisecond-calculators/]

For testing

  1. Set in file surfboard.config.json seed of an account which pay comissions in devnet or testnet
  2. Replace in 25 string of file surfboard.config.json "testnet" to "devnet"
  3. run tests:
npm run ozo-test
You can’t perform that action at this time.