export CONTRACT="dev-1667958216740-89040802063606"
export CONTRACT="events.nativo-market.testnet"
export CONTRACT="v4.nativo-market.testnet"
./build_develop.sh
./build.sh
./migrate.sh
near call $CONTRACT new '{"owner_id":"dokxo.testnet"}' --accountId dokxo.testnet
near call $CONTRACT storage_deposit '{"account_id":"dokxo.testnet"}' --accountId dokxo.testnet
near view $CONTRACT get_owner_account
near view $CONTRACT get_treasury
near view $CONTRACT get_mint_fee
near view $CONTRACT get_ntv_multiplier
near call error.nativo-market.testnet set_owner_account '{"new_account":"dokxo_testnet"}' --accountId dokxo.testnet
near call $CONTRACT set_treasury '{"new_account":"joehank.testnet"}' --accountId dokxo.testnet
near call $CONTRACT set_mint_fee '{"mint_fee":0.995}' --accountId dokxo.testnet
near call $CONTRACT set_ntv_multiplier '{"multiplier":4}' --accountId dokxo.testnet
near call $CONTRACT add_new_ext_contract '{"address_contract":"minterv2.nativo-minter.testnet","contract_name":"Nativo minter"}' --accountId dokxo.testnet
sputnikdao proposal upgrade ./res/nativo_market_std.wasm error.nativo-market.testnet --daoAcc nativo-dao --accountId darkdokxo.testnet
sputnikdao proposal call $CONTRACT set_owner_account '{"new_account":"alexiaab.testnet"}' --daoAcc nativo-dao --accountId nativo-market.testnet
sputnikdao proposal call $CONTRACT set_treasury '{"new_account":"dokxo.testnet"}' --daoAcc nativo-dao --accountId nativo-market.testnet
near call $CONTRACT get_sale '{"nft_contract_token":"minterv2.nativo-minter.testnet.7"}' --accountId dokxo.testnet
near view $CONTRACT get_sales_by_owner_id '{"account_id":"joehank.testnet","from_index":"0","limit":25}'
near view $CONTRACT storage_balance_of '{"account_id":"alexiaab.testnet"}'
near view $CONTRACT get_sales_by_nft_contract_id '{"nft_contract_id":"minterv2.nativo-minter.testnet","from_index":"0","limit":25}'
near call $CONTRACT update_price '{"nft_contract_id":"mktstandard.testnet","token_id": "227","price":"10000000000000000000000"}' --account_id joehank.testnet --depositYocto 1
near call $CONTRACT offer '{"account_id":"dokxo.testnet","nft_contract_id":"minterv2.nativo-minter.testnet","token_id":"93"}' --accountId darkdokxo.testnet --deposit 1 --gas=300000000000000
near call $CONTRACT remove_sale '{"nft_contract_id":"minterv2.nativo-minter.testnet","token_id": "93"}' --account_id dokxo_test.testnet --depositYocto 1
near view $CONTRACT get_supply_sales --accountId dokxo.testnet
near view $CONTRACT get_supply_by_owner_id '{"account_id":"dokxo.testnet"}' --accountId dokxo.testnet
near view $CONTRACT get_sales_by_owner_id '{"account_id":"dokxo.testnet","from_index":"0","limit":10 }' --accountId dokxo.testnet
near view $CONTRACT get_supply_by_nft_contract_id '{"nft_contract_id":"minterv2.nativo-minter.testnet"}' --accountId dokxo.testnet
near view $CONTRACT get_sales_by_nft_contract_id '{"nft_contract_id":"minterv2.nativo-minter.testnet","from_index":"0","limit":10 }' --accountId dokxo.testnet
near call minterv2.nativo-minter.testnet nft_approve '{"token_id":"93","account_id":"dev-1664228873834-30077831629755","msg":"{\"market_type\":\"on_sale\",\"price\":\"7000000000000000000000\",\"title\":\"flames\",\"media\":\"bafybeib6hehfeyl5tmtj7w4uqwhtfhlyavmnkro5xdh4s224fiqlrykcay\",\"creator_id\":\"dokxo.testnet\"}"}' --accountId dokxo.testnet --deposit 0.1 --gas=300000000000000
near call $CONTRACT add_offer '{"nft_contract_id":"minterv2.nativo-minter.testnet","token_id":"42","owner_id":"nativo-market.testnet"}' --accountId dokxo.testnet --deposit 0.4
near call $CONTRACT delete_offer '{"nft_contract_id":"minterv2.nativo-minter.testnet","token_id":"93"}' --accountId darkdokxo.testnet --depositYocto 1
near view $CONTRACT get_offer '{"nft_contract_id":"minterv2.nativo-minter.testnet","token_id":"93"}' --accountId dokxo.testnet
near view $CONTRACT get_supply_offers_by_owner_id '{"account_id":"dokxo.testnet"}' --accountId dokxo.testnet
near view $CONTRACT get_supply_offers_by_bidder_id '{"account_id":"darkdokxo.testnet"}' --accountId dokxo.testnet
near view $CONTRACT get_offers_by_owner_id '{"account_id":"dokxo.testnet","from_index":"0","limit":10 }' --accountId dokxo.testnet
near view $CONTRACT get_offers_by_bidder_id '{"account_id":"dokxo_test.testnet","from_index":"0","limit":18 }' --accountId dokxo.testnet
near view $CONTRACT get_supply_offers_by_nft_contract_id '{"nft_contract_id":"minterv2.nativo-minter.testnet"}' --accountId dokxo.testnet
near view $CONTRACT get_offers_by_nft_contract_id '{"nft_contract_id":"minterv2.nativo-minter.testnet","from_index":"0","limit":10 }' --accountId dokxo.testnet