Deploy activity FT contract:
near deploy --wasmFile artfans_activity_ft.wasm --accountId artfans_ft.test.near
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
Deploy social network contract:
near deploy --wasmFile artfans_social_network.wasm --accountId artfans_social_network.test.near
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
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
Deploy marketplace contract:
near deploy --wasmFile artfans_marketplace.wasm --accountId artfans_marketplace.test.near
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'
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