Tokens Smart Contract

in #steem-engine4 years ago

{"id":"ssc-mainnet1","json":{"contractName":"contract","contractAction":"update","contractPayload":{"name":"tokens","params":"","code":"Y29uc3QgQUNDT1VOVF9CTEFDS0xJU1Q9e2dhdGVpb2RlcG9zaXQ6MSxkZWVwY3J5cHRvODoxLGJpdHRyZXg6MSxwb2xvbmlleDoxLCJodW9iaS1wcm8iOjEsImhvbmV5LXN3YXAiOjF9O2FjdGlvbnMuY3JlYXRlU1NDPWFzeW5jKCk9PntsZXQgdGFibGVFeGlzdHM9YXdhaXQgYXBpLmRiLnRhYmxlRXhpc3RzKCJ0b2tlbnMiKTtpZih0YWJsZUV4aXN0cz09PWZhbHNlKXthd2FpdCBhcGkuZGIuY3JlYXRlVGFibGUoInRva2VucyIsWyJzeW1ib2wiXSk7YXdhaXQgYXBpLmRiLmNyZWF0ZVRhYmxlKCJiYWxhbmNlcyIsWyJhY2NvdW50Il0pO2F3YWl0IGFwaS5kYi5jcmVhdGVUYWJsZSgiY29udHJhY3RzQmFsYW5jZXMiLFsiYWNjb3VudCJdKTthd2FpdCBhcGkuZGIuY3JlYXRlVGFibGUoInBhcmFtcyIpO2NvbnN0IHBhcmFtcz17fTtwYXJhbXMudG9rZW5DcmVhdGlvbkZlZT0iMCI7YXdhaXQgYXBpLmRiLmluc2VydCgicGFyYW1zIixwYXJhbXMpfWVsc2V7Y29uc3QgcGFyYW1zPWF3YWl0IGFwaS5kYi5maW5kT25lKCJwYXJhbXMiLHt9KTtwYXJhbXMuZW5hYmxlRGVsZWdhdGlvbkZlZT0iMTAwMCI7cGFyYW1zLmVuYWJsZVN0YWtpbmdGZWU9IjEwMDAiO2F3YWl0IGFwaS5kYi51cGRhdGUoInBhcmFtcyIscGFyYW1zKX10YWJsZUV4aXN0cz1hd2FpdCBhcGkuZGIudGFibGVFeGlzdHMoInBlbmRpbmdVbnN0YWtlcyIpO2lmKHRhYmxlRXhpc3RzPT09ZmFsc2Upe2F3YWl0IGFwaS5kYi5jcmVhdG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