Skip to content

Latest commit

 

History

History
83 lines (50 loc) · 2.04 KB

README.md

File metadata and controls

83 lines (50 loc) · 2.04 KB

Deployment steps

1st step

Deploy activity FT contract:

near deploy --wasmFile artfans_activity_ft.wasm --accountId artfans_ft.test.near

2nd step

Initialize activity FT contract:

near call artfans_ft.test.near new '{"owner": "artfans_admin.test.near", "metadata": { "spec": "ft-1.0.0", "name": "Activity Token", "symbol": "TST", "decimals": 24} }' --accountId artfans_admin.test.near

3rd step

Deploy social network contract:

near deploy --wasmFile artfans_social_network.wasm --accountId artfans_social_network.test.near

4th step

Initialize social network contract:

near call artfans_social_network.test.near new '{"owner": "artfans_social_network.test.near", "fee_ft": "artfans_ft.test.near", "settings": { "account_recent_likes_limit": 5, "add_message_extra_fee_percent": 20, "like_post_extra_fee_percent": 20, "like_message_extra_fee_percent": 20, "add_friend_extra_fee_percent": 20, "update_profile_extra_fee_percent": 20, "account_recent_like_extra_fee_percent": 20 } }' --accountId artfans_admin.test.near

5th step

Register social network contract as fee collector of activity FT:

near call artfans_ft.test.near add_fee_collector '{"account_id": "artfans_social_network.test.near"}' --accountId artfans_admin.test.near

6th step

Deploy marketplace contract:

near deploy --wasmFile artfans_marketplace.wasm --accountId artfans_marketplace.test.near

7th step

Initialize marketplace contract:

near call artfans_marketplace.test.near new '{"owner": "artfans_admin.test.near", "activity_ft": "artfans_ft.test.near", "activity_ft_beneficiary": "artfans_social_network.test.near" }' --accountId artfans_admin.test.near
  • activity_ft_beneficiary - account, that will receive NEAR tokens when somebody buys 'activity_ft'

8th step

Register the marketplace contract as activity FT minter:

near call artfans_ft.test.near add_minter '{"account_id": "artfans_marketplace.test.near" }' --accountId artfans_admin.test.near