factory
- a main contract for deployment.token
- a contract that represents each uni and stores its disciplines and matches
cargo build --target wasm32-unknown-unknown --profile testnet --features testnet
near dev-deploy target/wasm32-unknown-unknown/testnet/factory.wasm
near call $ACCOUNT new '{"owner_id": "'$OWNER_ACCOUNT'"}' --accountId $OWNER_ACCOUNT
near call $ACCOUNT add_uni '{"uni_name": "'$UNI_NAME'", "uni_owner_id": "'$UNI_OWNER_ID'"}' --accountId $OWNER_ACCOUNT --deposit 10 --gas 300000000000000
near view $ACCOUNT owner
near view $ACCOUNT get_unis
near call $UNI_ACCOUNT add_discipline '{"discipline": "Math"}' --accountId $UNI_OWNER_ID
near call $UNI_ACCOUNT add_match '{"discipline_match": "SuperMath", "discipline": "Math"}' --accountId $UNI_OWNER_ID
near call $UNI_ACCOUNT delete_match '{"discipline_match": "SuperMath"}' --accountId $UNI_OWNER_ID
near call $UNI_ACCOUNT delete_discipline '{"discipline": "Math"}' --accountId $UNI_OWNER_ID
near view $UNI_ACCOUNT get_disciplines
near view $UNI_ACCOUNT get_all_matches
near view $UNI_ACCOUNT get_discipline_matches '{"discipline": "Math"}'
near view $UNI_ACCOUNT get_match '{"discipline_match": "SuperMath"}'