Sort:  

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "token",
"contractAction": "create",
"contractPayload": {
"symbol": "PKTC",
"precision": 0,
"maxSupply": 1000000
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "token",
"contractAction": "issue",
"contractPayload": {
"symbol": "PKTC",
"to": "harpagon",
"quantity": 1000
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "contract",
"contractAction": "deploy",
"contractPayload": {
"name": "token2",
"code": "WVdOMGFXOXVjeTVqY21WaGRHVlRVME1nUFNCbWRXNWpkR2x2YmlBb2NHRjViRzloWkNrZ2V3b2dJR1JpTG1OeVpXRjBaVlJoWW14bEtDZDBiMnRsYm5NbktUc0tJQ0JrWWk1amNtVmhkR1ZVWVdKc1pTZ25ZbUZzWVc1alpYTW5LVHNLZlFvS1lXTjBhVzl1Y3k1amNtVmhkR1VnUFNCbWRXNWpkR2x2YmlBb2NHRjViRzloWkNrZ2V3b2dJR052Ym5OMElIc2djM2x0WW05c0xDQndjbVZqYVhOcGIyNHNJRzFoZUZOMWNIQnNlU0I5SUQwZ2NHRjViRzloWkRzS0NpQWdhV1lnS0hONWJXSnZiQ0FtSmlCMGVYQmxiMllnYzNsdFltOXNJRDA5UFNBbmMzUnlhVzVuSndvZ0lDQWdKaVlnS0hCeVpXTnBjMmx2YmlBbUppQjBlWEJsYjJZZ2NISmxZMmx6YVc5dUlEMDlQU0FuYm5WdFltVnlKeUI4ZkNCd2NtVmphWE5wYjI0Z1BUMDlJREFwQ2lBZ0lDQW1KaUJ0WVhoVGRYQndiSGtnSmlZZ2RIbHdaVzltSUcxaGVGTjFjSEJzZVNBOVBUMGdKMjUxYldKbGNpY3BJSHNLQ2lBZ0lDQmpiMjV6ZENCU1pXZGxlRkIxY21WTVpYUjBaWEp6SUQwZ0wxNWJZUzE2UVMxYVhTc2tMenNLQ2lBZ0lDQXZMeUIwYUdVZ2MzbHRZbTlzSU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mxZMmx6YVc5dUlEMDlQU0F3S1NCN0NpQWdJQ0J5WlhSMWNtNGdZV1JrSUQ4Z1ltRnNZVzVqWlNBcklIRjFZVzUwYVhSNUlEb2dZbUZzWVc1alpTQXRJSEYxWVc1MGFYUjVDaUFnZlFvS0lDQnNaWFFnY21GMFpTQTlJRTFoZEdndWNHOTNLREV3TENCd2NtVmphWE5wYjI0cE93b2dJR3hsZENCMGJYQlJkSGtnUFNCeGRXRnVkR2wwZVNBcUlISmhkR1U3Q2lBZ2JHVjBJSFJ0Y0VKaGJHRnVZMlVnUFNCaVlXeGhibU5sSUNvZ2NtRjBaVHNLQ2lBZ2NtVjBkWEp1SUdGa1pDQS9JQ2gwYlhCQ1lXeGhibU5sSUNzZ2RHMXdVWFI1S1NBdklISmhkR1VnT2lBb2RHMXdRbUZzWVc1alpTQXRJSFJ0Y0ZGMGVTa2dMeUJ5WVhSbE93cDlDZ3BzWlhRZ1kyOTFiblJFWldOcGJXRnNjeUE5SUdaMWJtTjBhVzl1SUNoMllXeDFaU2tnZXdvZ0lHbG1JQ2hOWVhSb0xtWnNiMjl5S0haaGJIVmxLU0E5UFQwZ2RtRnNkV1VwSUhKbGRIVnliaUF3T3dvZ0lISmxkSFZ5YmlCMllXeDFaUzUwYjFOMGNtbHVaeWdwTG5Od2JHbDBLQ2N1SnlsYk1WMHViR1Z1WjNSb0lIeDhJREE3Q24wPQ=="
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "token2",
"contractAction": "issue",
"contractPayload": {
"symbol": "PKTC",
"to": "harpagon",
"quantity": 1000
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "contract",
"contractAction": "deploy",
"contractPayload": {
"name": "token2",
"code": "YWN0aW9ucy5jcmVhdGVTU0MgPSBmdW5jdGlvbiAocGF5bG9hZCkgewogIGRiLmNyZWF0ZVRhYmxlKCd0b2tlbnMnKTsKICBkYi5jcmVhdGVUYWJsZSgnYmFsYW5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Y2lzaW9uID09PSAwKSB7CiAgICByZXR1cm4gYWRkID8gYmFsYW5jZSArIHF1YW50aXR5IDogYmFsYW5jZSAtIHF1YW50aXR5CiAgfQoKICBsZXQgcmF0ZSA9IE1hdGgucG93KDEwLCBwcmVjaXNpb24pOwogIGxldCB0bXBRdHkgPSBxdWFudGl0eSAqIHJhdGU7CiAgbGV0IHRtcEJhbGFuY2UgPSBiYWxhbmNlICogcmF0ZTsKCiAgcmV0dXJuIGFkZCA"
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "contract",
"contractAction": "deploy",
"contractPayload": {
"name": "token2",
"code": "YWN0aW9ucy5jcmVhdGVTU0MgPSBmdW5jdGlvbiAocGF5bG9hZCkgewogIGRiLmNyZWF0ZVRhYmxlKCd0b2tlbnMnKTsKICBkYi5jcmVhdGVUYWJsZSgnYmFsYW5jZXMnKTsKfQoKYWN0aW9ucy5jcmVhdGUgPSBmdW5jdGlvbiAocGF5bG9hZCkgewogIGNvbnN0IHsgc3ltYm9sLCBwcmVjaXNpb24sIG1heFN1cHBseSB9ID0gcGF5bG9hZDsKCiAgaWYgKHN5bWJvbCAmJiB0eXBlb2Ygc3ltYm9sID09PSAnc3RyaW5nJwogICAgJiYgKHByZWNpc2lvbiAmJiB0eXBlb2YgcHJlY2lzaW9uID09PSAnbnVtYmVyJyB8fCBwcmVjaXNpb24gPT09IDApCiAgICAmJiBtYXhTdXBwbHkgJiYgdHlwZW9mIG1heFN1cHBseSA9PT0gJ251bWJlcicpIHsKCiAgICBjb25zdCBSZWdleFB1cmVMZXR0ZXJzID0gL15bYS16QS1aXSskLzsKCiAgICAvLyB0aGUgc3ltYm9sIG11c3QgYmUgbWFkZSBvZiBsZXR0ZXJzIG9ubHkKICAgIC8vIHRoZSBwcmVjaXNpb24gbXVzdCBiZSBiZXR3ZWVuIDAgYW5kIDggYW5kIG11c3QgYmUgYW4gaW50ZWdlcgogICAgLy8gdGhlIG1heCBzdXBwbHkgbXVzd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CiAgICB9CgogICAgYmFsYW5jZXMuaW5zZXJ0KGJhbGFuY2UpOwogIH0gZWxzZSB7CiAgICBiYWxhbmNlLmJhbGFuY2UgPSBjYWxjdWxhdGVCYWxhbmNlKGJhbGFuY2UuYmFsYW5jZSwgcXVhbnRpdHksIHRva2VuLnByZWNpc2lvbiwgdHJ1ZSk7CgogICAgYmFsYW5jZXMudXBkYXRlKGJhbGFuY2UpOwogIH0KfQoKbGV0IGNhbGN1bGF0ZUJhbGFuY2UgPSBmdW5jdGlvbiAoYmFsYW5jZSwgcXVhbnRpdHksIHByZWNpc2lvbiwgYWRkKSB7CiAgaWYgKHByZWNpc2lvbiA9PT0gMCkgewogICAgcmV0dXJuIGFkZCA/IGJhbGFuY2UgKyBxdWFudGl0eSA6IGJhbGFuY2UgLSBxdWFudGl0eQogIH0KCiAgbGV0IHJhdGUgPSBNYXRoLnBvdygxMCwgcHJlY2lzaW9uKTsKICBsZXQgdG1wUXR5ID0gcXVhbnRpdHkgKiByYXRlOwogIGxldCB0bXBCYWxhbmNlID0gYmFsYW5jZSAqIHJhdGU7CgogIHJldHVybiBhZGQgPyAodG1wQmFsYW5jZSArIHRtcFF0eSkgLyByYXRlIDogKHRtcEJhbGFuY2UgLSB0bXBRdHkpIC8gcmF0ZTsKfQoKbGV0IGNvdW50RGVjaW1hbHMgPSBmdW5jdGlvbiAodmFsdWUpIHsKICBpZiAoTWF0aC5mbG9vcih2YWx1ZSkgPT09IHZhbHVlKSByZXR1cm4gMDsKICByZXR1cm4gdmFsdWUudG9TdHJpbmcoKS5zcGxpdCgnLicpWzFdLmxlbmd0aCB8fCAwOwp9"
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "token2",
"contractAction": "create",
"contractPayload": {
"symbol": "PKTC",
"precision": 0,
"maxSupply": 1000000
}
}
}

{
"id": "ssc-b8923f70-c1f7-497f-961g",
"json": {
"contractName": "token2",
"contractAction": "create",
"contractPayload": {
"symbol": "PKTC",
"precision": 0,
"maxSupply": 1000000
}
}
}