Market Smart Contract

in #hive-engine5 months ago

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