Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igormcoelho/bcaa2dc244da89bf3d17f35a14f57f46 to your computer and use it in GitHub Desktop.
Save igormcoelho/bcaa2dc244da89bf3d17f35a14f57f46 to your computer and use it in GitHub Desktop.
hex contract 0xe3c013fa2210e50af2b8010dcd1854ae2362b126
{
"jsonrpc": "2.0",
"id": 5,
"result": {
"version": 0,
"hash": "0xe3c013fa2210e50af2b8010dcd1854ae2362b126",
"script": "56c56b6c766b00527ac46c766b51527ac4616c766b00c30d696e666c6174696f6e52617465876c766b52527ac46c766b52c3644900616c766b51c3c0519c009c6c766b54527ac46c766b54c3640e00006c766b55527ac46230006c766b51c300c36c766b53527ac46c766b53c3616522006c766b55527ac4620f0061006c766b55527ac46203006c766b55c3616c756652c56b6c766b00527ac4616168164e656f2e53746f726167652e476574436f6e746578740d696e666c6174696f6e526174656c766b00c3615272680f4e656f2e53746f726167652e50757461516c766b51527ac46203006c766b51c3616c7566",
"parameters": [
"ByteArray",
"Array"
],
"returntype": "ByteArray",
"name": "Test15",
"code_version": "1",
"author": "Peter",
"email": "joioo",
"description": "jojoo",
"properties": {
"storage": true,
"dynamic_invoke": false
}
}
}
#240 bytes
56 0: PUSH6 # The number 6 is pushed onto the stack.
c5 1: NEWARRAY #
6b 2: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
6c 3: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 4: DUP # Duplicates the top stack item.
6b 5: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
00 6: PUSH0 #An empty array of bytes is pushed onto the stack
52 7: PUSH2 # The number 2 is pushed onto the stack.
7a 8: ROLL # The item n back in the stack is moved to the top.
c4 9: SETITEM #
6c 10: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 11: DUP # Duplicates the top stack item.
6b 12: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
51 13: PUSH1 # The number 1 is pushed onto the stack.
52 14: PUSH2 # The number 2 is pushed onto the stack.
7a 15: ROLL # The item n back in the stack is moved to the top.
c4 16: SETITEM #
61 17: NOP # Does nothing.
6c 18: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 19: DUP # Duplicates the top stack item.
6b 20: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
00 21: PUSH0 #An empty array of bytes is pushed onto the stack
c3 22: PICKITEM #
0d 23: PUSHBYTES13 696e666c6174696f6e52617465 # inflationRate
87 37: EQUAL # Returns 1 if the inputs are exactly equal, 0 otherwise.
6c 38: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 39: DUP # Duplicates the top stack item.
6b 40: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
52 41: PUSH2 # The number 2 is pushed onto the stack.
52 42: PUSH2 # The number 2 is pushed onto the stack.
7a 43: ROLL # The item n back in the stack is moved to the top.
c4 44: SETITEM #
6c 45: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 46: DUP # Duplicates the top stack item.
6b 47: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
52 48: PUSH2 # The number 2 is pushed onto the stack.
c3 49: PICKITEM #
64 50: JMPIFNOT 4900 # 73
61 53: NOP # Does nothing.
6c 54: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 55: DUP # Duplicates the top stack item.
6b 56: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
51 57: PUSH1 # The number 1 is pushed onto the stack.
c3 58: PICKITEM #
c0 59: ARRAYSIZE #
51 60: PUSH1 # The number 1 is pushed onto the stack.
9c 61: NUMEQUAL # Returns 1 if the numbers are equal, 0 otherwise.
00 62: PUSH0 #An empty array of bytes is pushed onto the stack
9c 63: NUMEQUAL # Returns 1 if the numbers are equal, 0 otherwise.
6c 64: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 65: DUP # Duplicates the top stack item.
6b 66: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
54 67: PUSH4 # The number 4 is pushed onto the stack.
52 68: PUSH2 # The number 2 is pushed onto the stack.
7a 69: ROLL # The item n back in the stack is moved to the top.
c4 70: SETITEM #
6c 71: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 72: DUP # Duplicates the top stack item.
6b 73: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
54 74: PUSH4 # The number 4 is pushed onto the stack.
c3 75: PICKITEM #
64 76: JMPIFNOT 0e00 # 14
00 79: PUSH0 #An empty array of bytes is pushed onto the stack
6c 80: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 81: DUP # Duplicates the top stack item.
6b 82: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
55 83: PUSH5 # The number 5 is pushed onto the stack.
52 84: PUSH2 # The number 2 is pushed onto the stack.
7a 85: ROLL # The item n back in the stack is moved to the top.
c4 86: SETITEM #
62 87: JMP 3000 # 48
6c 90: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 91: DUP # Duplicates the top stack item.
6b 92: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
51 93: PUSH1 # The number 1 is pushed onto the stack.
c3 94: PICKITEM #
00 95: PUSH0 #An empty array of bytes is pushed onto the stack
c3 96: PICKITEM #
6c 97: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 98: DUP # Duplicates the top stack item.
6b 99: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
53 100: PUSH3 # The number 3 is pushed onto the stack.
52 101: PUSH2 # The number 2 is pushed onto the stack.
7a 102: ROLL # The item n back in the stack is moved to the top.
c4 103: SETITEM #
6c 104: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 105: DUP # Duplicates the top stack item.
6b 106: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
53 107: PUSH3 # The number 3 is pushed onto the stack.
c3 108: PICKITEM #
61 109: NOP # Does nothing.
65 110: CALL 2200 # 34
6c 113: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 114: DUP # Duplicates the top stack item.
6b 115: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
55 116: PUSH5 # The number 5 is pushed onto the stack.
52 117: PUSH2 # The number 2 is pushed onto the stack.
7a 118: ROLL # The item n back in the stack is moved to the top.
c4 119: SETITEM #
62 120: JMP 0f00 # 15
61 123: NOP # Does nothing.
00 124: PUSH0 #An empty array of bytes is pushed onto the stack
6c 125: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 126: DUP # Duplicates the top stack item.
6b 127: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
55 128: PUSH5 # The number 5 is pushed onto the stack.
52 129: PUSH2 # The number 2 is pushed onto the stack.
7a 130: ROLL # The item n back in the stack is moved to the top.
c4 131: SETITEM #
62 132: JMP 0300 # 3
6c 135: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 136: DUP # Duplicates the top stack item.
6b 137: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
55 138: PUSH5 # The number 5 is pushed onto the stack.
c3 139: PICKITEM #
61 140: NOP # Does nothing.
6c 141: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
75 142: DROP # Removes the top stack item.
66 143: RET #
52 144: PUSH2 # The number 2 is pushed onto the stack.
c5 145: NEWARRAY #
6b 146: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
6c 147: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 148: DUP # Duplicates the top stack item.
6b 149: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
00 150: PUSH0 #An empty array of bytes is pushed onto the stack
52 151: PUSH2 # The number 2 is pushed onto the stack.
7a 152: ROLL # The item n back in the stack is moved to the top.
c4 153: SETITEM #
61 154: NOP # Does nothing.
61 155: NOP # Does nothing.
68 156: SYSCALL 164e656f2e53746f726167652e476574436f6e74657874 # Neo.Storage.GetContext
0d 180: PUSHBYTES13 696e666c6174696f6e52617465 # inflationRate
6c 194: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 195: DUP # Duplicates the top stack item.
6b 196: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
00 197: PUSH0 #An empty array of bytes is pushed onto the stack
c3 198: PICKITEM #
61 199: NOP # Does nothing.
52 200: PUSH2 # The number 2 is pushed onto the stack.
72 201: XSWAP #
68 202: SYSCALL 0f4e656f2e53746f726167652e507574 # Neo.Storage.Put
61 219: NOP # Does nothing.
51 220: PUSH1 # The number 1 is pushed onto the stack.
6c 221: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 222: DUP # Duplicates the top stack item.
6b 223: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
51 224: PUSH1 # The number 1 is pushed onto the stack.
52 225: PUSH2 # The number 2 is pushed onto the stack.
7a 226: ROLL # The item n back in the stack is moved to the top.
c4 227: SETITEM #
62 228: JMP 0300 # 3
6c 231: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
76 232: DUP # Duplicates the top stack item.
6b 233: TOALTSTACK # Puts the input onto the top of the alt stack. Removes it from the main stack.
51 234: PUSH1 # The number 1 is pushed onto the stack.
c3 235: PICKITEM #
61 236: NOP # Does nothing.
6c 237: FROMALTSTACK # Puts the input onto the top of the main stack. Removes it from the alt stack.
75 238: DROP # Removes the top stack item.
66 239: RET #
@igormcoelho
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment