sugarskins / csgo-steam-eth-trade

secure trading of CS:GO Steam community market weapons without a trusted third-party middleman
GNU General Public License v3.0
7 stars 1 forks source link

modularize chainlink adapter interface #10

Open danoctavian opened 4 years ago

danoctavian commented 4 years ago

Currently the call involves sending a tradelink a (skin name, wear, paint seed) tuple and an inspect link. The check is very specific to the use case for this current application.

See if it's possible to move some of that logic into the contract itself (eg. comparing wear, paint seed and skin name or extracting steam id from tradelink), and make the endpoint return raw values (the 3 field tuple for an inspect link).

danoctavian commented 4 years ago

created an endpoint for scanning a particular item based on an inspect link.

As it stands chainlink can only return a uint256 so in order to return more data it has to be packed into that. packing the wear value and paint seed can be stored there, however the skin-name as well probably not.