Market Smart Contract

in #steem-engine4 years ago

{"id":"ssc-mainnet1","json":{"contractName":"contract","contractAction":"update","contractPayload":{"name":"market","params":"","code":"Y29uc3QgU1RFRU1fUEVHR0VEX1NZTUJPTD0iU1RFRU1QIixTVEVFTV9QRUdHRURfU1lNQk9MX1BSRVNJQ0lPTj04LENPTlRSQUNUX05BTUU9Im1hcmtldCIsZ2V0TWV0cmljPWFzeW5jIHN5bWJvbD0+e2xldCBtZXRyaWM9YXdhaXQgYXBpLmRiLmZpbmRPbmUoIm1ldHJpY3MiLHtzeW1ib2w6c3ltYm9sfSk7aWYobnVsbD09PW1ldHJpYyl7bWV0cmljPXt9LG1ldHJpYy5zeW1ib2w9c3ltYm9sLG1ldHJpYy52b2x1bWU9IjAiLG1ldHJpYy52b2x1bWVFeHBpcmF0aW9uPTAsbWV0cmljLmxhc3RQcmljZT0iMCIsbWV0cmljLmxvd2VzdEFzaz0iMCIsbWV0cmljLmhpZ2hlc3RCaWQ9IjAiLG1ldHJpYy5sYXN0RGF5UHJpY2U9IjAiLG1ldHJpYy5sYXN0RGF5UHJpY2VFeHBpcmF0aW9uPTAsbWV0cmljLnByaWNlQ2hhbmdlU3RlZW09IjAiLG1ldHJpYy5wcmljZUNoYW5nZVBlcmNlbnQ9IjAiO3JldHVybiBhd2FpdCBhcGkuZGIuaW5zZXJ0KCJtZXRyaWNzIixtZXRyaWMpfXJldHVybiBtZXRyaWN9LHVwZGF0ZVZvbHVtZU1ldHJpYz1hc3luYyhzeW1ib2wscXVhbnRpdHksYWRkPSEwKT0+e2NvbnN0IGJsb2NrRGF0ZT1uZXcgRGF0ZShhcGkuc3RlZW1CbG9ja1RpbWVzdGFtcCsiLjAwMFoiKSx0aW1lc3RhbXBTZWM9YmxvY2tEYXRlLmdldFRpbWUoKS8xZTMsbWV0cmljPWF3YWl0IGdldE1ldHJpYyhzeW1ib2wpOyEwPT09YWRkPyhtZXRyaWMudm9sdW1lRXhwaXJhdGlvbjx0aW1lc3RhbXBTZWMm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