Main thing contract which owns con_thing_info
- thing_string: as string representation of the thing that is to be unique
- name: A name for this thing, which will be unique to the contract (max 25chars). Names are formatted to lowercase and all spaces removed. This is done to enforce uniqueness.
- description: a description of the unique thing (max 128chars)
- meta: A dictionary object for passing in meta info about the thing which is outside of the required thing data.
Creates a unique thing in the smart contract
- uid already exists in state
- description exists and has a length <= 128
- name exits, is unique, and has a length <= 25
- thing_string exists
- uid: unique id of the thing you want to buy
Transfers ownership of the thing after transferring the "price" in TAU from tx sender to owner. This requires a previous tx to currency.approve to give "con_thing_master" permission to transfer on the sender's behalf
- price > 0, "thing is not for sale"
- if price_hold: price_hold == tx sender, "thing is being held for someone else"
- (in currency contract) TAU balance of tx sender == allowance provided for con_thing_master
- uid: unique id of the thing you want to sell (must be owner of thing)
- amount: the amount, in TAU, to list thing for
Allows the owner of a thing to set a price, in TAU, that the thing can be bought for.
- owner == tx sender, "thing not owned by sender"
- uid: unique id of the thing you want to sell (must be owner of thing)
- amount: the amount, in TAU, to list thing for
- hold: supply a vk to make the sale exclusive to this person
Allows the owner of a thing to set a price, in TAU, that the thing can be bought for. This thing can only be bought by the person who matches the "hold" value.
- owner == tx sender, "thing not owned by sender"
- uid: unique id of the thing you want to sell (must be owner of thing)
- new_owner: the vk to transfer ownership to
Allows the transfer of a thing without a TAU transaction
- owner == tx sender, "thing not owned by sender"
- owner != new_owner, "thing already owned by new_owner"
- uid: unique id of the thing you want to sell (must be owner of thing)
Allows any lamden user to like a thing. One vk can only like a think once
- ['likes'][uid]['tx sender'] == None, "can only like a thing once"
- uid: unique id of the thing you want to prove you own
- code: a code you will store as the proof
Allows a user to prove they own an item by storing a code associated with that thing.
- owner == tx sender, "thing not owned by sender"