Skip to content

proposal 47 submission 11 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 500 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
500 commits
Select commit Hold shift + click to select a range
e83bd1d
add static in rootNft contract, fix debot address
DonniKDS Dec 10, 2021
a948a3a
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
5f4acf0
fix create dir and rename dir
DonniKDS Dec 10, 2021
42cbed2
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
d97351e
Added creating of tokens
jobdn Dec 10, 2021
1a960c4
Add 'proposal-47/submission-11/NFT_collection_distributor/' from comm…
ayvaz-miftakhov Dec 10, 2021
5e7d19b
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
ab4e0f1
Made pull
jobdn Dec 10, 2021
37dbbbf
Merge branch 'main' of https://gitlab.com/itway/nft-collection-node-1
Dec 10, 2021
8b5c3dc
add save file
Dec 10, 2021
8700792
Merge branch 'saveJson' into 'main'
Dec 10, 2021
0449fe3
debot
DonniKDS Dec 10, 2021
d913bbc
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
35de37c
fix debot link
DonniKDS Dec 10, 2021
b0389d0
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
679b876
Added the temp result dir for mint of the tokens
jobdn Dec 10, 2021
93e17be
fix uint min and max value
DonniKDS Dec 10, 2021
a3831f8
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
d4eebf8
Merge branch 'main' into 'gen-warrior'
jobdn Dec 10, 2021
53f9692
fix deploy and collection List
Dec 10, 2021
a3a87fc
Merge branch 'someFix' into 'main'
Dec 10, 2021
bacd224
fix
Sterben33 Dec 10, 2021
077a55b
Merge branch 'fix-empty-name' into 'main'
DonniKDS Dec 10, 2021
1b766d3
debot address
DonniKDS Dec 10, 2021
b80f77a
settings
DonniKDS Dec 10, 2021
2750ea2
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 10, 2021
740b3a0
Merge branch 'main' of gitlab.com:itway/nft-collection-node-1
jobdn Dec 10, 2021
dd3e909
Merge branch 'main' into gen-warrior
jobdn Dec 10, 2021
47fecdd
Merge branch 'gen-warrior' into 'main'
kouzmad Dec 10, 2021
711e2da
Fixes
jobdn Dec 10, 2021
4f12c74
Merge branch 'main' into 'gen-warrior'
jobdn Dec 10, 2021
153fa0f
The first draft version
nickgipp Dec 10, 2021
25270ed
Merge https://gitlab.com/itway/nft-collection-node-1 into mintingForm
nickgipp Dec 10, 2021
ec5ae70
Merge branch 'gen-warrior' into 'main'
kouzmad Dec 10, 2021
9e6bdc8
Merge https://gitlab.com/itway/nft-collection-node-1 into mintingForm
nickgipp Dec 11, 2021
421c387
fix contract generator
DonniKDS Dec 11, 2021
984f601
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 11, 2021
6af88fe
Merge https://gitlab.com/itway/nft-collection-node-1 into mintingForm
nickgipp Dec 11, 2021
21a4b9d
keys for devnet
Dec 11, 2021
01968d7
Merge branch 'main' of https://gitlab.com/itway/nft-collection-node-1
Dec 11, 2021
4810ef3
Deleted unnecessary log string
jobdn Dec 11, 2021
590e0ae
Rename file wich generates token image
jobdn Dec 11, 2021
de2f755
Updated branch fix-mint by main branch
jobdn Dec 11, 2021
de42b57
The second draft version
nickgipp Dec 11, 2021
73b62f1
Merge branch 'mintingForm' into 'main'
kouzmad Dec 11, 2021
525efa5
fix tokenInfo
Dec 11, 2021
179f96b
rename tag
Dec 11, 2021
766342c
add try catch to collection list
Dec 11, 2021
8ac2436
Merge branch 'addTryCatch' into 'main'
Dec 11, 2021
595be12
Merge branch 'main' of https://gitlab.com/itway/nft-collection-node-1…
Dec 11, 2021
dacd835
Merge branch 'main' into fix-mint
jobdn Dec 12, 2021
130d284
Updated the path of hard code parameters to normal parameters from form
jobdn Dec 12, 2021
65fba41
FixForm
nickgipp Dec 12, 2021
dc9abdc
Merge https://gitlab.com/itway/nft-collection-node-1 into mintingFormFix
nickgipp Dec 12, 2021
c422c04
FixForm
nickgipp Dec 12, 2021
a99b8e9
Fix Form and Collection list
nickgipp Dec 12, 2021
e6a9a2c
Fix Collection list
nickgipp Dec 12, 2021
63a3354
add video types as video tag and other types as a tag
Dec 12, 2021
c5d8048
Added the mint for the tokens
jobdn Dec 12, 2021
5a7ddf7
Merge branch 'tokenInfo' into 'main'
Dec 12, 2021
4af11dc
Merge branch 'FixMintingForm' into fix-mint
jobdn Dec 12, 2021
760f4e7
Merge https://gitlab.com/itway/nft-collection-node-1 into FixMintingForm
nickgipp Dec 12, 2021
e2c9ec0
Fix enum
nickgipp Dec 12, 2021
125da74
Updated package-lock
jobdn Dec 13, 2021
819b7b6
Updated package-lock
jobdn Dec 13, 2021
2f9259d
Merge branch 'FixMintingForm' into fix-mint
jobdn Dec 13, 2021
a025c9f
Added the necessary parameters for minting token
jobdn Dec 13, 2021
39eb595
Fix arr
nickgipp Dec 13, 2021
087b8d4
to local net
Dec 13, 2021
306d5bf
Added try/catch and changed getNintParams function params
jobdn Dec 13, 2021
a0ab583
Merge branch 'localNet' into 'main'
Dec 13, 2021
34237b9
Fix name
nickgipp Dec 13, 2021
3bf5609
fix mediafile
DonniKDS Dec 13, 2021
4438a27
Merge branch 'FixMintingForm' into 'main'
kouzmad Dec 13, 2021
aed602e
events removed / refactoring
ayvaz-miftakhov Dec 13, 2021
5a1b831
fix mediafile v2
DonniKDS Dec 13, 2021
7e50bd9
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 13, 2021
54422d2
Changed the newtwork to local
jobdn Dec 13, 2021
699cb94
Merge branch 'main' into fix-mint
jobdn Dec 13, 2021
054b559
Fix form
nickgipp Dec 13, 2021
dae8fb2
Fix form Enum1
nickgipp Dec 13, 2021
0e63214
Merge branch 'FixAfterEnumModel' into 'main'
kouzmad Dec 13, 2021
4998c88
Merge branch 'main' into fix-mint
jobdn Dec 13, 2021
730a078
Design information about the token
nickgipp Dec 13, 2021
b068945
fix output enum
Dec 13, 2021
4b70be7
Merge branch 'fixOutputEnum' into 'main'
Dec 13, 2021
89d4d24
Merge branch 'DesignTokenInfo' into 'main'
kouzmad Dec 13, 2021
279918d
tests added
ayvaz-miftakhov Dec 13, 2021
b7a0ac2
README file updated
ayvaz-miftakhov Dec 13, 2021
9ec17e2
license added
ayvaz-miftakhov Dec 13, 2021
4015297
timeout
DonniKDS Dec 13, 2021
9070d8b
Merge branch 'main' into 'korotkyi'
DonniKDS Dec 13, 2021
09027e5
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 13, 2021
de1d028
Merge branch 'dev-contracts' into 'main'
ayvaz-miftakhov Dec 13, 2021
7c128d7
FixTransmissionEnumForm
nickgipp Dec 13, 2021
f538c48
-cL
nickgipp Dec 13, 2021
2283841
Added the checking for types
jobdn Dec 13, 2021
5afee29
Merge branch 'main' into fix-mint
jobdn Dec 13, 2021
4b6edfc
Merge branch 'FixTransmissionEnumForm' into 'main'
kouzmad Dec 13, 2021
280e8ec
merge conflicts resolved
ayvaz-miftakhov Dec 13, 2021
0f1cf80
Added the loops to create params for minting
jobdn Dec 13, 2021
0457119
FixFormMintingToken and commission
nickgipp Dec 13, 2021
0572685
MediaField
nickgipp Dec 13, 2021
06c6523
Merge branch 'FixFormMintingToken' into fix-mint0.2
jobdn Dec 14, 2021
77498c4
Merged branch with dropped list
jobdn Dec 14, 2021
e3ce924
Changed language
jobdn Dec 14, 2021
c061fa7
Merge branch 'fix-mint0.1' into 'main'
kouzmad Dec 14, 2021
94440ef
added check for identical variable names
DonniKDS Dec 14, 2021
ef8816c
Merge branch 'korotkyi' into 'main'
DonniKDS Dec 14, 2021
a0545a0
Media Transfer
nickgipp Dec 14, 2021
516f586
contracts refactored
ayvaz-miftakhov Dec 14, 2021
89111d3
direct sale tests added
ayvaz-miftakhov Dec 14, 2021
525b5d4
Merge branch 'dev-sale-refactor' into 'main'
ayvaz-miftakhov Dec 14, 2021
104fe08
added comission to creator
Sterben33 Dec 14, 2021
462e6a4
added comission to creator1
Sterben33 Dec 14, 2021
3a51131
Media Transfer 1
nickgipp Dec 14, 2021
34beedc
setting fix
Sterben33 Dec 14, 2021
24fc5ea
FixDeploy
nickgipp Dec 14, 2021
fef4ea9
Merge commit '525b5d4fd94f2cf367c65bf0a80c0b3f8524259f'
ayvaz-miftakhov Dec 14, 2021
23e35b2
add load to button
Dec 14, 2021
18ac230
to local net
Dec 14, 2021
5940942
Added the styles for demo-minitng and fixed the body overflow
jobdn Dec 15, 2021
d3eb70e
Added the page fot demo-minting
jobdn Dec 15, 2021
7df2c2d
Final
nickgipp Dec 15, 2021
25414f4
ming.pug conf
nickgipp Dec 15, 2021
c0a89ae
Merge branch 'main' into 'MediaTransfer'
nickgipp Dec 15, 2021
a491ce2
Merge branch 'MediaTransfer' into 'main'
kouzmad Dec 15, 2021
5c1f0cc
Fix
nickgipp Dec 15, 2021
ab74fe2
Merge branch 'MediaTransferFix' into 'main'
kouzmad Dec 15, 2021
32fc62c
Working version
jobdn Dec 15, 2021
87be5ef
Added the demo file to create collection from json file
jobdn Dec 15, 2021
8206997
complete loader
Dec 15, 2021
064378b
Merge branch 'main' into 'loader'
Dec 15, 2021
b8464eb
Merge branch 'loader' into 'main'
Dec 15, 2021
1a6193d
fix tab in minting
Dec 15, 2021
4d6f681
Merge branch 'loader' into 'main'
Dec 15, 2021
ebfbc9b
Merge branch 'main' into 'demo-mint'
jobdn Dec 15, 2021
586dc0f
Merge branch 'creator-comission' into 'main'
ayvaz-miftakhov Dec 15, 2021
c3c6294
Merge branch 'demo-mint' into 'main'
kouzmad Dec 15, 2021
a6b1f28
change receive params for minting
Dec 15, 2021
9dac913
Merge branch 'main' into 'paramsToMinting'
Dec 15, 2021
bade5d1
Merge branch 'paramsToMinting' into 'main'
Dec 15, 2021
bafb275
fix ipfs media
Dec 15, 2021
a0385cc
Merge branch 'ipfs' into 'main'
Dec 15, 2021
5da269e
Design variant 1
nickgipp Dec 15, 2021
bbd2197
Merge conflict Fix
nickgipp Dec 15, 2021
536f41e
After conflicts
nickgipp Dec 15, 2021
a33c876
After conflicts+1
nickgipp Dec 15, 2021
98c9bf4
After conflicts+
nickgipp Dec 16, 2021
2b846c1
Merge branch 'main' into 'DesignSite-'
nickgipp Dec 16, 2021
c7de61d
Merge branch 'DesignSite-' into 'main'
kouzmad Dec 16, 2021
cf054a8
+FromSaleToken
nickgipp Dec 16, 2021
9cfcd6b
Merge branch 'FormSaleToken' into 'main'
kouzmad Dec 16, 2021
a50945b
Fixed
jobdn Dec 16, 2021
a470fbc
Merge branch 'demo-mint0.1' into 'main'
kouzmad Dec 16, 2021
cf090b0
minting fee fixed
ayvaz-miftakhov Dec 16, 2021
68decc9
Merge branch 'dev-mint-fee' into 'main'
ayvaz-miftakhov Dec 16, 2021
48708f0
fix minting
Dec 16, 2021
f5e951d
Merge branch 'minting' into 'main'
Dec 16, 2021
e852817
Сorrections1
nickgipp Dec 16, 2021
adf3392
Сorrections2
nickgipp Dec 16, 2021
3bdbbbd
Merge https://gitlab.com/itway/nft-collection-node-1 into SiteСorrect…
nickgipp Dec 16, 2021
0a81181
Merge branch 'SiteСorrections' into 'main'
kouzmad Dec 16, 2021
228ff58
directSale
DonniKDS Dec 16, 2021
8193784
IconButton
nickgipp Dec 16, 2021
d5c4528
Merge branch 'SiteIcon' into 'main'
kouzmad Dec 16, 2021
7b76f10
Added the black colorto the text in the home
jobdn Dec 16, 2021
2bea667
eeeeeee
DonniKDS Dec 16, 2021
94a225b
Merge branch 'test0.1' into 'main'
kouzmad Dec 16, 2021
7a54321
Corrections of the form
nickgipp Dec 17, 2021
bd86fdd
Merge commit '94a225b27c28f89c965d995e6cf814b97f0a069d'
ayvaz-miftakhov Dec 17, 2021
d560178
add start sale
DonniKDS Dec 17, 2021
05ecf04
Merge branch 'korotkyi2' into 'main'
DonniKDS Dec 17, 2021
d24ad2c
Merge branch 'SiteCorrectionViews' into 'main'
DonniKDS Dec 17, 2021
51bba0c
add sale tokens
DonniKDS Dec 17, 2021
e5add1c
delete log
DonniKDS Dec 17, 2021
298c77b
Merge branch 'add-sale-tokens' into 'main'
DonniKDS Dec 17, 2021
e2dc788
init
Sterben33 Dec 17, 2021
396b99c
Merge branch 'main' of https://gitlab.com/itway/nft-collection-node-1…
Sterben33 Dec 17, 2021
ff180bb
Presumably working purchase debot
Sterben33 Dec 17, 2021
45fb825
fix contracts deploy
DonniKDS Dec 17, 2021
2dee8e6
Merge branch 'fix-contracts-deploy' into 'main'
DonniKDS Dec 17, 2021
f423e36
fix debot
DonniKDS Dec 17, 2021
e55c06c
sign token
Dec 17, 2021
e8fc328
Merge branch 'fix-contracts-deploy' into 'main'
DonniKDS Dec 17, 2021
2816a8d
Merge branch 'signToken' into 'main'
Dec 17, 2021
0100624
Corrections
nickgipp Dec 17, 2021
c9cc332
Merge branch 'SiteCorrectionViews1' into 'main'
kouzmad Dec 17, 2021
08de564
selling debot
ayvaz-miftakhov Dec 17, 2021
439a4c0
Docs 0.1
jobdn Dec 18, 2021
5afef91
Merge branch 'write-docs' into 'main'
kouzmad Dec 18, 2021
15dc078
User Price
Dec 18, 2021
e25afde
Merge branch 'mintingPrice' into 'main'
Dec 18, 2021
0ed1cc0
Fixed early redirect
Sterben33 Dec 18, 2021
fb10da0
Removed dependency excess
Sterben33 Dec 18, 2021
0eb5083
add checkError
DonniKDS Dec 18, 2021
918a71e
conflicts
DonniKDS Dec 18, 2021
2c0762f
Merge branch 'main' into 'add-checkMessageError'
DonniKDS Dec 18, 2021
138a0ba
Merge branch 'add-checkMessageError' into 'main'
DonniKDS Dec 18, 2021
ef7f897
Merge branch 'purchase-debot' into 'main'
DonniKDS Dec 18, 2021
95aa23c
minting errors
Dec 18, 2021
3d2dafc
fix undefined
Sterben33 Dec 18, 2021
a3b1b7e
fix contract error service
DonniKDS Dec 18, 2021
8570f68
Merge branch 'fix-contract-error-service' into 'main'
DonniKDS Dec 18, 2021
eacb007
Merge branch 'fix-minting-duration' into 'main'
Dec 18, 2021
28b21d8
Merge branch 'errors' into 'main'
Dec 18, 2021
36714a3
selling debot fix
ayvaz-miftakhov Dec 19, 2021
e448ace
Merge branch 'dev-selling-debot' into 'main'
ayvaz-miftakhov Dec 19, 2021
f4830b4
Changed styles for btn that disappeared
jobdn Dec 19, 2021
172186e
Corrections
nickgipp Dec 19, 2021
d2b944b
Added the img correctly
jobdn Dec 19, 2021
3303a08
Merge branch 'main' into 'CommissionFront'
nickgipp Dec 19, 2021
fe3978b
Added the images to the git docs
jobdn Dec 19, 2021
b434b4e
Merge branch 'CommissionFront' into 'main'
DonniKDS Dec 19, 2021
19d2b7b
Addred the first link to the content table
jobdn Dec 19, 2021
8bc3a85
Added the titles for content table
jobdn Dec 19, 2021
c912287
Added the titles for content table
jobdn Dec 19, 2021
ea456d8
Changed the rarity content
jobdn Dec 19, 2021
ebf0f77
fix mintingPriceForUser
Dec 19, 2021
9d52983
Merge branch 'fixMinting' into 'main'
Dec 19, 2021
bd5281d
add min minting price to minting price
Dec 19, 2021
6193652
Merge branch 'fixMinting' into 'main'
Dec 19, 2021
20b91f6
com
DonniKDS Dec 19, 2021
88711c8
Merge branch 'commissions' into 'main'
DonniKDS Dec 19, 2021
18df69f
Added the commision description
jobdn Dec 19, 2021
af9f915
Updated the photos
jobdn Dec 19, 2021
180cba3
Merge branch 'docs0.1' into 'main'
kouzmad Dec 19, 2021
5de3d74
FixRaritiesMint
nickgipp Dec 20, 2021
35810b7
Merge commit '180cba336bbcca9db13ba9426207cebd7e81a95a'
ayvaz-miftakhov Dec 20, 2021
74dbc9b
Merge branch 'FixRaritiesMint' into 'main'
kouzmad Dec 20, 2021
9543430
add deploy sellingdebod and tokenpurchasedebot
DonniKDS Dec 20, 2021
fb58d17
add
DonniKDS Dec 20, 2021
a732430
Merge branch 'add-deploy-sellingdebod-and-tokenpurchasedebot' into 'm…
DonniKDS Dec 20, 2021
2499e8e
fix deploy from file
Dec 20, 2021
1b5535e
Merge branch 'fixDeployFromFile' into 'main'
Dec 20, 2021
7a8edc3
Fixed form style
jobdn Dec 20, 2021
0512178
Fixed the body for demo
jobdn Dec 20, 2021
9f551c6
Merge branch 'fix-demo' into 'main'
kouzmad Dec 20, 2021
85f0ce2
fix dev sale
DonniKDS Dec 20, 2021
1db8751
Merge branch 'sale-token-dev-fix' into 'main'
DonniKDS Dec 20, 2021
a64b7e5
selling debot fix
ayvaz-miftakhov Dec 20, 2021
3819e0f
Merge branch 'dev-selling-debot' into 'main'
ayvaz-miftakhov Dec 20, 2021
d079814
change ipfs gateway
Dec 20, 2021
c275f34
Merge branch 'ipfsGateway' into 'main'
Dec 20, 2021
0205dc7
debots link
nickgipp Dec 20, 2021
394cbab
change ipfs setting
Dec 20, 2021
8936a48
Merge branch 'ipfsGateway' into 'main'
Dec 20, 2021
bdf4f55
debots link btn
nickgipp Dec 20, 2021
68c8389
Merge branch 'get-debot-address-for-tokens-info-front' into 'main'
DonniKDS Dec 20, 2021
167481a
Merge commit '68c8389521314c539612795d513caa00ad875b64'
ayvaz-miftakhov Dec 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions proposal-47/submission-11/NFT_collection_distributor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dist
node_modules
package-lock.json
src/module/test/*
src/services/temp/*
src/contracts/tests/utils/__pycache__
src/contracts/tests/__pycache__
!src/services/temp/.gitkeep
.idea
.env
.DS_Store
result
21 changes: 21 additions & 0 deletions proposal-47/submission-11/NFT_collection_distributor/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 itway-team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
97 changes: 97 additions & 0 deletions proposal-47/submission-11/NFT_collection_distributor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# NFT_collection_distributor

# Table of content
- [How to use](#how-to-use)
- [How to create a token generator](#how-to-create-a-token-generator)
- [General information about collection](#general-information-about-collection)
- [Add rarity to the tokens](#add-rarity-to-the-tokens)
- [Parameters](#parameters)
- [How to create token generator from JSON file](#how-to-create-token-generator-from-JSON-file)
- [How to create your tokens](#how-to-create-your-tokens)
- [Token minting](#token-minting)
- [Information about token](#information-about-token)
- [Sale tokens](#sale-tokens)
- [How to run tests](#how-to-run-tests)

## How to use
1. Clone repository
2. Run `npm install`
3. Go to */src/config/everscale-settings.ts* and set your parameters
4. Run `npm run build`
5. Run `npm run start`
6. Go to the `localhost:3001`

## Detailed description
---
First of all you need to create a token generator.
# How to create a token generator

After you went to the main page, click on the button `Root contract form` to go to the page for creating a token generator.
![main-page](./public/readme-photos/main-page.png)
## General information about collection
In the `Collection Name` field (marked 1), enter the name of the collection you create. And in the `Maximum number of tokenes` field (marked 2) enter maximum number of tokenes you want to create.
After filling out data about your collection you can click on one of the buttons:
- `Save data` button (marked 3) to create a data about you collection in JSON format.
- `Generate contract code` button (marked 4) to generate code of your collection, **without contracts deployment**, wich will be saved in the `*/results/collections/collection_address/` folder, where `collection_address` is the address of your token generator.
- `Deploy contracts` button (marked 5) to deploy your collection in the blockchain. **The token generator and debot contracts will be created and deployed.**
![root-contract-form](./public/readme-photos/root-contract-form.png)
## Add rarity to the tokens
When you clicked on the `Rarity` tab, you can add the degree of value to the tokens from your collection.
To do this, click on the tick `Use Rarity Types for tokens`.
- In the `Collection type` and `Number of tokens` fields, enter the name of the type and the tokens number of this type respectively.
- You can add and delete the type of tokens with buttons `Add type` and `Delete type` respectively.
![rarity-tab](./public/readme-photos/rarity-tab.png)
## Commisions
You can set some commission will be held when creating and selling tokens, If you press the corresponding ticks in the `Comission` tab.
- The `Commision to Collection Owner` checkmark is responsible for determining the commission for the author who created this collection.
- In the `Minting prices for user` field you can specify the price that the user will pay when creating a token from your collection.
![commision](./public/readme-photos/commision.png)
## Parameters
You can add any parameters for each token, to do this, click on the `Token Parameters` tab.
Enter the parameter name to the `Parameter name` field and select the parameter type in the drop-down `Choose parameter type` list. You can add several parameters of different types.
![token-params](./public/readme-photos/token-params.png)

# How to create token generator from JSON file
---
1) Click to the `Deploy from file` button to generate your collection from JSON file. Your collection will be saved in the `*/results/collections/collection_address/` folder where `collection_address` is the address of your token generator
![deploy-from-file](./public/readme-photos/deploy-from-file.png)

2) Click to the `Choose file` field (marked 1) to select JSON file and then cick the `Deploy` button (marked 2) to deploy your collection.
![deploy-from-file-2](./public/readme-photos/deploy-from-file_2.png)

# How to create your tokens
---
1) To show collection list you have click to the `Collection list` button.
![collection-list](./public/readme-photos/collection-list.png)

2) You can see the collections list you have. You can have more then one collection.
- To mint token of collection click to the `Minting token` button.
- To get information about collection click to the `Info Root` button.
![collection-list-2](./public/readme-photos/collection-list_2.png)

## Token minting
1) When you clicked to the `Minting token` button, you will go to the minting page.
- In the drop-down list (marked 1) , you need to select one of the rariry type that you entered when creating a token generator.
- Then you need to fill the parameters for token (marked 2).
- Click to the `Minting token` button (marked 3) to create your token.
![mint-token](./public/readme-photos/mint-token.png)

2) if you clicked on the `Minting token` button your token is created and you are in the `Generator info` page. Here you would have been if you click on the `Info root` button. On this page you can:
- find general information (marked 1) about your collection such as `Root address`, `Collection name`, `Debot address`.
- go to the debot for also to create tokens (marked 2).
- see information about each token by clicking on the address of the token in the list (marked 3).
![root-info](./public/readme-photos/root-info.png)

## Information about token
We will go to the `Token information` page if you clicked to the address of the token in the tokens list. On this page you can:
- find information about an another token if you enter the an another token address in the field (marked 1)
- see information about this token in the field with information (marked 2)
- sale token by clicking to the `Sale token` button (marked 3)
![token-info](./public/readme-photos/token-information.png)

## Sale tokens
You can set the price of your token and sell it.
![sell](./public/readme-photos/sell-token.png)

# How to run tests
Execute `python -m unittest -v` from */src/contracts/tests* (TestSuite4 required)
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/bin/bash
set -e

TEMP_DIR=../temp
CONTRACTS_DIR=../
DEBOT_NAME=SellingDebot
NETWORK=http://127.0.0.1

#
# This is TON OS SE giver address, correct it if you use another giver
#
GIVER_ADDRESS=0:841288ed3b55d9cdafa806807f02a0ae0c169aa5edfe88a789a6482429756a94
CRYSTALS_AMOUNT=100000000000

# Check if tonos-cli installed
tos=tonos-cli
if $tos --version > /dev/null 2>&1; then
echo "OK $tos installed locally."
else
tos=tonos-cli
if $tos --version > /dev/null 2>&1; then
echo "OK $tos installed globally."
else
echo "$tos not found globally or in the current directory. Please install it and rerun script."
fi
fi

function giver {
$tos --url $NETWORK call --abi local_giver.abi.json $GIVER_ADDRESS \
sendGrams "{\"dest\":\"$1\",\"amount\":$CRYSTALS_AMOUNT}" 1>/dev/null
}

function get_address {
echo $(cat $TEMP_DIR/$1.log | grep "Raw address:" | cut -d ' ' -f 3)
}

function genaddr {
$tos genaddr $CONTRACTS_DIR/$1.tvc $CONTRACTS_DIR/$1.abi.json --genkey $TEMP_DIR/$1.keys.json > $TEMP_DIR/$1.log
}

echo "Step 1. Calculating debot address"
genaddr $DEBOT_NAME
DEBOT_ADDRESS=$(get_address $DEBOT_NAME)

echo "Step 2. Sending $CRYSTALS_AMOUNT tokens to address: $DEBOT_ADDRESS"
giver $DEBOT_ADDRESS

echo "Step 3. Deploying debot"
$tos --url $NETWORK deploy $CONTRACTS_DIR/$DEBOT_NAME.tvc '{}' \
--sign $TEMP_DIR/$DEBOT_NAME.keys.json \
--abi $CONTRACTS_DIR/$DEBOT_NAME.abi.json 1>/dev/null

# tvm_linker init $CONTRACTS_DIR/$DEBOT_NAME.tvc '{"_addrDirectSaleRoot":"0:61ba0ce8efac25adbc514b755ef4287e1c0d80b28b506d029e2166864802ee45"}' $CONTRACTS_DIR/$DEBOT_NAME.abi.json

DEBOT_ABI=$(cat $CONTRACTS_DIR/$DEBOT_NAME.abi.json | xxd -ps -c 20000)

$tos --url $NETWORK call $DEBOT_ADDRESS setABI "{\"dabi\":\"$DEBOT_ABI\"}" \
--sign $TEMP_DIR/$DEBOT_NAME.keys.json --abi $CONTRACTS_DIR/$DEBOT_NAME.abi.json \
1>/dev/null

echo "Step 4. Getting debot info"
$tos --url $NETWORK run \
--abi $CONTRACTS_DIR/$DEBOT_NAME.abi.json \
$DEBOT_ADDRESS getDebotInfo "{}"

echo "Done! Deployed debot with address: $DEBOT_ADDRESS"
Loading