Market Smart Contract

in #hive-engine4 months ago

{"id":"ssc-mainnet-hive","json":{"contractName":"contract","contractAction":"update","contractPayload":{"name":"market","params":"","code":"Y29uc3QgSElWRV9QRUdHRURfU1lNQk9MPSJTV0FQLkhJVkUiLEhJVkVfUEVHR0VEX1NZTUJPTF9QUkVTSUNJT049OCxDT05UUkFDVF9OQU1FPSJtYXJrZXQiLEFDQ09VTlRfQkxBQ0tMSVNUPXtzdW5zZXRqZXN1czoxLHdhaXRpbmdmb3Jsb3ZlOjEsdGhlbmlnaHRzOjEsdGhlZGF5czoxLHRlbXA6MX0sZ2V0TWV0cmljPWFzeW5jIHN5bWJvbD0+e2xldCBtZXRyaWM9YXdhaXQgYXBpLmRiLmZpbmRPbmUoIm1ldHJpY3MiLHtzeW1ib2w6c3ltYm9sfSk7aWYobnVsbD09PW1ldHJpYyl7bWV0cmljPXt9LG1ldHJpYy5zeW1ib2w9c3ltYm9sLG1ldHJpYy52b2x1bWU9IjAiLG1ldHJpYy52b2x1bWVFeHBpcmF0aW9uPTAsbWV0cmljLmxhc3RQcmljZT0iMCIsbWV0cmljLmxvd2VzdEFzaz0iMCIsbWV0cmljLmhpZ2hlc3RCaWQ9IjAiLG1ldHJpYy5sYXN0RGF5UHJpY2U9IjAiLG1ldHJpYy5sYXN0RGF5UHJpY2VFeHBpcmF0aW9uPTAsbWV0cmljLnByaWNlQ2hhbmdlSGl2ZT0iMCIsbWV0cmljLnByaWNlQ2hhbmdlUGVyY2VudD0iMCI7cmV0dXJuIGF3YWl0IGFwaS5kYi5pbnNlcnQoIm1ldHJpY3MiLG1ldHJpYyl9cmV0dXJuIG1ldHJpY30sdXBkYXRlVm9sdW1lTWV0cmljPWFzeW5jKHN5bWJvbCxxdWFudGl0eSxhZGQ9ITApPT57Y29uc3QgYmxvY2tEYXRlPW5ldyBEYXRlKGFwaS5oaXZlQmxvY2tUaW1lc3RhbXArIi4wMDBaIiksdGltZXN0YW1wU2VjPWJsb2NrRGF0ZS5nZXRUaW1lK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