NFT staking allows you to farm $Ntv as reward blocking your NFT by tim period without loosing the ownership of your NFT's
- Secure your NFT in NFT staking and request a reward of $NTV tokens
- Suscribe your NFT to events collections and get more rewards($NTV tokens + owner collection rewards).
export CONTRACT_ID="dev-1661277753358-64242303541632"
export CONTRACT_ID="staking.nativo_mkt.testnet"
./devdeploy.sh
./build.sh
./migrate.sh
near call $CONTRACT_ID new '{"owner_account_id": "dokxo.testnet","treasury_account_id": "dokxo.testnet","contract_interest": 800,"contract_fee": 200 }' --accountId dokxo.testnet
near view $CONTRACT_ID get_contract_owmer
near view $CONTRACT_ID get_contract_treasury
near view $CONTRACT_ID get_contract_interest
near view $CONTRACT_ID get_contract_fee
near view $CONTRACT_ID is_ntv_enable_minting
near view $CONTRACT_ID get_auctions_stats
near call $CONTRACT_ID set_new_owner '{"new_owner":"dokxo.testnet"}' --accountId v1.nativo.testnet
near call $CONTRACT_ID set_new_treasury '{"new_treasury":"dokxo.testnet"}' --accountId dokxo.testnet
near call $CONTRACT_ID set_new_contract_interest '{"new_contract_interest":100}' --accountId dokxo.testnet
near call $CONTRACT_ID set_new_contract_fee '{"new_contract_fee":100}' --accountId dokxo.testnet
near call $CONTRACT_ID set_is_minting_ntv '{"is_enable":true}' --accountId dokxo.testnet
near call $CONTRACT_ID set_ft_reward_info_contract '{"stake_ft_contract":"nativo_token.testnet","init_state":true,"_reward_multiplier":3,"_max_balance_per_month":10100}' --accountId dokxo.testnet
near view $CONTRACT_ID get_stake_ft_contract '{"stake_ft_contract":"nativo_token.testnet"}'
near view $CONTRACT_ID get_staking_token_by_id '{"st_token":0}'
near view $CONTRACT_ID get_all_nfts_for_token '{"from_index":"0","limit":50}'
- Stake has been started 1. Running
- Stake has been paused by the owner 2. Suspended
- Stake has been finished and can be claimed 1. Finished
- If the owner withdraw before the block period ends. 1. Canceled
- if the auction its ended and has a bid 1. Claimed
- The Stake doesnt exist 1. NotFound
near view $CONTRACT_ID get_nfts_for_token_by_status '{"status":"Finished","from_index":"0","limit":50}'
near view $CONTRACT_ID get_tokens_by_owner_status '{"account_id":"dokxo_test.testnet","status":"Running","from_index":"0","limit":50}'
near view $CONTRACT_ID get_tokens_by_owner '{"account_id":"dokxo_test.testnet","from_index":"0","limit":50}'
near call $CONTRACT_ID calculate_reward_nft '{"st_token":2}' --accountId dokxo_test.testnet
you must accept ot decline the withdraw and attach a penalty fee, if the time isnt over yet we'll take the penalty and
near call $CONTRACT_ID withdraw_nft_owner '{"st_token":0,"accept_withdraw":true}' --accountId dokxo.testnet --deposit 0.2
near call alst77.mintspace2.testnet nft_transfer_call '{"receiver_id": "dev-1648670267690-23487881027419","token_id":"0", "msg": "{\"description\": \"list a new nft for auctioning\", \"auction_amount_requested\": 100000000000000000000000000 }"}' --accountId alan_test.testnet --depositYocto 1 --gas 300000000000000
near call paras-token-v2.testnet nft_transfer_call '{"receiver_id": "dev-1647921766612-74437195022952","token_id": "299:9", "msg": "{\"description\": \"list my nft for auctioning\", \"auction_requested\": \"100000000000000000000000000\"}"}' --accountId alan_test.testnet --depositYocto 1 --gas 300000000000000
near call minterv2.nativo-minter.testnet nft_transfer_call '{"receiver_id": "dev-1661277753358-64242303541632","token_id":"48", "msg": "{\"_type\": \"token\",\"reward_token\": \"nativo_token.testnet\" ,\"blocked_period\": 1 }"}' --accountId dokxo_test.testnet --depositYocto 1 --gas 300000000000000
near call minterv2.nativo-minter.testnet nft_transfer '{"receiver_id": "dokxo_test.testnet", "token_id": "48", "memo": "Go Team :)"}' --accountId dev-1661277753358-64242303541632 --depositYocto 1